Instructions to use prithivMLmods/Painting-126-DomainNet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Painting-126-DomainNet with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="prithivMLmods/Painting-126-DomainNet") 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("prithivMLmods/Painting-126-DomainNet") model = AutoModelForImageClassification.from_pretrained("prithivMLmods/Painting-126-DomainNet", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files1 unmodified line23451 unmodified linelicense: apache-2.0datasets:- Bruece/domainnet-126-by-class-painting---1 unmodified line234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411 unmodified linelicense: apache-2.0datasets:- Bruece/domainnet-126-by-class-painting---```pyClassification Report:precision recall f1-score supportaircraft_carrier 0.8065 0.4717 0.5952 106alarm_clock 1.0000 0.7612 0.8644 67ant 0.8095 0.7234 0.7640 188anvil 0.3205 0.2066 0.2513 121asparagus 0.8242 0.8827 0.8525 324axe 0.4028 0.4857 0.4404 175banana 0.8986 0.8986 0.8986 286basket 0.7251 0.7492 0.7370 331bathtub 0.0000 0.0000 0.0000 35bear 0.8704 0.8647 0.8675 303bee 0.9478 0.9440 0.9459 250bird 0.8031 0.8807 0.8401 176blackberry 0.0000 0.0000 0.0000 11blueberry 0.8258 0.8258 0.8258 132bottlecap 0.6487 0.8173 0.7233 427broccoli 0.8961 0.8625 0.8790 80bus 0.6909 0.8444 0.7600 90butterfly 0.9313 0.9613 0.9460 310cactus 0.9583 0.9388 0.9485 98cake 0.5290 0.5984 0.5615 122calculator 0.0000 0.0000 0.0000 10camel 0.8244 0.9351 0.8763 231camera 0.9725 0.8480 0.9060 125candle 0.7763 0.8551 0.8138 207cannon 0.0000 0.0000 0.0000 43canoe 0.8400 0.9161 0.8764 298carrot 0.9744 0.9005 0.9360 211castle 0.9027 0.9278 0.9151 180cat 0.8824 0.9818 0.9294 275ceiling_fan 1.0000 0.1333 0.2353 30cell_phone 0.7117 0.7453 0.7281 106cello 0.8647 0.9127 0.8880 126chair 0.8750 0.1667 0.2800 42chandelier 0.9773 0.9348 0.9556 46coffee_cup 0.9015 0.8095 0.8530 147compass 0.9483 0.8871 0.9167 62computer 0.0000 0.0000 0.0000 14cow 0.9590 0.9360 0.9474 125crab 0.9829 0.9426 0.9623 122crocodile 0.9468 0.9271 0.9368 96cruise_ship 0.8977 0.8977 0.8977 176dog 0.9149 0.9739 0.9435 574dolphin 0.8928 0.9595 0.9249 321dragon 0.9278 0.9730 0.9499 185drums 0.8457 0.8405 0.8431 163duck 0.9335 0.9642 0.9486 335dumbbell 0.9539 0.9603 0.9571 151elephant 0.9405 0.9794 0.9595 339eyeglasses 0.5417 0.1970 0.2889 66feather 0.9314 0.9416 0.9365 274fence 0.0000 0.0000 0.0000 39fish 0.8829 0.9671 0.9231 304flamingo 0.9778 0.9888 0.9832 178flower 0.7188 0.7706 0.7438 388foot 0.5893 0.4853 0.5323 68fork 0.9500 0.2836 0.4368 67frog 0.9172 0.9925 0.9534 134giraffe 0.9762 0.9762 0.9762 84goatee 0.4565 0.4828 0.4693 87grapes 0.8761 0.8200 0.8471 250guitar 0.8827 0.8827 0.8827 162hammer 0.0000 0.0000 0.0000 36helicopter 0.9733 0.8835 0.9262 206helmet 0.0000 0.0000 0.0000 22horse 0.9514 0.9856 0.9682 417kangaroo 0.9387 0.9053 0.9217 169lantern 0.6263 0.7126 0.6667 174laptop 0.8800 0.8871 0.8835 124leaf 0.7754 0.8930 0.8301 402lion 0.9347 0.8883 0.9109 403lipstick 0.9281 0.9045 0.9161 157lobster 0.9646 0.9455 0.9550 202microphone 0.9231 0.8136 0.8649 118monkey 0.7892 0.8656 0.8256 320mosquito 0.8696 0.3846 0.5333 52mouse 0.8610 0.9174 0.8883 351mug 0.8669 0.9365 0.9003 299mushroom 0.9070 0.9653 0.9353 202onion 0.8700 0.9231 0.8958 377panda 0.9631 0.9952 0.9789 210peanut 0.5000 0.1212 0.1951 66pear 0.9278 0.9356 0.9317 357peas 0.8281 0.7465 0.7852 71pencil 0.4902 0.5245 0.5068 143penguin 0.9496 0.9576 0.9536 354pig 0.9392 0.9500 0.9446 260pillow 0.7273 0.0727 0.1322 110pineapple 0.9849 0.9812 0.9831 266potato 1.0000 0.0652 0.1224 46power_outlet 0.9600 0.8889 0.9231 81purse 0.5000 0.0513 0.0930 39rabbit 0.8961 0.9673 0.9303 214raccoon 0.9490 0.9394 0.9442 198rhinoceros 0.9657 0.9657 0.9657 175rifle 0.8200 0.8542 0.8367 192saxophone 0.8100 0.8556 0.8322 284screwdriver 0.7083 0.6296 0.6667 54sea_turtle 0.9757 0.9969 0.9862 322see_saw 0.3527 0.6077 0.4463 130sheep 0.9328 0.9398 0.9363 266shoe 0.9522 0.9567 0.9544 208skateboard 0.4464 0.2083 0.2841 120snake 0.8627 0.8550 0.8588 338speedboat 0.8710 0.6835 0.7660 79spider 0.8129 0.6975 0.7508 162squirrel 0.9325 0.9063 0.9192 427strawberry 0.9316 0.9470 0.9392 302streetlight 0.7493 0.7948 0.7714 346string_bean 0.8636 0.4130 0.5588 46submarine 0.5845 0.7423 0.6541 326swan 0.9222 0.8910 0.9063 266table 0.0000 0.0000 0.0000 81teapot 0.8619 0.9318 0.8955 308teddy-bear 0.8517 0.9136 0.8816 220television 0.0000 0.0000 0.0000 40the_Eiffel_Tower 0.9366 0.9882 0.9617 254the_Great_Wall_of_China 0.8244 0.8710 0.8471 124tiger 0.9504 0.9702 0.9602 336toe 0.0000 0.0000 0.0000 1train 0.9367 0.9628 0.9496 323truck 0.8864 0.7959 0.8387 98umbrella 0.6309 0.8174 0.7121 230vase 0.7382 0.8309 0.7818 207watermelon 0.9479 0.9450 0.9464 327whale 0.8877 0.8657 0.8766 283zebra 0.9832 0.9832 0.9832 238accuracy 0.8533 24032macro avg 0.7686 0.7273 0.7299 24032weighted avg 0.8445 0.8533 0.8424 24032```
README.md+137-1