lutzroeder/netron

Metrics support

开放

#1,240 创建于 2024年3月6日

 (18 条评论) (0 个反应) (0 位负责人)JavaScript (3,101 个派生)batch import
featurehelp wanted

仓库指标

星标
 (32,743 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

There are multiple ways to add metrics and metadata for a model:

  1. Built-in Format Support: Each format can include a built-in implementation to expose metadata and metrics. This data can be embedded in the model file, loaded from a known auxiliary file format, or computed by the format implementation itself. Each Model, Graph, Node, Value, and Tensor can expose this data via a metadata or metrics property.

  2. Attachment File: Metadata and metrics can be extended by loading an attachment file — a JSON file containing additional metadata and metrics. First, load the model file, then drag the attachment file into the app.
    Examples: mnist.onnx.zip, model.tflite.zip

  3. Automatic Tensor Metrics: Basic tensor metrics such as min, max, and std are automatically computed for all floating-point tensors with fewer than 8 million elements.

Note: Metrics and metadata are displayed in the sidebar for the currently selected model, graph, node, value, or tensor.

贡献者指南