@@ -92,7 +92,7 @@ def __init__(self, config_path, base_dir, action_id, json_path, video_path, labe
9292 self .json_path = json_path
9393 self .video_path = video_path
9494
95- # [DYNAMIC] Assigned from config .yaml, no more hardcoding!
95+ # [DYNAMIC] Assigned from class_config .yaml, no more hardcoding!
9696 self .label_map = label_map
9797
9898 def run (self ):
@@ -327,7 +327,7 @@ def __init__(self, main_window):
327327 else :
328328 self .base_dir = os .path .abspath (os .path .join (os .path .dirname (__file__ ), ".." , ".." ))
329329
330- self .config_path = os .path .join (self .base_dir , "config .yaml" )
330+ self .config_path = os .path .join (self .base_dir , "class_config .yaml" )
331331 self .worker = None
332332 self .batch_worker = None
333333
@@ -336,7 +336,7 @@ def __init__(self, main_window):
336336
337337 def _get_label_map_from_config (self ) -> dict :
338338 """
339- [DYNAMIC PARSING] Reads the config .yaml on-the-fly to extract the classes list.
339+ [DYNAMIC PARSING] Reads the class_config .yaml on-the-fly to extract the classes list.
340340 Prevents hardcoding so the framework scales effortlessly to new sports/models.
341341 """
342342 label_map = {}
@@ -350,7 +350,7 @@ def _get_label_map_from_config(self) -> dict:
350350 for i , cls_name in enumerate (classes_list ):
351351 label_map [str (i )] = cls_name
352352 except Exception as e :
353- print (f"Warning: Could not read classes from config .yaml dynamically: { e } " )
353+ print (f"Warning: Could not read classes from class_config .yaml dynamically: { e } " )
354354
355355 # Absolute failsafe if the user forgot to write `classes:` in their yaml
356356 if not label_map :
@@ -363,7 +363,7 @@ def _get_label_map_from_config(self) -> dict:
363363
364364 def start_inference (self ):
365365 if not os .path .exists (self .config_path ):
366- QMessageBox .critical (self .main , "Error" , f"config .yaml not found at:\n { self .config_path } " )
366+ QMessageBox .critical (self .main , "Error" , f"class_config .yaml not found at:\n { self .config_path } " )
367367 return
368368
369369 current_json_path = self .main .model .current_json_path
@@ -431,7 +431,7 @@ def _on_inference_error(self, error_msg):
431431
432432 def start_batch_inference (self , start_idx : int , end_idx : int ):
433433 if not os .path .exists (self .config_path ):
434- QMessageBox .critical (self .main , "Error" , f"config .yaml not found at:\n { self .config_path } " )
434+ QMessageBox .critical (self .main , "Error" , f"class_config .yaml not found at:\n { self .config_path } " )
435435 return
436436
437437 sorted_items = sorted (self .main .model .action_item_data , key = lambda x : natural_sort_key (x .get ('name' , '' )))
0 commit comments