dome272 / Diffusion-Models-pytorch

Pytorch implementation of Diffusion Models (https://arxiv.org/pdf/2006.11239.pdf)
Apache License 2.0
1.11k stars 256 forks source link

Removed hardcoded classes length #34

Open SuperSecureHuman opened 1 year ago

SuperSecureHuman commented 1 year ago

Removed the hardcoded classes length value of 10. Replaced it with args.num_classes. Now this allows us to experiment with this model across different datasets, without errors.

The hardcoded value, throws an error when used with other class length with the embedding layer.