keremberke commited on
Commit
5ffca72
1 Parent(s): 5002fd1

upload space files

Browse files
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/32LSCZQDHZO7_jpg.rf.8fddaa4b5ed4db87d19a32d4554b9c23.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/6URLZIZIQ6S0_jpg.rf.4661cb4082077e616ec94250eea6328f.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/I91P1I5WNUZT_jpg.rf.c5c49a5f421751c30008a35e7b52087e.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/JWF31R9STW0L_jpg.rf.a785b0107b333fe746fe1c4c8d2f744f.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/LTDX8N8ZKBT2_jpg.rf.6e09889a432d15c19fa0fbdbb62d347f.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/M_01685_png.rf.57a2823eabfa135c0a508d18faa70ce3.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/M_03339_png.rf.f755ccc7bdf2a0ebc7e4553a0576ed50.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/M_04045_png.rf.31bd5eed4b55dbcafe568210774cb5dc.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/M_04302_png.rf.62eabd3a1cc0dbfcdffa9c5a9582f77c.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/M_07555_png.rf.9c2d725a383658227bc87891f68fe975.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/M_08430_png.rf.64508c4e583f64ac2cd431c99dc79834.jpg', 0.25, 'keremberke/yolov5m-forklift'], ['test_images/V75EBJ0AG2HV_jpg.rf.88822c95c57d6bfb33092eb5ec0a020c.jpg', 0.25, 'keremberke/yolov5m-forklift']]
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