Giter VIP home page Giter VIP logo

sangyun884 / blur-diffusion Goto Github PK

View Code? Open in Web Editor NEW
142.0 142.0 8.0 1.95 MB

Official PyTorch implementation of the paper Progressive Deblurring of Diffusion Models for Coarse-to-Fine Image Synthesis.

License: MIT License

Python 99.70% Shell 0.30%
diffusion-models generative-model image-generation image-synthesis score-based-generative-modeling score-based-generative-models score-based-models

blur-diffusion's People

Contributors

sangyun884 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

blur-diffusion's Issues

AttributeError: 'EMA' object has no attribute 'defaults'`

Hello , thank you for the code.
I get a AttributeError when i want to train the model:
Traceback (most recent call last): File "main.py", line 292, in <module> optimizer.zero_grad() File "/home/extradisk/miniconda3/envs/sr3/lib/python3.8/site-packages/torch/optim/optimizer.py", line 231, in zero_grad foreach = self.defaults.get('foreach', False) AttributeError: 'EMA' object has no attribute 'defaults'
Could you help me with this bug ?

LSUN bedroom test = LSUN bedroom train

Dear authors,

Is it intentional that the train and test datasets for the LSUN bedroom coincide? For other datasets in your code, this is not the case
If I understand correctly, this does not affect the FID calculations, but it just seems a bit odd.

blur-diffusion/main.py

Lines 100 to 110 in d86b07b

elif dataset == 'lsun-bedroom':
res = 64
train_dir = "/home/ubuntu/code/sangyoon/forward-blur/datasets/bedroom_train/bedroom_train_lmdb/imgs"
dataset_train = dsets.LSUN(root='../forward-blur/datasets/bedroom_train',
classes=['bedroom_train'],
transform=transforms.Compose([transforms.Resize((res,res)), transforms.ToTensor()])
)
dataset_test = dsets.LSUN(root='../forward-blur/datasets/bedroom_train',
classes=['bedroom_train'],
transform=transforms.Compose([transforms.Resize((res,res)), transforms.ToTensor()])
)

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.