{
  "schema_version": 2,
  "status": "released",
  "released_at": "2026-10-13T09:28:20.900608+00:00",
  "model": {
    "source": "resnet",
    "provider": "timm",
    "family": "resnet",
    "task": "cls",
    "size": "18-224",
    "parameter_count": 11689512,
    "gflops": 3.628146688,
    "gflops_method": "FP32 simplified ONNX static batch=1 224x224; Conv and Gemm multiply-accumulate counted as 2 FLOPs; excludes activation, pooling, additions and preprocessing"
  },
  "license": {
    "name": "Apache-2.0",
    "url": "https://huggingface.co/timm/resnet18.a1_in1k/blob/491b427b45c94c7fb0e78b5474cc919aff584bbf/README.md",
    "reviewed_by": "JasperXzy"
  },
  "sample_path": "samples/vision/resnet",
  "target": {
    "platform": "x5",
    "march": "bayes-e",
    "format": "bin"
  },
  "input": {
    "width": 224,
    "height": 224,
    "source": {
      "format": "rgb",
      "dtype": "float32",
      "layout": "NCHW",
      "shape": [
        1,
        3,
        224,
        224
      ],
      "scale": 0.00392156862745098,
      "mean": [
        0.485,
        0.456,
        0.406
      ],
      "std": [
        0.229,
        0.224,
        0.225
      ],
      "geometry": "PIL bicubic shorter=235, center crop=224"
    }
  },
  "artifact": {
    "name": "resnet18_bayese_224x224_nv12.bin",
    "format": "bin",
    "march": "bayes-e",
    "runtime_input": "nv12",
    "input_space_and_range": "bt601_video",
    "url": "https://rdk-model-zoo.oss-cn-beijing.aliyuncs.com/models/resnet/resnet/cls/18-224/x5/resnet18_bayese_224x224_nv12.bin",
    "release_manifest_url": "https://rdk-model-zoo.oss-cn-beijing.aliyuncs.com/models/resnet/resnet/cls/18-224/x5/release.json",
    "checksums_url": "https://rdk-model-zoo.oss-cn-beijing.aliyuncs.com/models/resnet/resnet/cls/18-224/x5/SHA256SUMS",
    "size_bytes": 11081728,
    "sha256": "98a16c1136c2b993cd63b6d3e2cc4eb54b44a563d2ef95f0e0319f0003c45483"
  },
  "reports": {
    "oe_conversion_url": "https://rdk-model-zoo.oss-cn-beijing.aliyuncs.com/models/resnet/resnet/cls/18-224/x5/oe_report.html"
  },
  "accuracy": {
    "dataset": "ImageNetV2 MatchedFrequency (not ILSVRC2012 val)",
    "task": "classification",
    "images": 10000,
    "metrics": [
      "top1",
      "top5"
    ],
    "float_onnx": {
      "top1": 0.5935,
      "top5": 0.8094
    },
    "runtime": {
      "top1": 0.5891,
      "top5": 0.8056
    },
    "drop": {
      "top1": {
        "percentage_points": 0.44000000000000705,
        "relative_percent": 0.7413647851727156
      },
      "top5": {
        "percentage_points": 0.38000000000000256,
        "relative_percent": 0.46948356807512415
      }
    },
    "acceptance": {
      "rule": "Top-1 and Top-5 loss vs FP32 ONNX under 5% (relative and absolute)",
      "relative_drop_limit_exclusive": 0.05,
      "absolute_drop_limit_exclusive": 0.05,
      "passed": true,
      "source": "owner acceptance amendment, 2026-10-10 (applied to this release in acceptance.json)"
    }
  },
  "performance": {
    "tool": "hrt_model_exec perf",
    "implementation": "native_cpp_cli",
    "timing_scope": "model_runtime",
    "thread_semantics": "runtime_submission_concurrency",
    "core_id": 0,
    "warmup_frames_per_condition": 20,
    "warmup_scope": "separate-process device warmup",
    "runs_per_condition": 3,
    "frames_per_run": 200,
    "stages": {
      "preprocess": "not_measured",
      "runtime": "measured",
      "postprocess": "not_measured",
      "end_to_end": "not_measured"
    },
    "measurements": [
      {
        "threads": 1,
        "average_latency_ms": 2.7399986666666667,
        "observed_min_latency_ms": 2.708,
        "observed_max_latency_ms": 3.477,
        "aggregate_fps": 364.0474062532423,
        "runs": [
          {
            "frames": 200,
            "mean": 2.7397,
            "max": 3.467,
            "min": 2.71,
            "wall_ms": 549.332
          },
          {
            "frames": 200,
            "mean": 2.739165,
            "max": 3.477,
            "min": 2.712,
            "wall_ms": 549.173
          },
          {
            "frames": 200,
            "mean": 2.741131,
            "max": 3.453,
            "min": 2.708,
            "wall_ms": 549.632
          }
        ]
      },
      {
        "threads": 2,
        "average_latency_ms": 4.86221,
        "observed_min_latency_ms": 3.583,
        "observed_max_latency_ms": 5.708,
        "aggregate_fps": 409.35987713745556,
        "runs": [
          {
            "frames": 200,
            "mean": 4.862185,
            "max": 5.708,
            "min": 3.614,
            "wall_ms": 488.543
          },
          {
            "frames": 200,
            "mean": 4.862966,
            "max": 5.697,
            "min": 3.583,
            "wall_ms": 488.577
          },
          {
            "frames": 200,
            "mean": 4.861479,
            "max": 5.376,
            "min": 3.638,
            "wall_ms": 488.583
          }
        ]
      }
    ],
    "end_to_end": [
      {
        "tool": "classification_benchmark",
        "implementation": "native_cpp_classification_benchmark",
        "timing_scope": "in_memory_bgr_to_topk_predictions",
        "pipeline_streams": 1,
        "runtime_submission_threads": 1,
        "cpu_thread_policy": "all_online",
        "online_cpu_threads": 8,
        "opencv_threads": 8,
        "cpu_governor": "performance",
        "cpu_frequency_mhz": 1500.0,
        "bpu_frequency_mhz": 996.0,
        "warmup_frames_per_round": 20,
        "frames_per_round": 200,
        "frames_semantics": "per stream",
        "rounds": 3,
        "timed_frames": 600,
        "aggregate_wall_ms": 6345.516245,
        "metrics_ms": {
          "preprocess": {
            "mean": 7.483001703333333,
            "p50": 7.6195615,
            "p95": 7.9697447,
            "min": 6.774142,
            "max": 10.894153
          },
          "runtime": {
            "mean": 3.0573793649999996,
            "p50": 3.055591,
            "p95": 3.0800729,
            "min": 3.027466,
            "max": 3.238258
          },
          "postprocess": {
            "mean": 0.029622315000000003,
            "p50": 0.029417,
            "p95": 0.031042,
            "min": 0.027042,
            "max": 0.060625
          },
          "end_to_end": {
            "mean": 10.570003383333333,
            "p50": 10.7077975,
            "p95": 11.05980205,
            "min": 9.84515,
            "max": 14.170244
          }
        },
        "throughput_fps": 94.55495452758076
      },
      {
        "tool": "classification_benchmark",
        "implementation": "native_cpp_classification_benchmark",
        "timing_scope": "in_memory_bgr_to_topk_predictions",
        "pipeline_streams": 2,
        "runtime_submission_threads": 2,
        "cpu_thread_policy": "all_online",
        "online_cpu_threads": 8,
        "opencv_threads": 8,
        "cpu_governor": "performance",
        "cpu_frequency_mhz": 1500.0,
        "bpu_frequency_mhz": 996.0,
        "warmup_frames_per_round": 20,
        "frames_per_round": 200,
        "frames_semantics": "per stream",
        "rounds": 3,
        "timed_frames": 1200,
        "aggregate_wall_ms": 10980.589723,
        "metrics_ms": {
          "preprocess": {
            "mean": 14.665174944166665,
            "p50": 8.4894175,
            "p95": 47.413206999999936,
            "min": 6.844351,
            "max": 50.010668
          },
          "runtime": {
            "mean": 3.3725064675,
            "p50": 3.0560289999999997,
            "p95": 5.635568149999997,
            "min": 2.912049,
            "max": 7.800437
          },
          "postprocess": {
            "mean": 0.03008589833333333,
            "p50": 0.029791,
            "p95": 0.03308605,
            "min": 0.026917,
            "max": 0.056042
          },
          "end_to_end": {
            "mean": 18.06776731,
            "p50": 11.6983625,
            "p95": 51.66204904999999,
            "min": 9.916525,
            "max": 57.258061
          }
        },
        "throughput_fps": 109.28374798363278
      }
    ]
  },
  "runtime_environment": {
    "board": "RDK X5",
    "runtime": [
      "[BPU_PLAT]BPU Platform Version(1.3.6)! soc info(x5)",
      "[HBRT] set log level as 0. version = 3.15.55.0",
      "[DNN] Runtime version = 1.24.5_(3.15.55 HBRT)",
      "[packed_model.cpp:247][Model](2026-10-13,14:45:57.541.152) [HorizonRT] The model builder version = 1.24.3"
    ],
    "cpu_governor": "performance",
    "cpu_frequency_mhz": 1500.0,
    "bpu_frequency_mhz": 996.0,
    "online_cpu_threads": 8,
    "cpu_thread_policy": "all_online",
    "governor_restored": true
  },
  "validation": {
    "board_smoke": "passed",
    "cpp_functional": "passed",
    "runtime_perf": "passed",
    "cpp_e2e": "passed",
    "input_contract_review": "passed",
    "environment_review": "passed",
    "license_review": "passed",
    "full_dataset_review": "passed",
    "release_approval": "passed",
    "approved_by": "JasperXzy",
    "approved_at": "2026-10-13T09:28:20.351338+00:00",
    "approval_items": [
      "accuracy basis: ImageNetV2 MatchedFrequency 10,000 images (not ImageNet-1k val); Top-1/Top-5 loss < 5% relative and absolute vs FP32; all twenty builds pass (Top-1 relative loss 0.7-2.8%, Top-5 0.4-1.5%)",
      "scope: ResNet-18/34/50/101/152 (timm a1_in1k) at 224 on x5/s100/s100p/s600; the legacy archive ResNet assets leave the manifests (S resnet18/resnet50/resnet152 entries merge into one resnet entry) and the X5 resnet18-x5 and S resnet152-s100 benchmark records are replaced by measured records",
      "precision: INT8 for every build (default calibration), no exceptions",
      "license: Apache-2.0 (timm a1_in1k checkpoint model cards)",
      "board and performance evidence: Python sample on X5/S100/S100P/S600 (40/40 runs), C++ sample on S100/S100P/S600 (30/30 runs) plus MobileNetV2 C++ regression after the tooling rename, runtime 1/2 concurrency and C++ end-to-end 1/2 streams on all four boards, C++ logits bit-equal to Python"
    ],
    "evidence": {
      "board_smoke": [
        {
          "path": "resnet-20261013/build/boards/x5-resnet18-model-info.json",
          "sha256": "00759f35d6532054b9ec49e877b9dedd31579bd43eff1301c7048677c49f65e7"
        },
        {
          "path": "resnet-20261013/build/sample-validation.json",
          "sha256": "5d96f993c4885463d06b030d39c6fc2476e8a1114d7b41a73f1c4d19541d43d5"
        },
        {
          "path": "resnet-20261013/build/sample-validation.source.json",
          "sha256": "a2ba66a6c434bd377b59fcbe835ff10cd7f59d676f031b3052f0c8bd75e6c085"
        }
      ],
      "cpp_functional": [
        {
          "path": "resnet-20261013/build/boards/x5-cpp-build.json",
          "sha256": "a74d29437ab0961844fe6a32efd951335af5046e2f6e501e88a8ffa467469e41"
        },
        {
          "path": "resnet-20261013/build/boards/x5-resnet18-cpp-smoke.json",
          "sha256": "1d7c066fd972cfa65c7a2dbe837b7abed87a71a96eac076b15c2f3cdf055b3cd"
        }
      ],
      "runtime_perf": [
        {
          "path": "resnet-20261013/build/boards/x5-resnet18-benchmark.json",
          "sha256": "82988405b82301b78a6e177c92c93e43f17683c15d98fb8249e99faeb71d97e8"
        },
        {
          "path": "resnet-20261013/build/resnet18/x5/benchmark-attempt-01/execution.json",
          "sha256": "8b755ac27fe99cddadf181b34b9076b6214b384722f429ee0a5b3525adf4aa29"
        }
      ],
      "cpp_e2e": [
        {
          "path": "resnet-20261013/build/boards/x5-resnet18-benchmark.json",
          "sha256": "82988405b82301b78a6e177c92c93e43f17683c15d98fb8249e99faeb71d97e8"
        },
        {
          "path": "resnet-20261013/build/resnet18/x5/benchmark-attempt-01/execution.json",
          "sha256": "8b755ac27fe99cddadf181b34b9076b6214b384722f429ee0a5b3525adf4aa29"
        }
      ],
      "input_contract_review": [
        {
          "path": "resnet-20261013/build/resnet18/export/export.json",
          "sha256": "a91266af39e35ad7d9d113af8b33d8d65af7883f4db7f0f0afb70a9a0fcda202"
        },
        {
          "path": "resnet-20261013/build/resnet18/x5/attempt-01/config.yaml",
          "sha256": "ea788ba7e09ef24c3ff654ec24e74e2c068f235d02153b453c96f45e5350c46f"
        },
        {
          "path": "resnet-20261013/build/resnet18/x5/calibration/calibration.json",
          "sha256": "d6f319be444b03f8a4783c30d77ad3abe92d2e71d4a28d12360ed61efe8a6941"
        }
      ],
      "environment_review": [
        {
          "path": "resnet-20261013/build/resnet18/x5/benchmark-attempt-01/execution.json",
          "sha256": "8b755ac27fe99cddadf181b34b9076b6214b384722f429ee0a5b3525adf4aa29"
        }
      ],
      "license_review": [],
      "full_dataset_review": [
        {
          "path": "resnet-20261013/build/resnet18/x5/accuracy-attempt-01/evaluation.json",
          "sha256": "9f5c2a5026bf14e3ac4a30886220aabc07f5e19c83c74df8eb8aa922be09dc26"
        },
        {
          "path": "resnet-20261013/build/resnet18/evaluation/evaluation.json",
          "sha256": "db24566600d6d79fc12b0d2fb6f3cb80783e38ce2cbb5ad766cbf619b88acb74"
        }
      ]
    }
  },
  "provenance": {
    "build_id": "resnet18-20261013-x5-attempt-01",
    "repository_commit": "ae66224ce61790af5d66087d7a86e123338263e3",
    "build_snapshot_commit": "864ce8f399c8b79e20992703c44f58be7fd89283",
    "source_status": "clean committed tree (inputs/source-864ce8f3.tar.gz)",
    "precision_policy": "int8",
    "config_change": {
      "baseline": "p2 x5/attempt-03-bt601/config.yaml",
      "change": "onnx_model, march, working_dir, output prefix, cal_data_dir, input_parameters from workflow config",
      "workflow_config_receipt": "/home/zhengyi/work/rdk_model_zoo_workbench/runs/p5/resnet-20261013/build/resnet18/x5/config/config.json"
    },
    "toolchain_image": "registry.d-robotics.cc/deliver/ai_toolchain_ubuntu_20_x5_gpu:v1.2.8",
    "checkpoint": {
      "repo_id": "timm/resnet18.a1_in1k",
      "revision": "491b427b45c94c7fb0e78b5474cc919aff584bbf",
      "model_safetensors_sha256": "80c49dee3da4822c009c5a7fe591e9223c5a2cfcf95a4067ca4dfb5a7b89c612",
      "url": "https://huggingface.co/timm/resnet18.a1_in1k/resolve/491b427b45c94c7fb0e78b5474cc919aff584bbf/model.safetensors"
    },
    "onnx_sha256": "c3a4d136ebc0c3dd900ab1bc2342970955cdf690138e504d7697ed8b1bc849a0",
    "config_sha256": "ea788ba7e09ef24c3ff654ec24e74e2c068f235d02153b453c96f45e5350c46f",
    "campaign_sha256": "5f169592837e0420bec95b151a41c467115cd2ff46c2a0c8343380c9bb7a0de4",
    "calibration": {
      "dataset": "COCO 2017 train2017",
      "images": 200,
      "manifest_sha256": "1d50d53df79c85c9129db9b90570b0f67ef1347c5285a68f4397a4ce1a2c0921"
    },
    "evaluation": {
      "dataset": "ImageNetV2 MatchedFrequency",
      "images": 10000,
      "manifest_sha256": "9df523ab34abae87763b3c7c92662c2cddf78b4e5c66d852a724a925ba052cdc"
    },
    "evidence_prefix": "reports/resnet/resnet/cls/18-224/x5/candidates/resnet18-20261013-x5-attempt-01/"
  }
}
