Fix vision_config attribute access in Vision component to use dictionary instead of direct attribute assignment
This commit is contained in:
parent
c5aea0f387
commit
d189af13b6
|
|
@ -108,7 +108,10 @@ class Vision(Component):
|
|||
self.recipes_dir = Path(self.config[self.name].get("recipes_dir", "./config/vision/recipes"))
|
||||
self.set_recipe(vision_recipe)
|
||||
self.vision_recipe=vision_recipe
|
||||
self.config.vision_config=self.vision_config
|
||||
# Store vision_config in the config dictionary instead of as an attribute
|
||||
if "general" not in self.config:
|
||||
self.config["general"] = {}
|
||||
self.config["general"]["vision_config"] = self.vision_config
|
||||
self.recipe_watcher = QFileSystemWatcher([])
|
||||
self.recipe_watcher.fileChanged.connect(self._set_recipe)
|
||||
# LOAD MODEL
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user