Apply ruff==0.9.0 formatting (#18624)

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
Glenn Jocher 2025-01-10 17:27:22 +01:00 committed by GitHub
parent c196a82bfa
commit 34b339d033
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 17 additions and 30 deletions

View file

@ -62,8 +62,7 @@ class Inference:
self.selected_ind = [] # List of selected classes for detection or tracking
self.model = None # Container for the loaded model instance
self.temp_dict = {"model": None} # Temporary dict to store the model path
self.temp_dict.update(kwargs)
self.temp_dict = {"model": None} | kwargs
self.model_path = None # Store model file name with path
if self.temp_dict["model"] is not None:
self.model_path = self.temp_dict["model"]