georgescutelnicu commited on
Commit
ecab5b5
·
verified ·
1 Parent(s): 6148a53

Update detect_bubbles.py

Browse files
Files changed (1) hide show
  1. detect_bubbles.py +2 -0
detect_bubbles.py CHANGED
@@ -1,5 +1,7 @@
1
  from ultralytics import YOLO
 
2
 
 
3
 
4
  def detect_bubbles(model_path, image_path):
5
  """
 
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
  """