Spaces:
Running
on
Zero
Running
on
Zero
Update sam2_mask.py
Browse files- sam2_mask.py +2 -2
sam2_mask.py
CHANGED
|
@@ -10,8 +10,8 @@ from sam2.build_sam import build_sam2
|
|
| 10 |
from sam2.sam2_image_predictor import SAM2ImagePredictor
|
| 11 |
|
| 12 |
|
| 13 |
-
# Remove all CUDA-specific configurations
|
| 14 |
-
torch.autocast(device_type="cpu", dtype=torch.float32).__enter__()
|
| 15 |
|
| 16 |
def preprocess_image(image):
|
| 17 |
return image, gr.State([]), gr.State([]), image
|
|
|
|
| 10 |
from sam2.sam2_image_predictor import SAM2ImagePredictor
|
| 11 |
|
| 12 |
|
| 13 |
+
# # Remove all CUDA-specific configurations
|
| 14 |
+
# torch.autocast(device_type="cpu", dtype=torch.float32).__enter__()
|
| 15 |
|
| 16 |
def preprocess_image(image):
|
| 17 |
return image, gr.State([]), gr.State([]), image
|