Update detect_bubbles.py
Browse files- 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 |
"""
|