Loading…
Loading…
An ONNX conversion of pixai-labs/pixai-tagger-v1.0 (Apache-2.0) for ONNX Runtime / OpenVINO inference without trust_remote_code.
model.onnx: input pixel_values (float32, 1×3×1008×1008), output probs (float32, 1×30877, sigmoid applied). Weights are stored in FP16; inputs and outputs stay float32.config.json: copied unchanged from the original repository. Use tags and tags_split to map output indices to tag names and categories.torch.onnx.export(dynamo=True) at opset 18, then converted to FP16 weights.On 10 sample images, max absolute difference vs. the original PyTorch FP32 model is 0.002 (0.001 on character tags), and the set of tags above the recommended thresholds is identical.
Same as the original RescalePadProcessor: convert to RGB (composite transparency on white), scale to fit 1008×1008 keeping the aspect ratio, pad with black (centered), and normalize with mean 0.5 / std 0.5.
Recommended thresholds from the original model card: general 0.17, character 0.27, style 0.15, copyright 0.24, meta 0.17, rating 0.41.
pixai-labs/pixai-tagger-v1.0