Run this model with HF Jobs
Run ThermalVariations/tv-pv-module-classifier on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/ThermalVariations/tv-pv-module-classifier. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ThermalVariations/tv-pv-module-classifier on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use ThermalVariations/tv-pv-module-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ThermalVariations/tv-pv-module-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="ThermalVariations/tv-pv-module-classifier") 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("ThermalVariations/tv-pv-module-classifier") model = AutoModelForImageClassification.from_pretrained("ThermalVariations/tv-pv-module-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from ThermalVariations/tv-pv-module-classifier: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/ThermalVariations/tv-pv-module-classifier/resolve/main/config.json
- Command line
-
hf download hf://ThermalVariations/tv-pv-module-classifier/config.json
-
curl -L -o config.json https://huggingface.co/ThermalVariations/tv-pv-module-classifier/resolve/main/config.json
1.16 kB
| { | |
| "architectures": [ | |
| "ViTForImageClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.0, | |
| "dtype": "float32", | |
| "encoder_stride": 16, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.0, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "Cell", | |
| "1": "Cell-Multi", | |
| "2": "Cracking", | |
| "3": "Diode", | |
| "4": "Diode-Multi", | |
| "5": "Hot-Spot", | |
| "6": "Hot-Spot-Multi", | |
| "7": "No-Anomaly", | |
| "8": "Offline-Module", | |
| "9": "Shadowing", | |
| "10": "Soiling", | |
| "11": "Vegetation" | |
| }, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "Cell": 0, | |
| "Cell-Multi": 1, | |
| "Cracking": 2, | |
| "Diode": 3, | |
| "Diode-Multi": 4, | |
| "Hot-Spot": 5, | |
| "Hot-Spot-Multi": 6, | |
| "No-Anomaly": 7, | |
| "Offline-Module": 8, | |
| "Shadowing": 9, | |
| "Soiling": 10, | |
| "Vegetation": 11 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "model_type": "vit", | |
| "num_attention_heads": 12, | |
| "num_channels": 3, | |
| "num_hidden_layers": 12, | |
| "patch_size": 16, | |
| "pooler_act": "tanh", | |
| "pooler_output_size": 768, | |
| "qkv_bias": true, | |
| "transformers_version": "5.12.1" | |
| } | |