Spaces:
Runtime error
Runtime error
Commit
·
425f058
1
Parent(s):
3284380
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import cv2
|
|
| 4 |
from PIL import Image
|
| 5 |
from ultralytics import YOLO
|
| 6 |
import torch
|
| 7 |
-
|
| 8 |
# Define available YOLO models
|
| 9 |
available_models = {
|
| 10 |
"X-ray": YOLO("xray.pt"),
|
|
|
|
| 4 |
from PIL import Image
|
| 5 |
from ultralytics import YOLO
|
| 6 |
import torch
|
| 7 |
+
from segment_anything import sam_model_registry, SamAutomaticMaskGenerator, SamPredictor
|
| 8 |
# Define available YOLO models
|
| 9 |
available_models = {
|
| 10 |
"X-ray": YOLO("xray.pt"),
|