Downloads · 30 days
0
MorritaConP1to/sanrio-classifier-resnet18
sanrio-classifier-resnet18 is a image classification model from MorritaConP1to. Use it when you need a label for an image. It is set up for onnxruntime. The card lists the license as mit.
ResNet18 fine-tuned to classify 29 Sanrio characters from images. Exported to ONNX for lightweight CPU inference.
Downloads · 30 days
0
Access
Public
Updated Jul 8, 2026
Repo size
56.6 MB
Likes
0
Public
Click a slice to open those files.
.onnx56.6 MB · 100%
From the Hugging Face model README
ResNet18 fine-tuned to classify 29 Sanrio characters from images. Exported to ONNX for lightweight CPU inference.
badtz_maru, chococat, cinnamon, cinnamoroll, gudetama, hangyodon, hello_kitty, kerokerokeroppi, kuromi, little_twin_stars, melody, my_sweet_piano, pochacco, pompompurin, purin, rilakkuma, shin_chan, sumikko_gurashi, tuxedo_sam
`python import onnxruntime as ort import numpy as np from PIL import Image
sess = ort.InferenceSession('tl_sanrio_v5_int8.onnx') img = Image.open('character.jpg').resize((224, 224)) input_tensor = np.array(img).transpose(2,0,1).astype(np.float32) / 255.0 input_tensor = np.expand_dims(input_tensor, axis=0)
outputs = sess.run(['softmax_1'], {'input.1': input_tensor}) pred_class = outputs[0].argmax() confidence = outputs[0].max() `
Try it live: https://huggingface.co/spaces/MorritaConP1to/sanrio-classifier