Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,7 +65,7 @@ print("🎉 SAM2 modules imported successfully!")
|
|
| 65 |
MODEL_PATH = "geshang/Seg-R1-7B"
|
| 66 |
SAM_CHECKPOINT = "sam2_weights/sam2.1_hiera_large.pt"
|
| 67 |
|
| 68 |
-
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
| 69 |
RESIZE_SIZE = (768, 768)
|
| 70 |
|
| 71 |
try:
|
|
|
|
| 65 |
MODEL_PATH = "geshang/Seg-R1-7B"
|
| 66 |
SAM_CHECKPOINT = "sam2_weights/sam2.1_hiera_large.pt"
|
| 67 |
|
| 68 |
+
DEVICE = "cuda" #if torch.cuda.is_available() else "cpu"
|
| 69 |
RESIZE_SIZE = (768, 768)
|
| 70 |
|
| 71 |
try:
|