onnx-tensor-math

Community

Turn images into ONNX-ready tensors fast.

Authorsparkeh9
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Preprocesses an image into a normalized 1x3x640x640 float32 tensor suitable for ONNX RT-DETR inference in .NET.

Core Features & Use Cases

  • High-performance image-to-tensor preprocessing using SkiaSharp and unsafe memory access.
  • Supports 640x640 RGB input with a [1,3,640,640] (NCHW) layout and deterministic normalization.
  • Enforces standard normalization: scale 1/255, mean [0.485, 0.456, 0.406], std [0.229, 0.224, 0.225].
  • Cross-platform and memory-safe resource handling with explicit disposal of SkiaSharp objects.
  • Use Case: prepare frames from images or video streams for RT-DETR layout inference in .NET.

Quick Start

Instantiate a SkiaSharp bitmap, resize to 640x640, and convert to a 1x3x640x640 float tensor using the specified mean and std.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: onnx-tensor-math
Download link: https://github.com/sparkeh9/DoclingDotNet/archive/main.zip#onnx-tensor-math

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.