Instructions to use kd13/Modern-SqueezeNet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kd13/Modern-SqueezeNet with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="kd13/Modern-SqueezeNet", trust_remote_code=True) pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForImageClassification model = AutoModelForImageClassification.from_pretrained("kd13/Modern-SqueezeNet", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload 2 files
Browse filesFiles changed (2)
- config.jsonAdded+418
- tiny_imagenet_labels.jsonAdded+407
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418{ "architectures": [ "SqueezeNetForImageClassification" ], "auto_map": { "AutoConfig": "configuration_squeezenet.SqueezeNetConfig", "AutoModelForImageClassification": "modeling_squeezenet.SqueezeNetForImageClassification" }, "final_dropout": 0.5, "fire_dropout": 0.0, "id2label": { "0": "goldfish", "1": "European fire salamander", "2": "bullfrog", "3": "tailed frog", "4": "American alligator", "5": "boa constrictor", "6": "trilobite", "7": "scorpion", "8": "black widow", "9": "tarantula", "10": "centipede", "11": "koala", "12": "jellyfish", "13": "brain coral", "14": "snail", "15": "sea slug", "16": "American lobster", "17": "spiny lobster", "18": "black stork", "19": "king penguin", "20": "albatross", "21": "dugong", "22": "Yorkshire terrier", "23": "golden retriever", "24": "Labrador retriever", "25": "German shepherd", "26": "standard poodle", "27": "tabby", "28": "Persian cat", "29": "Egyptian cat", "30": "cougar", "31": "lion", "32": "brown bear", "33": "ladybug", "34": "grasshopper", "35": "walking stick", "36": "cockroach", "37": "mantis", "38": "dragonfly", "39": "monarch", "40": "sulphur butterfly", "41": "sea cucumber", "42": "guinea pig", "43": "hog", "44": "ox", "45": "bison", "46": "bighorn", "47": "gazelle", "48": "Arabian camel", "49": "orangutan", "50": "chimpanzee", "51": "baboon", "52": "African elephant", "53": "lesser panda", "54": "abacus", "55": "academic gown", "56": "altar", "57": "backpack", "58": "bannister", "59": "barbershop", "60": "barn", "61": "barrel", "62": "basketball", "63": "bathtub", "64": "beach wagon", "65": "beacon", "66": "beaker", "67": "beer bottle", "68": "bikini", "69": "binoculars", "70": "birdhouse", "71": "bow tie", "72": "brass", "73": "bucket", "74": "bullet train", "75": "butcher shop", "76": "candle", "77": "cannon", "78": "cardigan", "79": "cash machine", "80": "CD player", "81": "chest", "82": "Christmas stocking", "83": "cliff dwelling", "84": "computer keyboard", "85": "confectionery", "86": "convertible", "87": "crane", "88": "dam", "89": "desk", "90": "dining table", "91": "dumbbell", "92": "flagpole", "93": "fly", "94": "fountain", "95": "freight car", "96": "frying pan", "97": "fur coat", "98": "gasmask", "99": "go-kart", "100": "gondola", "101": "hourglass", "102": "iPod", "103": "jinrikisha", "104": "kimono", "105": "lampshade", "106": "lawn mower", "107": "lifeboat", "108": "limousine", "109": "magnetic compass", "110": "maypole", "111": "military uniform", "112": "miniskirt", "113": "moving van", "114": "neck brace", "115": "obelisk", "116": "oboe", "117": "organ", "118": "parking meter", "119": "pay-phone", "120": "picket fence", "121": "pill bottle", "122": "plunger", "123": "police van", "124": "poncho", "125": "pop bottle", "126": "potter's wheel", "127": "projectile", "128": "punching bag", "129": "refrigerator", "130": "remote control", "131": "rocking chair", "132": "rugby ball", "133": "sandal", "134": "school bus", "135": "scoreboard", "136": "sewing machine", "137": "snorkel", "138": "sock", "139": "sombrero", "140": "space heater", "141": "spider web", "142": "sports car", "143": "steel arch bridge", "144": "stopwatch", "145": "sunglasses", "146": "suspension bridge", "147": "swimming trunks", "148": "syringe", "149": "teapot", "150": "teddy", "151": "thatch", "152": "torch", "153": "tractor", "154": "triumphal arch", "155": "trolleybus", "156": "turnstile", "157": "umbrella", "158": "vestment", "159": "viaduct", "160": "volleyball", "161": "water jug", "162": "water tower", "163": "wok", "164": "wooden spoon", "165": "comic book", "166": "reel", "167": "guacamole", "168": "ice cream", "169": "ice lolly", "170": "goose", "171": "drumstick", "172": "plate", "173": "pretzel", "174": "mashed potato", "175": "cauliflower", "176": "bell pepper", "177": "lemon", "178": "banana", "179": "pomegranate", "180": "meat loaf", "181": "pizza", "182": "potpie", "183": "espresso", "184": "bee", "185": "apron", "186": "pole", "187": "Chihuahua", "188": "alp", "189": "cliff", "190": "coral reef", "191": "lakeside", "192": "seashore", "193": "acorn", "194": "broom", "195": "mushroom", "196": "nail", "197": "chain", "198": "slug", "199": "orange" }, "label2id": { "goldfish": 0, "European fire salamander": 1, "bullfrog": 2, "tailed frog": 3, "American alligator": 4, "boa constrictor": 5, "trilobite": 6, "scorpion": 7, "black widow": 8, "tarantula": 9, "centipede": 10, "koala": 11, "jellyfish": 12, "brain coral": 13, "snail": 14, "sea slug": 15, "American lobster": 16, "spiny lobster": 17, "black stork": 18, "king penguin": 19, "albatross": 20, "dugong": 21, "Yorkshire terrier": 22, "golden retriever": 23, "Labrador retriever": 24, "German shepherd": 25, "standard poodle": 26, "tabby": 27, "Persian cat": 28, "Egyptian cat": 29, "cougar": 30, "lion": 31, "brown bear": 32, "ladybug": 33, "grasshopper": 34, "walking stick": 35, "cockroach": 36, "mantis": 37, "dragonfly": 38, "monarch": 39, "sulphur butterfly": 40, "sea cucumber": 41, "guinea pig": 42, "hog": 43, "ox": 44, "bison": 45, "bighorn": 46, "gazelle": 47, "Arabian camel": 48, "orangutan": 49, "chimpanzee": 50, "baboon": 51, "African elephant": 52, "lesser panda": 53, "abacus": 54, "academic gown": 55, "altar": 56, "backpack": 57, "bannister": 58, "barbershop": 59, "barn": 60, "barrel": 61, "basketball": 62, "bathtub": 63, "beach wagon": 64, "beacon": 65, "beaker": 66, "beer bottle": 67, "bikini": 68, "binoculars": 69, "birdhouse": 70, "bow tie": 71, "brass": 72, "bucket": 73, "bullet train": 74, "butcher shop": 75, "candle": 76, "cannon": 77, "cardigan": 78, "cash machine": 79, "CD player": 80, "chest": 81, "Christmas stocking": 82, "cliff dwelling": 83, "computer keyboard": 84, "confectionery": 85, "convertible": 86, "crane": 87, "dam": 88, "desk": 89, "dining table": 90, "dumbbell": 91, "flagpole": 92, "fly": 93, "fountain": 94, "freight car": 95, "frying pan": 96, "fur coat": 97, "gasmask": 98, "go-kart": 99, "gondola": 100, "hourglass": 101, "iPod": 102, "jinrikisha": 103, "kimono": 104, "lampshade": 105, "lawn mower": 106, "lifeboat": 107, "limousine": 108, "magnetic compass": 109, "maypole": 110, "military uniform": 111, "miniskirt": 112, "moving van": 113, "neck brace": 114, "obelisk": 115, "oboe": 116, "organ": 117, "parking meter": 118, "pay-phone": 119, "picket fence": 120, "pill bottle": 121, "plunger": 122, "police van": 123, "poncho": 124, "pop bottle": 125, "potter's wheel": 126, "projectile": 127, "punching bag": 128, "refrigerator": 129, "remote control": 130, "rocking chair": 131, "rugby ball": 132, "sandal": 133, "school bus": 134, "scoreboard": 135, "sewing machine": 136, "snorkel": 137, "sock": 138, "sombrero": 139, "space heater": 140, "spider web": 141, "sports car": 142, "steel arch bridge": 143, "stopwatch": 144, "sunglasses": 145, "suspension bridge": 146, "swimming trunks": 147, "syringe": 148, "teapot": 149, "teddy": 150, "thatch": 151, "torch": 152, "tractor": 153, "triumphal arch": 154, "trolleybus": 155, "turnstile": 156, "umbrella": 157, "vestment": 158, "viaduct": 159, "volleyball": 160, "water jug": 161, "water tower": 162, "wok": 163, "wooden spoon": 164, "comic book": 165, "reel": 166, "guacamole": 167, "ice cream": 168, "ice lolly": 169, "goose": 170, "drumstick": 171, "plate": 172, "pretzel": 173, "mashed potato": 174, "cauliflower": 175, "bell pepper": 176, "lemon": 177, "banana": 178, "pomegranate": 179, "meat loaf": 180, "pizza": 181, "potpie": 182, "espresso": 183, "bee": 184, "apron": 185, "pole": 186, "Chihuahua": 187, "alp": 188, "cliff": 189, "coral reef": 190, "lakeside": 191, "seashore": 192, "acorn": 193, "broom": 194, "mushroom": 195, "nail": 196, "chain": 197, "slug": 198, "orange": 199 }, "model_type": "squeezenet_custom", "num_classes": 200, "torch_dtype": "float32"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407{ "num_labels": 200, "id2label": { "0": "n01443537", "1": "n01629819", "2": "n01641577", "3": "n01644900", "4": "n01698640", "5": "n01742172", "6": "n01768244", "7": "n01770393", "8": "n01774384", "9": "n01774750", "10": "n01784675", "11": "n01882714", "12": "n01910747", "13": "n01917289", "14": "n01944390", "15": "n01950731", "16": "n01983481", "17": "n01984695", "18": "n02002724", "19": "n02056570", "20": "n02058221", "21": "n02074367", "22": "n02094433", "23": "n02099601", "24": "n02099712", "25": "n02106662", "26": "n02113799", "27": "n02123045", "28": "n02123394", "29": "n02124075", "30": "n02125311", "31": "n02129165", "32": "n02132136", "33": "n02165456", "34": "n02226429", "35": "n02231487", "36": "n02233338", "37": "n02236044", "38": "n02268443", "39": "n02279972", "40": "n02281406", "41": "n02321529", "42": "n02364673", "43": "n02395406", "44": "n02403003", "45": "n02410509", "46": "n02415577", "47": "n02423022", "48": "n02437312", "49": "n02480495", "50": "n02481823", "51": "n02486410", "52": "n02504458", "53": "n02509815", "54": "n02666347", "55": "n02669723", "56": "n02699494", "57": "n02769748", "58": "n02788148", "59": "n02791270", "60": "n02793495", "61": "n02795169", "62": "n02802426", "63": "n02808440", "64": "n02814533", "65": "n02814860", "66": "n02815834", "67": "n02823428", "68": "n02837789", "69": "n02841315", "70": "n02843684", "71": "n02883205", "72": "n02892201", "73": "n02909870", "74": "n02917067", "75": "n02927161", "76": "n02948072", "77": "n02950826", "78": "n02963159", "79": "n02977058", "80": "n02988304", "81": "n03014705", "82": "n03026506", "83": "n03042490", "84": "n03085013", "85": "n03089624", "86": "n03100240", "87": "n03126707", "88": "n03160309", "89": "n03179701", "90": "n03201208", "91": "n03255030", "92": "n03355925", "93": "n03373237", "94": "n03388043", "95": "n03393912", "96": "n03400231", "97": "n03404251", "98": "n03424325", "99": "n03444034", "100": "n03447447", "101": "n03544143", "102": "n03584254", "103": "n03599486", "104": "n03617480", "105": "n03637318", "106": "n03649909", "107": "n03662601", "108": "n03670208", "109": "n03706229", "110": "n03733131", "111": "n03763968", "112": "n03770439", "113": "n03796401", "114": "n03814639", "115": "n03837869", "116": "n03838899", "117": "n03854065", "118": "n03891332", "119": "n03902125", "120": "n03930313", "121": "n03937543", "122": "n03970156", "123": "n03977966", "124": "n03980874", "125": "n03983396", "126": "n03992509", "127": "n04008634", "128": "n04023962", "129": "n04070727", "130": "n04074963", "131": "n04099969", "132": "n04118538", "133": "n04133789", "134": "n04146614", "135": "n04149813", "136": "n04179913", "137": "n04251144", "138": "n04254777", "139": "n04259630", "140": "n04265275", "141": "n04275548", "142": "n04285008", "143": "n04311004", "144": "n04328186", "145": "n04356056", "146": "n04366367", "147": "n04371430", "148": "n04376876", "149": "n04398044", "150": "n04399382", "151": "n04417672", "152": "n04456115", "153": "n04465666", "154": "n04486054", "155": "n04487081", "156": "n04501370", "157": "n04507155", "158": "n04532106", "159": "n04532670", "160": "n04540053", "161": "n04560804", "162": "n04562935", "163": "n04596742", "164": "n04598010", "165": "n06596364", "166": "n07056680", "167": "n07583066", "168": "n07614500", "169": "n07615774", "170": "n07646821", "171": "n07647870", "172": "n07657664", "173": "n07695742", "174": "n07711569", "175": "n07715103", "176": "n07720875", "177": "n07749582", "178": "n07753592", "179": "n07768694", "180": "n07871810", "181": "n07873807", "182": "n07875152", "183": "n07920052", "184": "n07975909", "185": "n08496334", "186": "n08620881", "187": "n08742578", "188": "n09193705", "189": "n09246464", "190": "n09256479", "191": "n09332890", "192": "n09428293", "193": "n12267677", "194": "n12520864", "195": "n13001041", "196": "n13652335", "197": "n13652994", "198": "n13719102", "199": "n14991210" }, "label2id": { "n01443537": 0, "n01629819": 1, "n01641577": 2, "n01644900": 3, "n01698640": 4, "n01742172": 5, "n01768244": 6, "n01770393": 7, "n01774384": 8, "n01774750": 9, "n01784675": 10, "n01882714": 11, "n01910747": 12, "n01917289": 13, "n01944390": 14, "n01950731": 15, "n01983481": 16, "n01984695": 17, "n02002724": 18, "n02056570": 19, "n02058221": 20, "n02074367": 21, "n02094433": 22, "n02099601": 23, "n02099712": 24, "n02106662": 25, "n02113799": 26, "n02123045": 27, "n02123394": 28, "n02124075": 29, "n02125311": 30, "n02129165": 31, "n02132136": 32, "n02165456": 33, "n02226429": 34, "n02231487": 35, "n02233338": 36, "n02236044": 37, "n02268443": 38, "n02279972": 39, "n02281406": 40, "n02321529": 41, "n02364673": 42, "n02395406": 43, "n02403003": 44, "n02410509": 45, "n02415577": 46, "n02423022": 47, "n02437312": 48, "n02480495": 49, "n02481823": 50, "n02486410": 51, "n02504458": 52, "n02509815": 53, "n02666347": 54, "n02669723": 55, "n02699494": 56, "n02769748": 57, "n02788148": 58, "n02791270": 59, "n02793495": 60, "n02795169": 61, "n02802426": 62, "n02808440": 63, "n02814533": 64, "n02814860": 65, "n02815834": 66, "n02823428": 67, "n02837789": 68, "n02841315": 69, "n02843684": 70, "n02883205": 71, "n02892201": 72, "n02909870": 73, "n02917067": 74, "n02927161": 75, "n02948072": 76, "n02950826": 77, "n02963159": 78, "n02977058": 79, "n02988304": 80, "n03014705": 81, "n03026506": 82, "n03042490": 83, "n03085013": 84, "n03089624": 85, "n03100240": 86, "n03126707": 87, "n03160309": 88, "n03179701": 89, "n03201208": 90, "n03255030": 91, "n03355925": 92, "n03373237": 93, "n03388043": 94, "n03393912": 95, "n03400231": 96, "n03404251": 97, "n03424325": 98, "n03444034": 99, "n03447447": 100, "n03544143": 101, "n03584254": 102, "n03599486": 103, "n03617480": 104, "n03637318": 105, "n03649909": 106, "n03662601": 107, "n03670208": 108, "n03706229": 109, "n03733131": 110, "n03763968": 111, "n03770439": 112, "n03796401": 113, "n03814639": 114, "n03837869": 115, "n03838899": 116, "n03854065": 117, "n03891332": 118, "n03902125": 119, "n03930313": 120, "n03937543": 121, "n03970156": 122, "n03977966": 123, "n03980874": 124, "n03983396": 125, "n03992509": 126, "n04008634": 127, "n04023962": 128, "n04070727": 129, "n04074963": 130, "n04099969": 131, "n04118538": 132, "n04133789": 133, "n04146614": 134, "n04149813": 135, "n04179913": 136, "n04251144": 137, "n04254777": 138, "n04259630": 139, "n04265275": 140, "n04275548": 141, "n04285008": 142, "n04311004": 143, "n04328186": 144, "n04356056": 145, "n04366367": 146, "n04371430": 147, "n04376876": 148, "n04398044": 149, "n04399382": 150, "n04417672": 151, "n04456115": 152, "n04465666": 153, "n04486054": 154, "n04487081": 155, "n04501370": 156, "n04507155": 157, "n04532106": 158, "n04532670": 159, "n04540053": 160, "n04560804": 161, "n04562935": 162, "n04596742": 163, "n04598010": 164, "n06596364": 165, "n07056680": 166, "n07583066": 167, "n07614500": 168, "n07615774": 169, "n07646821": 170, "n07647870": 171, "n07657664": 172, "n07695742": 173, "n07711569": 174, "n07715103": 175, "n07720875": 176, "n07749582": 177, "n07753592": 178, "n07768694": 179, "n07871810": 180, "n07873807": 181, "n07875152": 182, "n07920052": 183, "n07975909": 184, "n08496334": 185, "n08620881": 186, "n08742578": 187, "n09193705": 188, "n09246464": 189, "n09256479": 190, "n09332890": 191, "n09428293": 192, "n12267677": 193, "n12520864": 194, "n13001041": 195, "n13652335": 196, "n13652994": 197, "n13719102": 198, "n14991210": 199 }}config.jsonAdded+418
tiny_imagenet_labels.jsonAdded+407