Run this model with HF Jobs
Run SoulPerforms/Butterfly_image_classification_resnet18 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/SoulPerforms/Butterfly_image_classification_resnet18. 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/SoulPerforms/Butterfly_image_classification_resnet18 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 SoulPerforms/Butterfly_image_classification_resnet18 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SoulPerforms/Butterfly_image_classification_resnet18 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="SoulPerforms/Butterfly_image_classification_resnet18") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SoulPerforms/Butterfly_image_classification_resnet18", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
12345678910111213141516171819202122232425262728293031323334353637383940---tags:- biologymetrics:- accuracypipeline_tag: image-classification---Butterfly image classification model that use pre-trained cnn model resnet18 and fine-tuned the last fully connected layer to classify 75 categories of butterfly species.The model used the best checkpoint with 90% test accuracy. The model constructed on Pytorch environment.Epoch: 0 Train Loss: 3.00 Train Accuracy: 0.37 Test Accuracy: 0.70Epoch: 1 Train Loss: 1.18 Train Accuracy: 0.76 Test Accuracy: 0.78Epoch: 2 Train Loss: 0.75 Train Accuracy: 0.83 Test Accuracy: 0.83Epoch: 3 Train Loss: 0.60 Train Accuracy: 0.86 Test Accuracy: 0.85Epoch: 4 Train Loss: 0.51 Train Accuracy: 0.88 Test Accuracy: 0.85Epoch: 5 Train Loss: 0.43 Train Accuracy: 0.90 Test Accuracy: 0.86Epoch: 6 Train Loss: 0.39 Train Accuracy: 0.90 Test Accuracy: 0.87Epoch: 7 Train Loss: 0.35 Train Accuracy: 0.91 Test Accuracy: 0.87Epoch: 8 Train Loss: 0.32 Train Accuracy: 0.92 Test Accuracy: 0.88Epoch: 9 Train Loss: 0.32 Train Accuracy: 0.92 Test Accuracy: 0.89Epoch: 10 Train Loss: 0.28 Train Accuracy: 0.93 Test Accuracy: 0.89Epoch: 11 Train Loss: 0.28 Train Accuracy: 0.93 Test Accuracy: 0.88Epoch: 12 Train Loss: 0.26 Train Accuracy: 0.94 Test Accuracy: 0.89Epoch: 13 Train Loss: 0.25 Train Accuracy: 0.94 Test Accuracy: 0.89Epoch: 14 Train Loss: 0.23 Train Accuracy: 0.94 Test Accuracy: 0.89Epoch: 15 Train Loss: 0.23 Train Accuracy: 0.94 Test Accuracy: 0.89Epoch: 16 Train Loss: 0.22 Train Accuracy: 0.94 Test Accuracy: 0.89Epoch: 17 Train Loss: 0.21 Train Accuracy: 0.95 Test Accuracy: 0.89Epoch: 18 Train Loss: 0.20 Train Accuracy: 0.95 Test Accuracy: 0.90Epoch: 19 Train Loss: 0.20 Train Accuracy: 0.95 Test Accuracy: 0.90Epoch: 20 Train Loss: 0.20 Train Accuracy: 0.95 Test Accuracy: 0.89Epoch: 21 Train Loss: 0.19 Train Accuracy: 0.95 Test Accuracy: 0.90Epoch: 22 Train Loss: 0.19 Train Accuracy: 0.95 Test Accuracy: 0.90Epoch: 23 Train Loss: 0.19 Train Accuracy: 0.95 Test Accuracy: 0.89Epoch: 24 Train Loss: 0.18 Train Accuracy: 0.95 Test Accuracy: 0.90...Epoch: 26 Train Loss: 0.17 Train Accuracy: 0.96 Test Accuracy: 0.90Epoch: 27 Train Loss: 0.18 Train Accuracy: 0.95 Test Accuracy: 0.90Epoch: 28 Train Loss: 0.17 Train Accuracy: 0.96 Test Accuracy: 0.90Epoch: 29 Train Loss: 0.16 Train Accuracy: 0.96 Test Accuracy: 0.891234567891011121314---tags:- biology- pytorchmetrics:- accuracypipeline_tag: image-classificationlibrary_name: adapter-transformers---Butterfly image classification model that use pre-trained cnn model resnet18 and fine-tuned the last fully connected layer to classify 75 categories of butterfly species.The model used the best checkpoint with 90% test accuracy. The model constructed on Pytorch environment.training and testing result:Epoch: 28 Train Loss: 0.17 Train Accuracy: 0.96 Test Accuracy: 0.90
README.md+4-30