use 5m_m2 variant
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ os.system("wget https://raw.githubusercontent.com/pytorch/hub/master/imagenet_cl
|
|
8 |
|
9 |
|
10 |
import torch
|
11 |
-
model = torch.hub.load("coderx7/simplenet_pytorch","
|
12 |
# or any of these variants
|
13 |
# model = torch.hub.load("coderx7/simplenet_pytorch","simplenetv1_5m_m2", pretrained=True)
|
14 |
# model = torch.hub.load("coderx7/simplenet_pytorch","simplenetv1_9m_m1", pretrained=True)
|
@@ -56,7 +56,7 @@ inputs = gr.inputs.Image(type='pil')
|
|
56 |
outputs = gr.outputs.Label(type="confidences",num_top_classes=5)
|
57 |
|
58 |
title = "SimpleNet"
|
59 |
-
description = "Gradio demo for SimpleNet network pre-trained on ImageNet. This uses the
|
60 |
|
61 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1608.06037' target='_blank'>Lets Keep it simple, Using simple architectures to outperform deeper and more complex architectures</a> | <a href='https://github.com/Coderx7/SimpleNet_Pytorch/blob/master/imagenet/simplenet.py' target='_blank'>Github Repo</a></p>"
|
62 |
|
|
|
8 |
|
9 |
|
10 |
import torch
|
11 |
+
model = torch.hub.load("coderx7/simplenet_pytorch","simplenetv1_5m_m2", pretrained=True)
|
12 |
# or any of these variants
|
13 |
# model = torch.hub.load("coderx7/simplenet_pytorch","simplenetv1_5m_m2", pretrained=True)
|
14 |
# model = torch.hub.load("coderx7/simplenet_pytorch","simplenetv1_9m_m1", pretrained=True)
|
|
|
56 |
outputs = gr.outputs.Label(type="confidences",num_top_classes=5)
|
57 |
|
58 |
title = "SimpleNet"
|
59 |
+
description = "Gradio demo for SimpleNet network pre-trained on ImageNet. This uses the simplenet_5m_m2 variant. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
|
60 |
|
61 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1608.06037' target='_blank'>Lets Keep it simple, Using simple architectures to outperform deeper and more complex architectures</a> | <a href='https://github.com/Coderx7/SimpleNet_Pytorch/blob/master/imagenet/simplenet.py' target='_blank'>Github Repo</a></p>"
|
62 |
|