keremberke
commited on
Commit
•
5ffca72
1
Parent(s):
5002fd1
upload space files
Browse files- app.py +1 -1
- test_images/0EZMOXIBCFJ2_jpg.rf.e02f09f440a32adc6b8cd173d64048dd.jpg +0 -0
- test_images/998PSJQQZBXV_jpg.rf.b1302d4d0209aed943753848438f8aa6.jpg +0 -0
- test_images/BSMT1XOO121P_jpg.rf.dc69ec9589f362cd0b4d1f43fb316579.jpg +0 -0
- test_images/DJI_0005_0221_jpg.rf.955fd4d28e350da409f891d4b3a2d73e.jpg +0 -0
- test_images/DJI_0043_MOV-127_jpg.rf.a217394fc869d2736168845216aefa7f.jpg +0 -0
- test_images/DJI_0043_MOV-57_jpg.rf.a706f51366a5754325ee902769e8ffad.jpg +0 -0
- test_images/G25405S8CI7D_jpg.rf.519ff676dff32aa88b43e9f8d46f3371.jpg +0 -0
- test_images/KUN8WG9S97QO_jpg.rf.7ec95d32b4559f0c5d4e4e1a5f0623d7.jpg +0 -0
- test_images/XVMZ924NFFU3_jpg.rf.5c1f76b37c69b3db293151909c912e42.jpg +0 -0
- test_images/img_049_jpg.rf.66cea1b105e1a5822d713a47e3d7b8c1.jpg +0 -0
- test_images/img_249_jpg.rf.e1b01660a85df7c00d5c31818a0c8c82.jpg +0 -0
- test_images/img_2640_jpg.rf.ed065aa127f8f841c25305c5c417b692.jpg +0 -0
app.py
CHANGED
@@ -12,7 +12,7 @@ article = f"<p style='text-align: center'> <a href='https://huggingface.co/{mode
|
|
12 |
current_model_id = models_ids[-1]
|
13 |
model = yolov5.load(current_model_id)
|
14 |
|
15 |
-
examples = [['test_images/
|
16 |
|
17 |
|
18 |
def predict(image, threshold=0.25, model_id=None):
|
|
|
12 |
current_model_id = models_ids[-1]
|
13 |
model = yolov5.load(current_model_id)
|
14 |
|
15 |
+
examples = [['test_images/0EZMOXIBCFJ2_jpg.rf.e02f09f440a32adc6b8cd173d64048dd.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/998PSJQQZBXV_jpg.rf.b1302d4d0209aed943753848438f8aa6.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/BSMT1XOO121P_jpg.rf.dc69ec9589f362cd0b4d1f43fb316579.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/DJI_0005_0221_jpg.rf.955fd4d28e350da409f891d4b3a2d73e.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/DJI_0043_MOV-127_jpg.rf.a217394fc869d2736168845216aefa7f.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/DJI_0043_MOV-57_jpg.rf.a706f51366a5754325ee902769e8ffad.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/G25405S8CI7D_jpg.rf.519ff676dff32aa88b43e9f8d46f3371.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/img_049_jpg.rf.66cea1b105e1a5822d713a47e3d7b8c1.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/img_249_jpg.rf.e1b01660a85df7c00d5c31818a0c8c82.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/img_2640_jpg.rf.ed065aa127f8f841c25305c5c417b692.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/KUN8WG9S97QO_jpg.rf.7ec95d32b4559f0c5d4e4e1a5f0623d7.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/XVMZ924NFFU3_jpg.rf.5c1f76b37c69b3db293151909c912e42.jpg', 0.25, 'keremberke/yolov5m-forklift']]
|
16 |
|
17 |
|
18 |
def predict(image, threshold=0.25, model_id=None):
|
test_images/0EZMOXIBCFJ2_jpg.rf.e02f09f440a32adc6b8cd173d64048dd.jpg
ADDED
test_images/998PSJQQZBXV_jpg.rf.b1302d4d0209aed943753848438f8aa6.jpg
ADDED
test_images/BSMT1XOO121P_jpg.rf.dc69ec9589f362cd0b4d1f43fb316579.jpg
ADDED
test_images/DJI_0005_0221_jpg.rf.955fd4d28e350da409f891d4b3a2d73e.jpg
ADDED
test_images/DJI_0043_MOV-127_jpg.rf.a217394fc869d2736168845216aefa7f.jpg
ADDED
test_images/DJI_0043_MOV-57_jpg.rf.a706f51366a5754325ee902769e8ffad.jpg
ADDED
test_images/G25405S8CI7D_jpg.rf.519ff676dff32aa88b43e9f8d46f3371.jpg
ADDED
test_images/KUN8WG9S97QO_jpg.rf.7ec95d32b4559f0c5d4e4e1a5f0623d7.jpg
ADDED
test_images/XVMZ924NFFU3_jpg.rf.5c1f76b37c69b3db293151909c912e42.jpg
ADDED
test_images/img_049_jpg.rf.66cea1b105e1a5822d713a47e3d7b8c1.jpg
ADDED
test_images/img_249_jpg.rf.e1b01660a85df7c00d5c31818a0c8c82.jpg
ADDED
test_images/img_2640_jpg.rf.ed065aa127f8f841c25305c5c417b692.jpg
ADDED