Image Classification
Transformers
TensorBoard
Safetensors
clip
Generated from Trainer
Eval Results (legacy)
Run this model with HF Jobs
Run habibi26/document-crop 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/habibi26/document-crop. 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/habibi26/document-crop 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 habibi26/document-crop with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use habibi26/document-crop with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="habibi26/document-crop") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForImageClassification processor = AutoProcessor.from_pretrained("habibi26/document-crop") model = AutoModelForImageClassification.from_pretrained("habibi26/document-crop", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (2)
20 unmodified lines212223242526273 unmodified lines313233343536373827 unmodified lines6667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715820 unmodified linesmetrics:- name: Accuracytype: accuracyvalue: 0.9340659340659341---<!-- This model card has been generated automatically according to the information the Trainer had access to. You3 unmodified linesThis model is a fine-tuned version of [openai/clip-vit-base-patch32](https://huggingface.co/openai/clip-vit-base-patch32) on the imagefolder dataset.It achieves the following results on the evaluation set:- Loss: 0.6767- Accuracy: 0.9341## Model description27 unmodified lines| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:--------:|:----:|:---------------:|:--------:|| 0.7118 | 2.7586 | 20 | 0.6585 | 0.5604 || 0.4606 | 5.5172 | 40 | 0.4991 | 0.7033 || 0.2723 | 8.2759 | 60 | 0.4650 | 0.8242 || 0.2779 | 11.0345 | 80 | 0.6806 | 0.6813 || 0.1976 | 13.7931 | 100 | 0.2763 | 0.9011 || 0.1627 | 16.5517 | 120 | 0.2784 | 0.8681 || 0.1635 | 19.3103 | 140 | 1.1550 | 0.6703 || 0.1673 | 22.0690 | 160 | 0.6895 | 0.8132 || 0.1355 | 24.8276 | 180 | 0.3650 | 0.8462 || 0.2017 | 27.5862 | 200 | 0.3636 | 0.8791 || 0.1275 | 30.3448 | 220 | 0.5203 | 0.8352 || 0.1557 | 33.1034 | 240 | 0.6500 | 0.7912 || 0.0998 | 35.8621 | 260 | 0.6369 | 0.8022 || 0.1012 | 38.6207 | 280 | 0.8133 | 0.7912 || 0.1125 | 41.3793 | 300 | 0.2806 | 0.9011 || 0.0803 | 44.1379 | 320 | 0.6901 | 0.8462 || 0.1268 | 46.8966 | 340 | 0.2991 | 0.9011 || 0.123 | 49.6552 | 360 | 0.3569 | 0.8571 || 0.0556 | 52.4138 | 380 | 0.3483 | 0.9231 || 0.1245 | 55.1724 | 400 | 0.4492 | 0.8681 || 0.051 | 57.9310 | 420 | 0.8892 | 0.7912 || 0.0378 | 60.6897 | 440 | 0.8956 | 0.8022 || 0.1009 | 63.4483 | 460 | 0.3829 | 0.8681 || 0.0333 | 66.2069 | 480 | 1.6220 | 0.7692 || 0.093 | 68.9655 | 500 | 0.6725 | 0.8352 || 0.0437 | 71.7241 | 520 | 0.5194 | 0.8791 || 0.0578 | 74.4828 | 540 | 0.9445 | 0.7912 || 0.0619 | 77.2414 | 560 | 0.5901 | 0.8571 || 0.0436 | 80.0 | 580 | 1.0225 | 0.8352 || 0.0337 | 82.7586 | 600 | 0.7013 | 0.8462 || 0.0212 | 85.5172 | 620 | 0.4292 | 0.9121 || 0.0113 | 88.2759 | 640 | 1.7661 | 0.7802 || 0.0863 | 91.0345 | 660 | 0.9848 | 0.8462 || 0.0222 | 93.7931 | 680 | 0.8063 | 0.8462 || 0.0329 | 96.5517 | 700 | 0.7059 | 0.9011 || 0.01 | 99.3103 | 720 | 1.5658 | 0.8022 || 0.0215 | 102.0690 | 740 | 0.4951 | 0.8901 || 0.0212 | 104.8276 | 760 | 0.9585 | 0.8791 || 0.0312 | 107.5862 | 780 | 0.7420 | 0.8571 || 0.0068 | 110.3448 | 800 | 0.7328 | 0.9011 || 0.0058 | 113.1034 | 820 | 0.6573 | 0.9121 || 0.0096 | 115.8621 | 840 | 0.8204 | 0.8791 || 0.009 | 118.6207 | 860 | 1.2558 | 0.8462 || 0.0414 | 121.3793 | 880 | 0.9440 | 0.8901 || 0.0152 | 124.1379 | 900 | 0.7497 | 0.8571 || 0.0471 | 126.8966 | 920 | 0.4832 | 0.8681 || 0.0042 | 129.6552 | 940 | 1.1680 | 0.8681 || 0.017 | 132.4138 | 960 | 1.0996 | 0.8681 || 0.0104 | 135.1724 | 980 | 1.1694 | 0.8791 || 0.014 | 137.9310 | 1000 | 1.3565 | 0.8462 || 0.011 | 140.6897 | 1020 | 0.6044 | 0.9121 || 0.0117 | 143.4483 | 1040 | 0.6891 | 0.9121 || 0.0012 | 146.2069 | 1060 | 0.7026 | 0.9231 || 0.0002 | 148.9655 | 1080 | 0.6718 | 0.9231 || 0.0023 | 151.7241 | 1100 | 0.5130 | 0.9231 || 0.0052 | 154.4828 | 1120 | 0.8910 | 0.8901 || 0.0086 | 157.2414 | 1140 | 0.6915 | 0.9011 || 0.0008 | 160.0 | 1160 | 0.7211 | 0.9231 || 0.0108 | 162.7586 | 1180 | 0.9529 | 0.8681 || 0.0 | 165.5172 | 1200 | 0.7049 | 0.9121 || 0.0 | 168.2759 | 1220 | 0.6871 | 0.9011 || 0.0 | 171.0345 | 1240 | 0.6877 | 0.9121 || 0.0 | 173.7931 | 1260 | 0.6828 | 0.9231 || 0.0026 | 176.5517 | 1280 | 0.6791 | 0.9231 || 0.0042 | 179.3103 | 1300 | 0.6724 | 0.9341 || 0.0 | 182.0690 | 1320 | 0.7377 | 0.9011 || 0.0 | 184.8276 | 1340 | 0.7790 | 0.9011 || 0.0 | 187.5862 | 1360 | 0.7846 | 0.9011 || 0.0 | 190.3448 | 1380 | 0.7877 | 0.9011 || 0.0 | 193.1034 | 1400 | 0.7852 | 0.9011 || 0.0 | 195.8621 | 1420 | 0.7577 | 0.9011 || 0.0 | 198.6207 | 1440 | 0.7540 | 0.9011 || 0.0 | 201.3793 | 1460 | 0.7573 | 0.9011 || 0.0 | 204.1379 | 1480 | 0.6999 | 0.9011 || 0.0 | 206.8966 | 1500 | 0.6745 | 0.9341 || 0.0 | 209.6552 | 1520 | 0.6740 | 0.9341 || 0.0 | 212.4138 | 1540 | 0.6745 | 0.9341 || 0.0 | 215.1724 | 1560 | 0.6792 | 0.9341 || 0.0 | 217.9310 | 1580 | 0.6757 | 0.9341 || 0.0 | 220.6897 | 1600 | 0.6750 | 0.9341 || 0.0 | 223.4483 | 1620 | 0.6751 | 0.9341 || 0.0 | 226.2069 | 1640 | 0.6753 | 0.9341 || 0.0 | 228.9655 | 1660 | 0.6755 | 0.9341 || 0.0 | 231.7241 | 1680 | 0.6756 | 0.9341 || 0.0 | 234.4828 | 1700 | 0.6763 | 0.9341 || 0.0 | 237.2414 | 1720 | 0.6767 | 0.9341 || 0.0 | 240.0 | 1740 | 0.6767 | 0.9341 |### Framework versions20 unmodified lines212223242526273 unmodified lines313233343536373827 unmodified lines6667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715820 unmodified linesmetrics:- name: Accuracytype: accuracyvalue: 0.9021739130434783---<!-- This model card has been generated automatically according to the information the Trainer had access to. You3 unmodified linesThis model is a fine-tuned version of [openai/clip-vit-base-patch32](https://huggingface.co/openai/clip-vit-base-patch32) on the imagefolder dataset.It achieves the following results on the evaluation set:- Loss: 0.7682- Accuracy: 0.9022## Model description27 unmodified lines| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:--------:|:----:|:---------------:|:--------:|| 0.6337 | 2.6667 | 20 | 0.6879 | 0.5870 || 0.4336 | 5.3333 | 40 | 0.7280 | 0.6413 || 0.2493 | 8.0 | 60 | 0.5044 | 0.75 || 0.1756 | 10.6667 | 80 | 0.3750 | 0.8478 || 0.1715 | 13.3333 | 100 | 0.7468 | 0.6957 || 0.1525 | 16.0 | 120 | 0.6240 | 0.7935 || 0.2019 | 18.6667 | 140 | 0.3115 | 0.8804 || 0.1366 | 21.3333 | 160 | 0.8020 | 0.7391 || 0.1729 | 24.0 | 180 | 0.7651 | 0.7283 || 0.1499 | 26.6667 | 200 | 0.6695 | 0.7826 || 0.1226 | 29.3333 | 220 | 0.5607 | 0.8370 || 0.1426 | 32.0 | 240 | 0.5363 | 0.8152 || 0.0986 | 34.6667 | 260 | 0.2214 | 0.9022 || 0.0984 | 37.3333 | 280 | 0.2494 | 0.9022 || 0.1764 | 40.0 | 300 | 0.3202 | 0.9022 || 0.0712 | 42.6667 | 320 | 0.6895 | 0.8370 || 0.104 | 45.3333 | 340 | 0.8008 | 0.75 || 0.107 | 48.0 | 360 | 0.6523 | 0.8696 || 0.1446 | 50.6667 | 380 | 0.4615 | 0.8370 || 0.0525 | 53.3333 | 400 | 0.5936 | 0.9130 || 0.1076 | 56.0 | 420 | 0.5063 | 0.9022 || 0.0554 | 58.6667 | 440 | 0.4740 | 0.8913 || 0.0701 | 61.3333 | 460 | 0.4842 | 0.8587 || 0.1011 | 64.0 | 480 | 0.5180 | 0.8587 || 0.0471 | 66.6667 | 500 | 1.6979 | 0.7717 || 0.0559 | 69.3333 | 520 | 0.4181 | 0.9022 || 0.0371 | 72.0 | 540 | 0.4239 | 0.9022 || 0.0653 | 74.6667 | 560 | 0.2725 | 0.9239 || 0.0564 | 77.3333 | 580 | 0.8607 | 0.8043 || 0.0427 | 80.0 | 600 | 0.2848 | 0.9457 || 0.1251 | 82.6667 | 620 | 0.3903 | 0.9022 || 0.023 | 85.3333 | 640 | 0.4514 | 0.9239 || 0.0297 | 88.0 | 660 | 0.7634 | 0.8913 || 0.0553 | 90.6667 | 680 | 0.5395 | 0.8913 || 0.0147 | 93.3333 | 700 | 0.7752 | 0.8696 || 0.0804 | 96.0 | 720 | 0.6780 | 0.8913 || 0.0154 | 98.6667 | 740 | 0.7887 | 0.8587 || 0.0063 | 101.3333 | 760 | 0.5492 | 0.9239 || 0.0131 | 104.0 | 780 | 0.8119 | 0.8804 || 0.0113 | 106.6667 | 800 | 1.0839 | 0.8587 || 0.0268 | 109.3333 | 820 | 1.0396 | 0.8587 || 0.0215 | 112.0 | 840 | 0.8707 | 0.9022 || 0.0271 | 114.6667 | 860 | 0.5733 | 0.9457 || 0.0208 | 117.3333 | 880 | 0.6780 | 0.9130 || 0.0224 | 120.0 | 900 | 0.3565 | 0.9457 || 0.0324 | 122.6667 | 920 | 0.3860 | 0.9239 || 0.019 | 125.3333 | 940 | 0.5652 | 0.9022 || 0.0079 | 128.0 | 960 | 0.5316 | 0.9348 || 0.0064 | 130.6667 | 980 | 0.5368 | 0.9239 || 0.0055 | 133.3333 | 1000 | 0.8009 | 0.8913 || 0.0156 | 136.0 | 1020 | 0.8391 | 0.9348 || 0.04 | 138.6667 | 1040 | 0.6336 | 0.9022 || 0.0031 | 141.3333 | 1060 | 0.5656 | 0.9348 || 0.0009 | 144.0 | 1080 | 0.4957 | 0.9348 || 0.0004 | 146.6667 | 1100 | 0.9136 | 0.8913 || 0.006 | 149.3333 | 1120 | 0.9782 | 0.8913 || 0.0004 | 152.0 | 1140 | 0.9065 | 0.9239 || 0.0042 | 154.6667 | 1160 | 0.9944 | 0.9130 || 0.0001 | 157.3333 | 1180 | 0.8723 | 0.9239 || 0.0002 | 160.0 | 1200 | 1.1987 | 0.8804 || 0.0083 | 162.6667 | 1220 | 0.7118 | 0.9239 || 0.0 | 165.3333 | 1240 | 0.7793 | 0.9130 || 0.0 | 168.0 | 1260 | 0.7330 | 0.9239 || 0.0038 | 170.6667 | 1280 | 0.5990 | 0.9348 || 0.0001 | 173.3333 | 1300 | 0.6496 | 0.9239 || 0.0 | 176.0 | 1320 | 0.8535 | 0.8913 || 0.0 | 178.6667 | 1340 | 0.6108 | 0.9348 || 0.0 | 181.3333 | 1360 | 0.5813 | 0.9348 || 0.0 | 184.0 | 1380 | 0.5817 | 0.9239 || 0.0 | 186.6667 | 1400 | 0.5852 | 0.9239 || 0.0 | 189.3333 | 1420 | 0.5877 | 0.9239 || 0.0 | 192.0 | 1440 | 0.5941 | 0.9239 || 0.0 | 194.6667 | 1460 | 0.6219 | 0.9130 || 0.0 | 197.3333 | 1480 | 0.6350 | 0.9130 || 0.0 | 200.0 | 1500 | 0.6388 | 0.9130 || 0.0 | 202.6667 | 1520 | 0.6409 | 0.9130 || 0.0 | 205.3333 | 1540 | 0.6423 | 0.9130 || 0.0 | 208.0 | 1560 | 0.6430 | 0.9130 || 0.0 | 210.6667 | 1580 | 0.6336 | 0.9130 || 0.0 | 213.3333 | 1600 | 0.7124 | 0.9022 || 0.0 | 216.0 | 1620 | 0.7457 | 0.9022 || 0.0 | 218.6667 | 1640 | 0.7498 | 0.9022 || 0.0 | 221.3333 | 1660 | 0.7505 | 0.9022 || 0.0 | 224.0 | 1680 | 0.7512 | 0.9022 || 0.0 | 226.6667 | 1700 | 0.7660 | 0.9022 || 0.0 | 229.3333 | 1720 | 0.7682 | 0.9022 || 0.0 | 232.0 | 1740 | 0.7682 | 0.9022 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:563d6738d64130477dd97e1cb3b1973e55faf18be5618d245fc490f8def6bce1size 44725123version https://git-lfs.github.com/spec/v1oid sha256:b7b78d846f0ca6fea90c27808bb88b4c8dec877c06025d77159d37de8526243bsize 51487
README.md+90-90
runs/Jul31_05-54-42_gurame007/events.out.tfevents.1722380084.gurame007.8285.0+2-2