Spaces:
Running
on
Zero
Running
on
Zero
hugohabicht01
commited on
Commit
·
46161a2
1
Parent(s):
cce3710
fix??
Browse files- blurnonymize.py +1 -1
blurnonymize.py
CHANGED
@@ -162,7 +162,7 @@ class ImageBlurnonymizer:
|
|
162 |
|
163 |
self.download_weights()
|
164 |
self.device = "cuda" if torch.cuda.is_available() else "cpu"
|
165 |
-
sam = build_sam2(self.model_cfg_name, self.checkpoint_name, device=self.device)
|
166 |
self.predictor = SAM2ImagePredictor(sam)
|
167 |
|
168 |
def download_weights(self):
|
|
|
162 |
|
163 |
self.download_weights()
|
164 |
self.device = "cuda" if torch.cuda.is_available() else "cpu"
|
165 |
+
sam = build_sam2(f"file://{self.model_cfg_name}", f"file://{self.checkpoint_name}", device=self.device)
|
166 |
self.predictor = SAM2ImagePredictor(sam)
|
167 |
|
168 |
def download_weights(self):
|