Spaces:
Sleeping
Sleeping
Merge branch 'main' of https://huggingface.co/spaces/Atualli/yolov7 into main
Browse files
app1.py
CHANGED
@@ -9,7 +9,7 @@ import yolov7detect.helpers as yolov7d
|
|
9 |
#torch.hub.download_url_to_file('https://github.com/ultralytics/yolov5/raw/master/data/images/zidane.jpg', 'zidane.jpg')
|
10 |
#torch.hub.download_url_to_file('https://raw.githubusercontent.com/obss/sahi/main/tests/data/small-vehicles1.jpeg', 'small-vehicles1.jpeg')
|
11 |
|
12 |
-
model_path =
|
13 |
image_size = 640
|
14 |
conf_threshold = 0.25
|
15 |
iou_threshold = 0.45
|
@@ -80,7 +80,7 @@ demo_app = gr.Interface(
|
|
80 |
#cache_examples=True,
|
81 |
#theme='huggingface',
|
82 |
)
|
83 |
-
demo_app.launch(debug=
|
84 |
#demo_app.launch(debug=True, server_port=8083, enable_queue=True)
|
85 |
#demo_app.launch(debug=True, enable_queue=True)
|
86 |
|
|
|
9 |
#torch.hub.download_url_to_file('https://github.com/ultralytics/yolov5/raw/master/data/images/zidane.jpg', 'zidane.jpg')
|
10 |
#torch.hub.download_url_to_file('https://raw.githubusercontent.com/obss/sahi/main/tests/data/small-vehicles1.jpeg', 'small-vehicles1.jpeg')
|
11 |
|
12 |
+
model_path = "kadirnar/yolov7-v0.1" #"kadirnar/yolov7-tiny-v0.1"
|
13 |
image_size = 640
|
14 |
conf_threshold = 0.25
|
15 |
iou_threshold = 0.45
|
|
|
80 |
#cache_examples=True,
|
81 |
#theme='huggingface',
|
82 |
)
|
83 |
+
demo_app.launch(debug=True, server_name="192.168.0.153", server_port=8081, enable_queue=True)
|
84 |
#demo_app.launch(debug=True, server_port=8083, enable_queue=True)
|
85 |
#demo_app.launch(debug=True, enable_queue=True)
|
86 |
|