ultralytics 8.3.61 Restore Python 3.8 compatibility (#18666)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
Glenn Jocher 2025-01-13 21:13:27 +01:00 committed by GitHub
parent ffd8df3751
commit 4922016901
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 11 additions and 11 deletions

View file

@ -62,7 +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} | 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"]