Run this model with HF Jobs
Run flagship/dgan-model 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/flagship/dgan-model. 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/flagship/dgan-model 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 flagship/dgan-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flagship/dgan-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="flagship/dgan-model") 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("flagship/dgan-model") model = AutoModelForImageClassification.from_pretrained("flagship/dgan-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload ConvNextForImageClassification
Browse filesFiles changed (2)
- config.jsonAdded+56
- pytorch_model.binAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ "_name_or_path": "facebook/convnext-tiny-224", "architectures": [ "ConvNextForImageClassification" ], "depths": [ 3, 3, 9, 3 ], "drop_path_rate": 0.0, "hidden_act": "gelu", "hidden_sizes": [ 96, 192, 384, 768 ], "id2label": { "0": "RiceLeafs_BrownSpot", "1": "RiceLeafs_Healthy", "2": "RiceLeafs_Hispa", "3": "RiceLeafs_LeafBlast" }, "image_size": 224, "initializer_range": 0.02, "label2id": { "RiceLeafs_BrownSpot": 0, "RiceLeafs_Healthy": 1, "RiceLeafs_Hispa": 2, "RiceLeafs_LeafBlast": 3 }, "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, "problem_type": "single_label_classification", "stage_names": [ "stem", "stage1", "stage2", "stage3", "stage4" ], "torch_dtype": "float32", "transformers_version": "4.29.1"}123version https://git-lfs.github.com/spec/v1oid sha256:890291443c28b1c2f8e94b76dc795561d636e7fb63b2a7032ecbfdf9675b73a6size 111355173config.jsonAdded+56
pytorch_model.binAdded+3