m7mdal7aj commited on
Commit
f868b3f
1 Parent(s): 567d6d1

Update my_model/object_detection.py

Browse files
Files changed (1) hide show
  1. my_model/object_detection.py +1 -1
my_model/object_detection.py CHANGED
@@ -80,7 +80,7 @@ class ObjectDetector:
80
  """
81
 
82
  try:
83
- model_path = get_path('yolov5', 'models')
84
  if model_path and os.path.exists(model_path):
85
  self.model = torch.hub.load(model_path, model_version, pretrained=pretrained, source='local')
86
  else:
 
80
  """
81
 
82
  try:
83
+ model_path = get_model_path ('yolov5')
84
  if model_path and os.path.exists(model_path):
85
  self.model = torch.hub.load(model_path, model_version, pretrained=pretrained, source='local')
86
  else: