Skip to content

Commit

Permalink
fix mypy (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen authored Apr 4, 2024
1 parent 3838aa3 commit e53e357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyroengine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def predict(self, frame: Image.Image, cam_id: Optional[str] = None) -> float:
cam_key = cam_id or "-1"
# Reduce image size to save bandwidth
if isinstance(self.frame_size, tuple):
frame_resize = frame.resize(self.frame_size[::-1], Image.BILINEAR)
frame_resize = frame.resize(self.frame_size[::-1], getattr(Image, "BILINEAR"))
else:
frame_resize = frame

Expand Down

0 comments on commit e53e357

Please sign in to comment.