Image Classification
Transformers
TensorBoard
Safetensors
resnet
Generated from Trainer
Eval Results (legacy)
Instructions to use ricardoSLabs/paper_model_DP_1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ricardoSLabs/paper_model_DP_1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="ricardoSLabs/paper_model_DP_1") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("ricardoSLabs/paper_model_DP_1") model = AutoModelForImageClassification.from_pretrained("ricardoSLabs/paper_model_DP_1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from ricardoSLabs/paper_model_DP_1: direct link, hf CLI and curl.
- Browser
- Download file 836 Bytes
-
https://huggingface.co/ricardoSLabs/paper_model_DP_1/resolve/main/config.json
- Command line
-
hf download hf://ricardoSLabs/paper_model_DP_1/config.json
-
curl -L -o config.json https://huggingface.co/ricardoSLabs/paper_model_DP_1/resolve/main/config.json
836 Bytes
| { | |
| "_name_or_path": "jordyvl/resnet50_rvl-cdip", | |
| "architectures": [ | |
| "ResNetForImageClassification" | |
| ], | |
| "depths": [ | |
| 3, | |
| 4, | |
| 6, | |
| 3 | |
| ], | |
| "downsample_in_bottleneck": false, | |
| "downsample_in_first_stage": false, | |
| "embedding_size": 64, | |
| "hidden_act": "relu", | |
| "hidden_sizes": [ | |
| 256, | |
| 512, | |
| 1024, | |
| 2048 | |
| ], | |
| "id2label": { | |
| "0": "train_no_resume", | |
| "1": "train_paper" | |
| }, | |
| "label2id": { | |
| "train_no_resume": "0", | |
| "train_paper": "1" | |
| }, | |
| "layer_type": "bottleneck", | |
| "model_type": "resnet", | |
| "num_channels": 3, | |
| "out_features": [ | |
| "stage4" | |
| ], | |
| "out_indices": [ | |
| 4 | |
| ], | |
| "problem_type": "single_label_classification", | |
| "stage_names": [ | |
| "stem", | |
| "stage1", | |
| "stage2", | |
| "stage3", | |
| "stage4" | |
| ], | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.41.2" | |
| } | |