GithubHelp home page GithubHelp logo

michedev / ddpms-pytorch Goto Github PK

View Code? Open in Web Editor NEW
80.0 80.0 8.0 243 KB

Implementation of various DDPM papers to understand how they work

License: MIT License

Python 100.00%
ddpm deep-learning generative-model pytorch

ddpms-pytorch's People

Contributors

michedev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ddpms-pytorch's Issues

Height and weight channel

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.