labmlai / annotated_deep_learning_paper_implementations

🧑‍🏫 60+ Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optimizers (adam, adabelief, sophia, ...), gans(cyclegan, stylegan2, ...), 🎮 reinforcement learning (ppo, dqn), capsnet, distillation, ... 🧠
https://nn.labml.ai
MIT License
56.54k stars 5.8k forks source link

Wrong Image Scale in DDPM #241

Open ww-rm opened 9 months ago

ww-rm commented 9 months ago

The torchvision.transforms.ToTensor scale images from range (0, 255) to range (0.0, 1.0), but in original paper, it should be scaled to range (-1.0, 1.0).