Apply ruff==0.9.0 formatting (#18624)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
c196a82bfa
commit
34b339d033
12 changed files with 17 additions and 30 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue