Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen committed Aug 13, 2024
1 parent 92972fc commit 4215ad0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyroengine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def predict(self, frame: Image.Image, cam_id: Optional[str] = None) -> float:
# self._states[cam_key]["last_predictions"][idx] = frame, preds, localization, ts, True

# Check if it's time to backup pending alerts

if ts > self.last_cache_dump + timedelta(minutes=self.cache_backup_period):
self._dump_cache()
self.last_cache_dump = ts
Expand Down
4 changes: 3 additions & 1 deletion src/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def main(args):
else:
splitted_cam_creds[_ip] = creds

cameras.append(ReolinkCamera(_ip, cam_data["cam_user"], cam_data["cam_pwd"], cam_data["type"], cam_poses, args.protocol))
cameras.append(
ReolinkCamera(_ip, cam_data["cam_user"], cam_data["cam_pwd"], cam_data["type"], cam_poses, args.protocol)
)

engine = Engine(
args.model_path,
Expand Down

0 comments on commit 4215ad0

Please sign in to comment.