Closed cyrilzakka closed 6 months ago
It seems the label form in your dataset is not the same with the default dataset. Or the class number is not correctly set in the model. If you still have this problem, you can provide me with your code so I can help with the debug~
@gasvn My apologies - how should the dataset be structured? I simply have a parent folder with 19 subfolders each containing images and I've changed the following lines to NUM_CLASSES=19. https://github.com/sail-sg/MDT/blob/bf90054be778fb5a2130baa0f8fb3058672a288a/masked_diffusion/models.py#L270 and https://github.com/sail-sg/MDT/blob/bf90054be778fb5a2130baa0f8fb3058672a288a/masked_diffusion/script_util.py#L7
The dataloader of this project is borrowed from the ADM repo. This dataloader get classes by the name of the file instead of the folder. For the standard ImageNet dataset, it will make no difference as the name of imagenet is composed of classname+imageid. So you need to rename your image name to classname+imageid.jpg following this link: https://github.com/openai/guided-diffusion/issues/95
Hello,
Great paper! I'm trying to train the same model on a custom dataset, but I'm being met with the following error.
It seems like there's an indexing error in the lookup table. Any advice would be greatly appreciated!