Instructions to use BiliSakura/RSP-ResNet-50 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BiliSakura/RSP-ResNet-50 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="BiliSakura/RSP-ResNet-50", trust_remote_code=True) pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForImageClassification model = AutoModelForImageClassification.from_pretrained("BiliSakura/RSP-ResNet-50", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from BiliSakura/RSP-ResNet-50: direct link, hf CLI and curl.
- Browser
- Download file 474 Bytes
-
https://huggingface.co/BiliSakura/RSP-ResNet-50/resolve/main/config.json
- Command line
-
hf download hf://BiliSakura/RSP-ResNet-50/config.json
-
curl -L -o config.json https://huggingface.co/BiliSakura/RSP-ResNet-50/resolve/main/config.json
474 Bytes
| { | |
| "architectures": [ | |
| "RSPResNetForImageClassification" | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "configuration_rsp.RSPResNetConfig", | |
| "AutoModelForImageClassification": "modeling_rsp.RSPResNetForImageClassification" | |
| }, | |
| "block": "Bottleneck", | |
| "image_size": 224, | |
| "layers": [ | |
| 3, | |
| 4, | |
| 6, | |
| 3 | |
| ], | |
| "model_type": "rsp_resnet", | |
| "num_channels": 3, | |
| "num_labels": 51, | |
| "source_checkpoint": "/mnt/data/projects/model_hubs/raw/rsp-resnet-50-ckpt.pth" | |
| } |