Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
|
|
5 |
import os
|
6 |
# list of models: 'mealv1_resnest50', 'mealv2_resnest50', 'mealv2_resnest50_cutmix', 'mealv2_resnest50_380x380', 'mealv2_mobilenetv3_small_075', 'mealv2_mobilenetv3_small_100', 'mealv2_mobilenet_v3_large_100', 'mealv2_efficientnet_b0'
|
7 |
# load pretrained models, using "mealv2_resnest50_cutmix" as an example
|
8 |
-
model = torch.hub.load('
|
9 |
model.eval()
|
10 |
# Download an example image from the pytorch website
|
11 |
torch.hub.download_url_to_file("https://github.com/pytorch/hub/raw/master/images/dog.jpg", "dog.jpg")
|
|
|
5 |
import os
|
6 |
# list of models: 'mealv1_resnest50', 'mealv2_resnest50', 'mealv2_resnest50_cutmix', 'mealv2_resnest50_380x380', 'mealv2_mobilenetv3_small_075', 'mealv2_mobilenetv3_small_100', 'mealv2_mobilenet_v3_large_100', 'mealv2_efficientnet_b0'
|
7 |
# load pretrained models, using "mealv2_resnest50_cutmix" as an example
|
8 |
+
model = torch.hub.load('AK391/MEAL-V2','meal_v2', 'mealv2_resnest50_cutmix', pretrained=True)
|
9 |
model.eval()
|
10 |
# Download an example image from the pytorch website
|
11 |
torch.hub.download_url_to_file("https://github.com/pytorch/hub/raw/master/images/dog.jpg", "dog.jpg")
|