Instructions to use ricardoSLabs/paper_model_DP_2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ricardoSLabs/paper_model_DP_2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="ricardoSLabs/paper_model_DP_2") 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_2") model = AutoModelForImageClassification.from_pretrained("ricardoSLabs/paper_model_DP_2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from ricardoSLabs/paper_model_DP_2: direct link, hf CLI and curl.
- Browser
- Download file 840 Bytes
-
https://huggingface.co/ricardoSLabs/paper_model_DP_2/resolve/main/config.json
- Command line
-
hf download hf://ricardoSLabs/paper_model_DP_2/config.json
-
curl -L -o config.json https://huggingface.co/ricardoSLabs/paper_model_DP_2/resolve/main/config.json
840 Bytes
| { | |
| "_name_or_path": "facebook/convnextv2-tiny-1k-224", | |
| "architectures": [ | |
| "ConvNextForImageClassification" | |
| ], | |
| "depths": [ | |
| 3, | |
| 3, | |
| 9, | |
| 3 | |
| ], | |
| "drop_path_rate": 0.0, | |
| "hidden_act": "gelu", | |
| "hidden_sizes": [ | |
| 96, | |
| 192, | |
| 384, | |
| 768 | |
| ], | |
| "id2label": { | |
| "0": "train_no_resume", | |
| "1": "train_paper" | |
| }, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "train_no_resume": "0", | |
| "train_paper": "1" | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "layer_scale_init_value": 1e-06, | |
| "model_type": "convnext", | |
| "num_channels": 3, | |
| "num_stages": 4, | |
| "out_features": [ | |
| "stage4" | |
| ], | |
| "out_indices": [ | |
| 4 | |
| ], | |
| "patch_size": 4, | |
| "stage_names": [ | |
| "stem", | |
| "stage1", | |
| "stage2", | |
| "stage3", | |
| "stage4" | |
| ], | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.41.2" | |
| } | |