LPX55 commited on
Commit
6c8ab7b
·
verified ·
1 Parent(s): f838197

Update sam2_mask.py

Browse files
Files changed (1) hide show
  1. 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