Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
ad42387
1
Parent(s):
38274da
small change
Browse files
nested_attention_pipeline.py
CHANGED
@@ -62,7 +62,7 @@ class NestedAdapterInference:
|
|
62 |
|
63 |
# load image encoder
|
64 |
self.image_encoder = CLIPVisionModelWithProjection.from_pretrained(
|
65 |
-
self.image_encoder_path
|
66 |
).to(self.device, dtype=torch.float16)
|
67 |
self.clip_image_processor = CLIPImageProcessor()
|
68 |
|
|
|
62 |
|
63 |
# load image encoder
|
64 |
self.image_encoder = CLIPVisionModelWithProjection.from_pretrained(
|
65 |
+
self.image_encoder_path, use_safetensors=True
|
66 |
).to(self.device, dtype=torch.float16)
|
67 |
self.clip_image_processor = CLIPImageProcessor()
|
68 |
|