Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,13 +10,7 @@ import gradio as gr
|
|
| 10 |
|
| 11 |
model = torch.load('best.pt')
|
| 12 |
|
| 13 |
-
|
| 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 = "
|
| 101 |
-
description = " A simple gradio inference
|
| 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 |
|