Closed htregidgo closed 7 months ago
I had almost the exact same error. It was caused by a mismatch between variable names (when calling RandomSpatialDeformation in labels_to_image_model.py, line 128-144) and the actual expected variable names (layers.py, ln 87 to 97). The wrong variable names were interpreted as unknown keyword arguments, i believe
Hi Henry! prob and prob_deform are indeed the same variable, I probably forgot to update it in the training_group script. Good spot :) the new commit should fix this issue. Thanks!
Hi Benjamin,
I've been having some issues with training_group where the RandomSpatialDeformation layer doesn't understand the parameter prob_deform giving errors like the following.
These also pop up in the SynthSR code so I'd guess the syntax changed in lab2im at some point but the synthseg/sr training variants weren't all updated.
To get around this I've just added
prob_deform=None,
to the RandomSpatialDeformation layer arguments around this line and modified the self.prob assignment at this line toThis seems to effectively overload the layer arguments and handle anywhere the old calls haven't been updated. If this is likely to cause other issues let me know, otherwise I thought you might like to know.