wip old MISC fix

This commit is contained in:
Dobromir Popov
2025-12-08 16:56:37 +02:00
parent 81e7e6bfe6
commit 03888b6200
5 changed files with 719 additions and 343 deletions

View File

@@ -832,7 +832,7 @@ class AnnotationDashboard:
# Check if the specific model is already initialized
if model_name == 'Transformer':
logger.info("Checking Transformer model...")
if self.orchestrator.primary_transformer:
if hasattr(self.orchestrator, 'primary_transformer') and self.orchestrator.primary_transformer:
self.loaded_models['Transformer'] = self.orchestrator.primary_transformer
logger.info("Transformer model loaded successfully")
else:
@@ -841,13 +841,13 @@ class AnnotationDashboard:
elif model_name == 'CNN':
logger.info("Checking CNN model...")
if self.orchestrator.cnn_model:
if hasattr(self.orchestrator, 'cnn_model') and self.orchestrator.cnn_model:
self.loaded_models['CNN'] = self.orchestrator.cnn_model
logger.info("CNN model loaded successfully")
else:
logger.warning("CNN model not initialized in orchestrator")
return
elif model_name == 'DQN':
logger.info("Checking DQN model...")
if self.orchestrator.rl_agent: