michedev / ddpms-pytorch Goto Github PK
View Code? Open in Web Editor NEWImplementation of various DDPM papers to understand how they work
License: MIT License
Implementation of various DDPM papers to understand how they work
License: MIT License
Line 128 in 72d621e
should not it be: vlb += torch.distributions.kl_divergence(q, p) * t_eq_last.float()
Hello, thank you for the code. This code seems to work fine when there is a square image with H=W but in cases where H and W are different, the network confuses H and W channel in the upsampling step of unet (ddpm_pytorch/model/unet_class.py) and throws an error:
File "/home/DDPMs-Pytorch/ddpm_pytorch/model/unet_class.py", line 119, in forward_unet
h = torch.cat([h, hs[-i]], dim=1)
RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 62 but got size 72 for tensor number 1 in the list.
62 is Width and 72 is the height of downsampled image with orig size of 288 x 248. Please let me know if my observation is correct or I made a mistake somewhere. Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.