hugohabicht01 commited on
Commit
d715937
·
1 Parent(s): 32883c9

remove to(cuda) on sam2

Browse files
Files changed (1) hide show
  1. blurnonymize.py +1 -1
blurnonymize.py CHANGED
@@ -164,7 +164,7 @@ class ImageBlurnonymizer:
164
  self.predictor = SAM2ImagePredictor.from_pretrained(
165
  "facebook/sam2.1-hiera-small",
166
  device="cuda",
167
- ).to("cuda").eval()
168
 
169
  @staticmethod
170
  def _smoothen_mask(mask: np.ndarray):
 
164
  self.predictor = SAM2ImagePredictor.from_pretrained(
165
  "facebook/sam2.1-hiera-small",
166
  device="cuda",
167
+ )
168
 
169
  @staticmethod
170
  def _smoothen_mask(mask: np.ndarray):