Skip to content
Snippets Groups Projects
Commit 07317705 authored by François  LAURENT's avatar François LAURENT
Browse files

potential bugfix for colored labels

parent 5cb33156
No related branches found
No related tags found
No related merge requests found
...@@ -343,9 +343,12 @@ class MaggotClassifier(MaggotModule): ...@@ -343,9 +343,12 @@ class MaggotClassifier(MaggotModule):
@classmethod @classmethod
def load_model(cls, config, path): def load_model(cls, config, path):
labels = config["behavior_labels"]
if isinstance(labels, dict):
labels = labels['names']
model = DeepLinear( model = DeepLinear(
n_input=config["dim_latent"], n_input=config["dim_latent"],
n_output=len(config["behavior_labels"]), n_output=len(labels),
n_hidden=config["clf_depth"]*[None], n_hidden=config["clf_depth"]*[None],
batch_norm=config["batch_norm"], batch_norm=config["batch_norm"],
weight_init=config["weight_init"], weight_init=config["weight_init"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment