georgescutelnicu commited on
Commit
6a0ffea
·
verified ·
1 Parent(s): ecab5b5

Update detect_bubbles.py

Browse files
Files changed (1) hide show
  1. detect_bubbles.py +1 -1
detect_bubbles.py CHANGED
@@ -1,7 +1,7 @@
1
  from ultralytics import YOLO
2
  import torch.serialization
3
 
4
- torch.serialization.add_safe_globals([DetectionModel])
5
 
6
  def detect_bubbles(model_path, image_path):
7
  """
 
1
  from ultralytics import YOLO
2
  import torch.serialization
3
 
4
+ torch.serialization.add_safe_globals([YOLO])
5
 
6
  def detect_bubbles(model_path, image_path):
7
  """