taming-transformers icon indicating copy to clipboard operation
taming-transformers copied to clipboard

torch.nn.modules.module.ModuleAttributeError: 'Labelator' object has no attribute 'decode'

Open songweige opened this issue 4 years ago • 0 comments
trafficstars

I was trying to reproduce the label-conditioned model on ImageNet and ran into the error in the title. I think this line in the code, https://github.com/CompVis/taming-transformers/blob/9d17ea64b820f7633ea6b8823e1f78729447cb57/taming/models/cond_transformer.py#L242 should be replaced as:

if self.cond_stage_key not in ["image", "class_label"]:

Please let me know if that is the correct way to do or I missed something. Thank you!

songweige avatar Jul 07 '21 22:07 songweige