nagasurendra commited on
Commit
e0aefcb
·
verified ·
1 Parent(s): f2681ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -47,8 +47,9 @@ def safe_load_yolo_model(path):
47
 
48
  model_paths = {
49
  'YOLOv11': './data/yolo11n.pt',
50
- 'Crack & Pothole Detector': './data/best.pt',
51
- 'Toll gates': './data/best2.pt'
 
52
  }
53
 
54
  models = {name: safe_load_yolo_model(path).to("cuda" if torch.cuda.is_available() else "cpu") for name, path in model_paths.items()}
@@ -59,7 +60,8 @@ for name, model in models.items():
59
  model_colors = {
60
  'YOLOv11': (0, 255, 0), # Green
61
  'Crack & Pothole Detector': (255, 0, 0), # Red
62
- 'Toll gates': (0, 0, 255) # Blue
 
63
  }
64
 
65
  # Helper functions
 
47
 
48
  model_paths = {
49
  'YOLOv11': './data/yolo11n.pt',
50
+ 'Crack & Pothole Detector': './data/crack.pt',
51
+ 'Toll gates': './data/tollgates.pt',
52
+ 'Railway Bridges': './data/bridges.pt'
53
  }
54
 
55
  models = {name: safe_load_yolo_model(path).to("cuda" if torch.cuda.is_available() else "cpu") for name, path in model_paths.items()}
 
60
  model_colors = {
61
  'YOLOv11': (0, 255, 0), # Green
62
  'Crack & Pothole Detector': (255, 0, 0), # Red
63
+ 'Toll gates': (0, 0, 255), # Blue
64
+ 'Railway Bridges': (0, 255, 255) # Yellow
65
  }
66
 
67
  # Helper functions