Instructions to use feisarx86/DeepWeeds with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use feisarx86/DeepWeeds with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="feisarx86/DeepWeeds") 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("feisarx86/DeepWeeds") model = AutoModelForImageClassification.from_pretrained("feisarx86/DeepWeeds", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from feisarx86/DeepWeeds: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/feisarx86/DeepWeeds/resolve/main/config.json
- Command line
-
hf download hf://feisarx86/DeepWeeds/config.json
-
curl -L -o config.json https://huggingface.co/feisarx86/DeepWeeds/resolve/main/config.json
1.09 kB
| { | |
| "_name_or_path": "google/vit-base-patch16-224-in21k", | |
| "architectures": [ | |
| "ViTForImageClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.0, | |
| "encoder_stride": 16, | |
| "finetuning_task": "image-classification", | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.0, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "Foi_Thong", | |
| "1": "Hang_Kra_Rog_Phu_Phan_ST1", | |
| "2": "Hang_Suea_Sakonnakhon_TT1", | |
| "3": "Kroeng_Krawia", | |
| "4": "Tanao_Si_Kan_Khaw_WA1", | |
| "5": "Tanao_Si_Kan_Sang_RD1" | |
| }, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "Foi_Thong": "0", | |
| "Hang_Kra_Rog_Phu_Phan_ST1": "1", | |
| "Hang_Suea_Sakonnakhon_TT1": "2", | |
| "Kroeng_Krawia": "3", | |
| "Tanao_Si_Kan_Khaw_WA1": "4", | |
| "Tanao_Si_Kan_Sang_RD1": "5" | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "model_type": "vit", | |
| "num_attention_heads": 12, | |
| "num_channels": 3, | |
| "num_hidden_layers": 12, | |
| "patch_size": 16, | |
| "problem_type": "single_label_classification", | |
| "qkv_bias": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.32.0.dev0" | |
| } | |