Downloads · 30 days
0
ai4waifu/resnet
resnet is a machine learning model from ai4waifu. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Developer preview — API unstable. External Neural / weight-asset package (not inside dxo-framework publish).
Downloads · 30 days
0
Access
Public
Updated Aug 29, 2026
Repo size
134 MB
Likes
0
Public
Click a slice to open those files.
.safetensors44.7 MB · 100%
From the Hugging Face model README
Developer preview — API unstable. External Neural / weight-asset package (not inside dxo-framework publish).
create() returns @dxo/vision ResNet backbones. Runtime loading via @dxo/vision loadWeights accepts DXO-key safetensors only (same keys as new ResNet({ depth: 18 }).state()).
.pth → DXODo not expect loadWeights to rename torchvision keys. Convert offline with the external Python tool:
# Convert a trusted torchvision .pth directly to DXO-native safetensors:
python tools/convert_torchvision_resnet18.py --input weights/resnet18/model.pth --output weights/resnet18/model.safetensors --report weights/resnet18/conversion-report.json
# Then load the converted asset:
# loadWeights(backbone, { path: 'model.safetensors', scope: 'backbone' })
The mapping is in tools/dxo_resnet_mapping.py. It drops the classification fc.* head and emits one-based DXO canonical names. Python is used only by this external weight-asset toolchain; DXO runtime packages do not read .pth.
node --experimental-strip-types scripts/convert-map.test.ts
pnpm link --global ../dxo-framework/projects/runtimes/dxo-vision
# or dependencies already use file:../dxo-framework/...