Replies: 3 comments 6 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Thank you for all the help @roomrys :) 🙏 |
Beta Was this translation helpful? Give feedback.
-
In the following discussion: we found that the underlying problem comes from an upgrade to This is not a problem in itself IF staying on the same/compatible version of |
Beta Was this translation helpful? Give feedback.
-
Dear SLEAP developers
I am encountering this strange error whenever I try to run inference using an already trained model
It seems that the nodes
predictor.confmap_config.data.labels.skeletons[0]
are all calledname
. I browsed the code and I could trace back the generation of this config tosleap.nn.config.training_job.TrainingJobConfig.from_json
which ultimately, is callingcattr.structure(json_data_dicts, cls)
. I made a quick MWE to show thisIndeed, I see all nodes get assigned the name
name
even though they have the expected names in the training_config.zip.I think this might be an issue with some inner workings of the cattr library, in particular, I think I may have installed a version with a behavior that breaks SLEAP (see #1469 ). Or is this output expected, and the node names get assigned later on in the code? Or maybe the config file is corrupted, but I don't think so because it used to work in the past.
Thank you!
PS On a closer look, could this be explained by
idx_to_node
being set toNone
when runningmake_cattr
? Maybe that makes this line https://github.com/talmolab/sleap/blob/develop/sleap/skeleton.py#L257 have the unexpected behavior.Beta Was this translation helpful? Give feedback.
All reactions