Instructions to use beaunix/basil-cnn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use beaunix/basil-cnn with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://beaunix/basil-cnn") - Notebooks
- Google Colab
- Kaggle
Download label_map.json from beaunix/basil-cnn: direct link, hf CLI and curl.
- Browser
- Download file 2 kB
-
https://huggingface.co/beaunix/basil-cnn/resolve/main/label_map.json
- Command line
-
hf download hf://beaunix/basil-cnn/label_map.json
-
curl -L -o label_map.json https://huggingface.co/beaunix/basil-cnn/resolve/main/label_map.json
2 kB
| { | |
| "class_to_index": { | |
| "apple_pie": 0, | |
| "baklava": 1, | |
| "beignets": 2, | |
| "bread_pudding": 3, | |
| "breakfast_burrito": 4, | |
| "bruschetta": 5, | |
| "caesar_salad": 6, | |
| "cannoli": 7, | |
| "carrot_cake": 8, | |
| "cheese_plate": 9, | |
| "cheesecake": 10, | |
| "chocolate_cake": 11, | |
| "chocolate_mousse": 12, | |
| "churros": 13, | |
| "club_sandwich": 14, | |
| "creme_brulee": 15, | |
| "croque_madame": 16, | |
| "cup_cakes": 17, | |
| "deviled_eggs": 18, | |
| "donuts": 19, | |
| "eggs_benedict": 20, | |
| "french_onion_soup": 21, | |
| "french_toast": 22, | |
| "frozen_yogurt": 23, | |
| "garlic_bread": 24, | |
| "greek_salad": 25, | |
| "grilled_cheese_sandwich": 26, | |
| "hamburger": 27, | |
| "hot_dog": 28, | |
| "ice_cream": 29, | |
| "lasagna": 30, | |
| "macarons": 31, | |
| "omelette": 32, | |
| "pancakes": 33, | |
| "panna_cotta": 34, | |
| "pizza": 35, | |
| "red_velvet_cake": 36, | |
| "strawberry_shortcake": 37, | |
| "tiramisu": 38, | |
| "waffles": 39, | |
| "unknown": 40 | |
| }, | |
| "index_to_class": { | |
| "0": "apple_pie", | |
| "1": "baklava", | |
| "2": "beignets", | |
| "3": "bread_pudding", | |
| "4": "breakfast_burrito", | |
| "5": "bruschetta", | |
| "6": "caesar_salad", | |
| "7": "cannoli", | |
| "8": "carrot_cake", | |
| "9": "cheese_plate", | |
| "10": "cheesecake", | |
| "11": "chocolate_cake", | |
| "12": "chocolate_mousse", | |
| "13": "churros", | |
| "14": "club_sandwich", | |
| "15": "creme_brulee", | |
| "16": "croque_madame", | |
| "17": "cup_cakes", | |
| "18": "deviled_eggs", | |
| "19": "donuts", | |
| "20": "eggs_benedict", | |
| "21": "french_onion_soup", | |
| "22": "french_toast", | |
| "23": "frozen_yogurt", | |
| "24": "garlic_bread", | |
| "25": "greek_salad", | |
| "26": "grilled_cheese_sandwich", | |
| "27": "hamburger", | |
| "28": "hot_dog", | |
| "29": "ice_cream", | |
| "30": "lasagna", | |
| "31": "macarons", | |
| "32": "omelette", | |
| "33": "pancakes", | |
| "34": "panna_cotta", | |
| "35": "pizza", | |
| "36": "red_velvet_cake", | |
| "37": "strawberry_shortcake", | |
| "38": "tiramisu", | |
| "39": "waffles", | |
| "40": "unknown" | |
| } | |
| } |