Skip to content

Commit

Permalink
fix: ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
minkyu-choi07 committed Feb 6, 2024
1 parent 34fe64f commit fa0c68e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ns_vfs/data/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,5 @@ def save_frames(self, path):
Image.fromarray(self.annotated_images[idx]).save(
f"{annotation_path}/{idx}_annotated.png"
)
except:
except: # noqa: E722
pass
4 changes: 2 additions & 2 deletions ns_vfs/model/vision/object_detection/clip_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def detect(self, frame_img: np.ndarray, classes: list) -> any:
.numpy()
)

logits_per_image, logits_per_text = self.model(image, text)
probs = logits_per_text.softmax(dim=-1).cpu().numpy()
# logits_per_image, logits_per_text = self.model(image, text)
# probs = logits_per_text.softmax(dim=-1).cpu().numpy()

self._labels = []
if len(scores) > 0:
Expand Down

0 comments on commit fa0c68e

Please sign in to comment.