Vvaann commited on
Commit
d4564d6
·
verified ·
1 Parent(s): 6297ebe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -9
app.py CHANGED
@@ -10,13 +10,7 @@ import gradio as gr
10
 
11
  model = torch.load('best.pt')
12
 
13
- inv_normalize = transforms.Normalize(
14
- mean = [-0.50/0.23, -0.50/0.23, -0.50/0.23],
15
- std= [1/0.23, 1/0.23,1/0.23]
16
- )
17
-
18
- classes = ('plane', 'car', 'bird', 'cat', 'deer',
19
- 'dog', 'frog', 'horse', 'ship', 'truck')
20
 
21
  model_layer_names = ["1", "2", "3"]
22
 
@@ -97,8 +91,8 @@ demo = gr.Interface(
97
  gr.Image(width= 256, height=256,label="Output Image"),
98
  gr.Label(label="Confidences", container=True, show_label= True),
99
  ],
100
- title = "CIFAR 10 trained on ResNet model in pytorch lightning with Gradcam",
101
- description = " A simple gradio inference to infer on resnet18 model",
102
  examples = [["cat.jpg",1, True, 10, 0.4]]
103
  )
104
 
 
10
 
11
  model = torch.load('best.pt')
12
 
13
+ classes = ('ball', 'goalkeeper', 'player', 'referee')
 
 
 
 
 
 
14
 
15
  model_layer_names = ["1", "2", "3"]
16
 
 
91
  gr.Image(width= 256, height=256,label="Output Image"),
92
  gr.Label(label="Confidences", container=True, show_label= True),
93
  ],
94
+ title = "Yolo v9 on custom fooball dataset",
95
+ description = " A simple gradio inference, and detection results for custom trained yolov9 model",
96
  examples = [["cat.jpg",1, True, 10, 0.4]]
97
  )
98