Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add handling for non-existent or empty model file paths #6525

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove print() in detector_config.py
Co-authored-by: Blake Blackshear <[email protected]>
  • Loading branch information
skrashevich and blakeblackshear committed May 21, 2023
commit 2460b4822a1c8c9b931af4abbfc450b9e923cfd6
1 change: 0 additions & 1 deletion frigate/detectors/detector_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ def check_and_load_plus_model(

def compute_model_hash(self) -> None:
if not self.path or not os.path.exists(self.path):
print("File does not exist or path is empty.")
self._model_hash = hashlib.md5(b"unknown").hexdigest()
else:
with open(self.path, "rb") as f:
Expand Down
Loading