Spaces:
Running
Running
Commit
·
7cc748c
1
Parent(s):
403fdd5
Update src/comparison.py
Browse files- src/comparison.py +1 -1
src/comparison.py
CHANGED
@@ -145,7 +145,7 @@ class DamageComparator:
|
|
145 |
roi_rgb = cv2.cvtColor(roi, cv2.COLOR_BGR2RGB)
|
146 |
|
147 |
# Process with CLIP
|
148 |
-
inputs = self.clip_processor(images=roi_rgb, return_tensors="pt")
|
149 |
inputs = {k: v.to(self.device) for k, v in inputs.items()}
|
150 |
|
151 |
with torch.no_grad():
|
|
|
145 |
roi_rgb = cv2.cvtColor(roi, cv2.COLOR_BGR2RGB)
|
146 |
|
147 |
# Process with CLIP
|
148 |
+
inputs = self.clip_processor(images=roi_rgb, return_tensors="pt", use_fast=True)
|
149 |
inputs = {k: v.to(self.device) for k, v in inputs.items()}
|
150 |
|
151 |
with torch.no_grad():
|