Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- .github/workflows/update_space.yml +28 -0
- README.md +3 -9
- app.py +72 -0
- bird_200_classes.txt +200 -0
- certificate.pem +31 -0
- flagged/dataset1.csv +3 -0
- flagged/dataset2.csv +2 -0
- flagged/dataset3.csv +3 -0
- flagged/input_img/596af0993c7fe8e1a18d/Screenshot 2024-11-28 at 1.03.22PM.png +0 -0
- flagged/output/2c0088c869f226b53710/image.webp +0 -0
- flagged/output/a13ab597cd4b1c6746c1/image.webp +0 -0
- food_101_classes.txt +101 -0
- requirements.txt +3 -0
- sample_data/apple_pie.jpg +0 -0
- sample_data/pizza.jpg +0 -0
- traced_models/bird_200_mobilenetv3_large_optimized/model.pt +3 -0
- traced_models/food_101_vit_small/model.pt +3 -0
- traced_models/food_101_vit_tiny/model.pt +3 -0
.github/workflows/update_space.yml
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Run Python script
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches:
|
6 |
+
- main
|
7 |
+
|
8 |
+
jobs:
|
9 |
+
build:
|
10 |
+
runs-on: ubuntu-latest
|
11 |
+
|
12 |
+
steps:
|
13 |
+
- name: Checkout
|
14 |
+
uses: actions/checkout@v2
|
15 |
+
|
16 |
+
- name: Set up Python
|
17 |
+
uses: actions/setup-python@v2
|
18 |
+
with:
|
19 |
+
python-version: '3.9'
|
20 |
+
|
21 |
+
- name: Install Gradio
|
22 |
+
run: python -m pip install gradio
|
23 |
+
|
24 |
+
- name: Log in to Hugging Face
|
25 |
+
run: python -c 'import huggingface_hub; huggingface_hub.login(token="${{ secrets.hf_token }}")'
|
26 |
+
|
27 |
+
- name: Deploy to Spaces
|
28 |
+
run: gradio deploy
|
README.md
CHANGED
@@ -1,12 +1,6 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji: 🐠
|
4 |
-
colorFrom: indigo
|
5 |
-
colorTo: blue
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 5.8.0
|
8 |
app_file: app.py
|
9 |
-
|
|
|
10 |
---
|
11 |
-
|
12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: food-image-classifier
|
|
|
|
|
|
|
|
|
|
|
3 |
app_file: app.py
|
4 |
+
sdk: gradio
|
5 |
+
sdk_version: 5.7.1
|
6 |
---
|
|
|
|
app.py
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import torch
|
3 |
+
import torchvision.transforms as transforms
|
4 |
+
from PIL import Image
|
5 |
+
import os
|
6 |
+
from pathlib import Path
|
7 |
+
|
8 |
+
class FoodImageClassifier:
|
9 |
+
def __init__(self, model_dir="traced_models/food_101_vit_small",
|
10 |
+
model_file_name="model.pt",
|
11 |
+
labels_path='food_101_classes.txt'):
|
12 |
+
self.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
13 |
+
print(self.device)
|
14 |
+
# Load the traced model
|
15 |
+
model_full_path = Path(model_dir,model_file_name)
|
16 |
+
self.model = torch.jit.load(model_full_path)
|
17 |
+
self.model = self.model.to(self.device)
|
18 |
+
self.model.eval()
|
19 |
+
|
20 |
+
# Define the same transforms used during training/testing
|
21 |
+
self.transforms = transforms.Compose([
|
22 |
+
transforms.Resize(256),
|
23 |
+
transforms.CenterCrop(224),
|
24 |
+
transforms.ToTensor(),
|
25 |
+
transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])
|
26 |
+
])
|
27 |
+
|
28 |
+
# Load labels from file
|
29 |
+
with open(labels_path, 'r') as f:
|
30 |
+
self.labels = [line.strip() for line in f.readlines()]
|
31 |
+
|
32 |
+
@torch.no_grad()
|
33 |
+
def predict(self, image):
|
34 |
+
if image is None:
|
35 |
+
return None
|
36 |
+
|
37 |
+
# Convert to PIL Image if needed
|
38 |
+
if not isinstance(image, Image.Image):
|
39 |
+
image = Image.fromarray(image).convert('RGB')
|
40 |
+
|
41 |
+
# Preprocess image
|
42 |
+
img_tensor = self.transforms(image).unsqueeze(0).to(self.device)
|
43 |
+
|
44 |
+
# Get prediction
|
45 |
+
output = self.model(img_tensor)
|
46 |
+
probabilities = torch.nn.functional.softmax(output[0], dim=0)
|
47 |
+
|
48 |
+
# Create prediction dictionary
|
49 |
+
return {
|
50 |
+
self.labels[idx]: float(prob)
|
51 |
+
for idx, prob in enumerate(probabilities)
|
52 |
+
}
|
53 |
+
|
54 |
+
# Create classifier instance
|
55 |
+
classifier = FoodImageClassifier()
|
56 |
+
|
57 |
+
# Create Gradio interface
|
58 |
+
demo = gr.Interface(
|
59 |
+
fn=classifier.predict,
|
60 |
+
inputs=gr.Image(),
|
61 |
+
outputs=gr.Label(num_top_classes=5),
|
62 |
+
title="Food classifier",
|
63 |
+
description="Upload an image to classify Food Images",
|
64 |
+
examples=[
|
65 |
+
["sample_data/apple_pie.jpg"],
|
66 |
+
["sample_data/pizza.jpg"]
|
67 |
+
]
|
68 |
+
)
|
69 |
+
|
70 |
+
|
71 |
+
if __name__ == "__main__":
|
72 |
+
demo.launch()
|
bird_200_classes.txt
ADDED
@@ -0,0 +1,200 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Acadian_Flycatcher
|
2 |
+
American_Crow
|
3 |
+
American_Goldfinch
|
4 |
+
American_Pipit
|
5 |
+
American_Redstart
|
6 |
+
American_Three_toed_Woodpecker
|
7 |
+
Anna_Hummingbird
|
8 |
+
Artic_Tern
|
9 |
+
Baird_Sparrow
|
10 |
+
Baltimore_Oriole
|
11 |
+
Bank_Swallow
|
12 |
+
Barn_Swallow
|
13 |
+
Bay_breasted_Warbler
|
14 |
+
Belted_Kingfisher
|
15 |
+
Bewick_Wren
|
16 |
+
Black_Tern
|
17 |
+
Black_and_white_Warbler
|
18 |
+
Black_billed_Cuckoo
|
19 |
+
Black_capped_Vireo
|
20 |
+
Black_footed_Albatross
|
21 |
+
Black_throated_Blue_Warbler
|
22 |
+
Black_throated_Sparrow
|
23 |
+
Blue_Grosbeak
|
24 |
+
Blue_Jay
|
25 |
+
Blue_headed_Vireo
|
26 |
+
Blue_winged_Warbler
|
27 |
+
Boat_tailed_Grackle
|
28 |
+
Bobolink
|
29 |
+
Bohemian_Waxwing
|
30 |
+
Brandt_Cormorant
|
31 |
+
Brewer_Blackbird
|
32 |
+
Brewer_Sparrow
|
33 |
+
Bronzed_Cowbird
|
34 |
+
Brown_Creeper
|
35 |
+
Brown_Pelican
|
36 |
+
Brown_Thrasher
|
37 |
+
Cactus_Wren
|
38 |
+
California_Gull
|
39 |
+
Canada_Warbler
|
40 |
+
Cape_Glossy_Starling
|
41 |
+
Cape_May_Warbler
|
42 |
+
Cardinal
|
43 |
+
Carolina_Wren
|
44 |
+
Caspian_Tern
|
45 |
+
Cedar_Waxwing
|
46 |
+
Cerulean_Warbler
|
47 |
+
Chestnut_sided_Warbler
|
48 |
+
Chipping_Sparrow
|
49 |
+
Chuck_will_Widow
|
50 |
+
Clark_Nutcracker
|
51 |
+
Clay_colored_Sparrow
|
52 |
+
Cliff_Swallow
|
53 |
+
Common_Raven
|
54 |
+
Common_Tern
|
55 |
+
Common_Yellowthroat
|
56 |
+
Crested_Auklet
|
57 |
+
Dark_eyed_Junco
|
58 |
+
Downy_Woodpecker
|
59 |
+
Eared_Grebe
|
60 |
+
Eastern_Towhee
|
61 |
+
Elegant_Tern
|
62 |
+
European_Goldfinch
|
63 |
+
Evening_Grosbeak
|
64 |
+
Field_Sparrow
|
65 |
+
Fish_Crow
|
66 |
+
Florida_Jay
|
67 |
+
Forsters_Tern
|
68 |
+
Fox_Sparrow
|
69 |
+
Frigatebird
|
70 |
+
Gadwall
|
71 |
+
Geococcyx
|
72 |
+
Glaucous_winged_Gull
|
73 |
+
Golden_winged_Warbler
|
74 |
+
Grasshopper_Sparrow
|
75 |
+
Gray_Catbird
|
76 |
+
Gray_Kingbird
|
77 |
+
Gray_crowned_Rosy_Finch
|
78 |
+
Great_Crested_Flycatcher
|
79 |
+
Great_Grey_Shrike
|
80 |
+
Green_Jay
|
81 |
+
Green_Kingfisher
|
82 |
+
Green_Violetear
|
83 |
+
Green_tailed_Towhee
|
84 |
+
Groove_billed_Ani
|
85 |
+
Harris_Sparrow
|
86 |
+
Heermann_Gull
|
87 |
+
Henslow_Sparrow
|
88 |
+
Herring_Gull
|
89 |
+
Hooded_Merganser
|
90 |
+
Hooded_Oriole
|
91 |
+
Hooded_Warbler
|
92 |
+
Horned_Grebe
|
93 |
+
Horned_Lark
|
94 |
+
Horned_Puffin
|
95 |
+
House_Sparrow
|
96 |
+
House_Wren
|
97 |
+
Indigo_Bunting
|
98 |
+
Ivory_Gull
|
99 |
+
Kentucky_Warbler
|
100 |
+
Laysan_Albatross
|
101 |
+
Lazuli_Bunting
|
102 |
+
Le_Conte_Sparrow
|
103 |
+
Least_Auklet
|
104 |
+
Least_Flycatcher
|
105 |
+
Least_Tern
|
106 |
+
Lincoln_Sparrow
|
107 |
+
Loggerhead_Shrike
|
108 |
+
Long_tailed_Jaeger
|
109 |
+
Louisiana_Waterthrush
|
110 |
+
Magnolia_Warbler
|
111 |
+
Mallard
|
112 |
+
Mangrove_Cuckoo
|
113 |
+
Marsh_Wren
|
114 |
+
Mockingbird
|
115 |
+
Mourning_Warbler
|
116 |
+
Myrtle_Warbler
|
117 |
+
Nashville_Warbler
|
118 |
+
Nelson_Sharp_tailed_Sparrow
|
119 |
+
Nighthawk
|
120 |
+
Northern_Flicker
|
121 |
+
Northern_Fulmar
|
122 |
+
Northern_Waterthrush
|
123 |
+
Olive_sided_Flycatcher
|
124 |
+
Orange_crowned_Warbler
|
125 |
+
Orchard_Oriole
|
126 |
+
Ovenbird
|
127 |
+
Pacific_Loon
|
128 |
+
Painted_Bunting
|
129 |
+
Palm_Warbler
|
130 |
+
Parakeet_Auklet
|
131 |
+
Pelagic_Cormorant
|
132 |
+
Philadelphia_Vireo
|
133 |
+
Pied_Kingfisher
|
134 |
+
Pied_billed_Grebe
|
135 |
+
Pigeon_Guillemot
|
136 |
+
Pileated_Woodpecker
|
137 |
+
Pine_Grosbeak
|
138 |
+
Pine_Warbler
|
139 |
+
Pomarine_Jaeger
|
140 |
+
Prairie_Warbler
|
141 |
+
Prothonotary_Warbler
|
142 |
+
Purple_Finch
|
143 |
+
Red_bellied_Woodpecker
|
144 |
+
Red_breasted_Merganser
|
145 |
+
Red_cockaded_Woodpecker
|
146 |
+
Red_eyed_Vireo
|
147 |
+
Red_faced_Cormorant
|
148 |
+
Red_headed_Woodpecker
|
149 |
+
Red_legged_Kittiwake
|
150 |
+
Red_winged_Blackbird
|
151 |
+
Rhinoceros_Auklet
|
152 |
+
Ring_billed_Gull
|
153 |
+
Ringed_Kingfisher
|
154 |
+
Rock_Wren
|
155 |
+
Rose_breasted_Grosbeak
|
156 |
+
Ruby_throated_Hummingbird
|
157 |
+
Rufous_Hummingbird
|
158 |
+
Rusty_Blackbird
|
159 |
+
Sage_Thrasher
|
160 |
+
Savannah_Sparrow
|
161 |
+
Sayornis
|
162 |
+
Scarlet_Tanager
|
163 |
+
Scissor_tailed_Flycatcher
|
164 |
+
Scott_Oriole
|
165 |
+
Seaside_Sparrow
|
166 |
+
Shiny_Cowbird
|
167 |
+
Slaty_backed_Gull
|
168 |
+
Song_Sparrow
|
169 |
+
Sooty_Albatross
|
170 |
+
Spotted_Catbird
|
171 |
+
Summer_Tanager
|
172 |
+
Swainson_Warbler
|
173 |
+
Tennessee_Warbler
|
174 |
+
Tree_Sparrow
|
175 |
+
Tree_Swallow
|
176 |
+
Tropical_Kingbird
|
177 |
+
Vermilion_Flycatcher
|
178 |
+
Vesper_Sparrow
|
179 |
+
Warbling_Vireo
|
180 |
+
Western_Grebe
|
181 |
+
Western_Gull
|
182 |
+
Western_Meadowlark
|
183 |
+
Western_Wood_Pewee
|
184 |
+
Whip_poor_Will
|
185 |
+
White_Pelican
|
186 |
+
White_breasted_Kingfisher
|
187 |
+
White_breasted_Nuthatch
|
188 |
+
White_crowned_Sparrow
|
189 |
+
White_eyed_Vireo
|
190 |
+
White_necked_Raven
|
191 |
+
White_throated_Sparrow
|
192 |
+
Wilson_Warbler
|
193 |
+
Winter_Wren
|
194 |
+
Worm_eating_Warbler
|
195 |
+
Yellow_Warbler
|
196 |
+
Yellow_bellied_Flycatcher
|
197 |
+
Yellow_billed_Cuckoo
|
198 |
+
Yellow_breasted_Chat
|
199 |
+
Yellow_headed_Blackbird
|
200 |
+
Yellow_throated_Vireo
|
certificate.pem
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
-----BEGIN CERTIFICATE-----
|
2 |
+
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
|
31 |
+
-----END CERTIFICATE-----
|
flagged/dataset1.csv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
name,output,timestamp
|
2 |
+
Chirag,Hello Chirag!,2024-12-03 00:12:21.409022
|
3 |
+
Mitesh!,Hello Mitesh!!,2024-12-03 00:12:34.555481
|
flagged/dataset2.csv
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
name,checkbox,value,output,timestamp
|
2 |
+
HowDy Rahul,true,85,"name='HowDy Rahul', checkbox=True, value=85",2024-12-03 00:19:02.062029
|
flagged/dataset3.csv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
input_img,output,timestamp
|
2 |
+
,.gradio/flagged/output/2c0088c869f226b53710/image.webp,2024-12-03 00:23:43.040231
|
3 |
+
.gradio/flagged/input_img/596af0993c7fe8e1a18d/Screenshot 2024-11-28 at 1.03.22PM.png,.gradio/flagged/output/a13ab597cd4b1c6746c1/image.webp,2024-12-03 00:23:55.988759
|
flagged/input_img/596af0993c7fe8e1a18d/Screenshot 2024-11-28 at 1.03.22PM.png
ADDED
![]() |
flagged/output/2c0088c869f226b53710/image.webp
ADDED
![]() |
flagged/output/a13ab597cd4b1c6746c1/image.webp
ADDED
![]() |
food_101_classes.txt
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
apple_pie
|
2 |
+
baby_back_ribs
|
3 |
+
baklava
|
4 |
+
beef_carpaccio
|
5 |
+
beef_tartare
|
6 |
+
beet_salad
|
7 |
+
beignets
|
8 |
+
bibimbap
|
9 |
+
bread_pudding
|
10 |
+
breakfast_burrito
|
11 |
+
bruschetta
|
12 |
+
caesar_salad
|
13 |
+
cannoli
|
14 |
+
caprese_salad
|
15 |
+
carrot_cake
|
16 |
+
ceviche
|
17 |
+
cheese_plate
|
18 |
+
cheesecake
|
19 |
+
chicken_curry
|
20 |
+
chicken_quesadilla
|
21 |
+
chicken_wings
|
22 |
+
chocolate_cake
|
23 |
+
chocolate_mousse
|
24 |
+
churros
|
25 |
+
clam_chowder
|
26 |
+
club_sandwich
|
27 |
+
crab_cakes
|
28 |
+
creme_brulee
|
29 |
+
croque_madame
|
30 |
+
cup_cakes
|
31 |
+
deviled_eggs
|
32 |
+
donuts
|
33 |
+
dumplings
|
34 |
+
edamame
|
35 |
+
eggs_benedict
|
36 |
+
escargots
|
37 |
+
falafel
|
38 |
+
filet_mignon
|
39 |
+
fish_and_chips
|
40 |
+
foie_gras
|
41 |
+
french_fries
|
42 |
+
french_onion_soup
|
43 |
+
french_toast
|
44 |
+
fried_calamari
|
45 |
+
fried_rice
|
46 |
+
frozen_yogurt
|
47 |
+
garlic_bread
|
48 |
+
gnocchi
|
49 |
+
greek_salad
|
50 |
+
grilled_cheese_sandwich
|
51 |
+
grilled_salmon
|
52 |
+
guacamole
|
53 |
+
gyoza
|
54 |
+
hamburger
|
55 |
+
hot_and_sour_soup
|
56 |
+
hot_dog
|
57 |
+
huevos_rancheros
|
58 |
+
hummus
|
59 |
+
ice_cream
|
60 |
+
lasagna
|
61 |
+
lobster_bisque
|
62 |
+
lobster_roll_sandwich
|
63 |
+
macaroni_and_cheese
|
64 |
+
macarons
|
65 |
+
miso_soup
|
66 |
+
mussels
|
67 |
+
nachos
|
68 |
+
omelette
|
69 |
+
onion_rings
|
70 |
+
oysters
|
71 |
+
pad_thai
|
72 |
+
paella
|
73 |
+
pancakes
|
74 |
+
panna_cotta
|
75 |
+
peking_duck
|
76 |
+
pho
|
77 |
+
pizza
|
78 |
+
pork_chop
|
79 |
+
poutine
|
80 |
+
prime_rib
|
81 |
+
pulled_pork_sandwich
|
82 |
+
ramen
|
83 |
+
ravioli
|
84 |
+
red_velvet_cake
|
85 |
+
risotto
|
86 |
+
samosa
|
87 |
+
sashimi
|
88 |
+
scallops
|
89 |
+
seaweed_salad
|
90 |
+
shrimp_and_grits
|
91 |
+
spaghetti_bolognese
|
92 |
+
spaghetti_carbonara
|
93 |
+
spring_rolls
|
94 |
+
steak
|
95 |
+
strawberry_shortcake
|
96 |
+
sushi
|
97 |
+
tacos
|
98 |
+
takoyaki
|
99 |
+
tiramisu
|
100 |
+
tuna_tartare
|
101 |
+
waffles
|
requirements.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
torch
|
2 |
+
gradio
|
3 |
+
torchvision
|
sample_data/apple_pie.jpg
ADDED
![]() |
sample_data/pizza.jpg
ADDED
![]() |
traced_models/bird_200_mobilenetv3_large_optimized/model.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e06dad17b99148bb52723b010bc48353f483946a75663bd731ad1639d27b65b3
|
3 |
+
size 18424425
|
traced_models/food_101_vit_small/model.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c5cc7d8bc5f0902ec3b96650810d1e613fc974800a1d8af3eabb31fcb66e0fc1
|
3 |
+
size 87212775
|
traced_models/food_101_vit_tiny/model.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d871b131c357043e2459be057c3e97fe7b83a9b462bacb141d1d0edf42c70677
|
3 |
+
size 22570279
|