Giter VIP home page Giter VIP logo

classifier-free-diffusion-guidance-pytorch's People

Contributors

coderpiaobozhe 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

classifier-free-diffusion-guidance-pytorch's Issues

Unable to receive conditional results

Hi! I'm excited to find such excellent work, but unfortunately, I failed to obtain conditional images following your instruction. I have run the train.py for 1000 epochs, but I found output like img1 which seems random after I set --label range
sample_999_labelrange_w11 0_T1000_pict
Therefore, I modified part of the code in sample.py shown in img2 so that I can output single-kind pictures ranging from 0 to 9
LU~9NJDM8 $MI4GL8RM% C

and ran orders like " python sample.py --label 0 --device cuda:1 --epc 999 --w 5.0 --T 1000", but still got random images shown in img3.
sample_999_label0_w5 0_T1000_pict

I wonder if you could help out with this problem. Thanks a lot!

Can't train

make: *** No rule to make target 'train'. Stop.
When I run the make train command, this is what I get.
I also tried running it with python train.py to no avail.

Log probability

Once we trained the model, is there a way to obtain log_prob(x) or log_prob(x|y)?

can you share your training log as well?

Hi, Thanks alot for the great work.
Can you also share you training log?
How many epochs did you train the model for?
what loss did you ultimately settle for?
Thanks a lot

TypeError: 'type' object is not subscriptable

I run the code just without editing and meet this error.
What is the problem..?

Traceback (most recent call last):
File "train.py", line 9, in
from diffusion import GaussianDiffusion
File "/workspace/sanghyu.yoon/nfsdata/home/sanghyu.yoon/code/research_23/classifier-free-diffusion-guidance-Pytorch/diffusion.py", line 8, in
class GaussianDiffusion(nn.Module):
File "/workspace/sanghyu.yoon/nfsdata/home/sanghyu.yoon/code/research_23/classifier-free-diffusion-guidance-Pytorch/diffusion.py", line 79, in GaussianDiffusion
def q_mean_variance(self, x_0:torch.Tensor, t:torch.Tensor) -> tuple[torch.Tensor, torch.Tensor]:
TypeError: 'type' object is not subscriptable

About the sample quality

I try an implementation of the classifier-free diffusion which is mainly adapted from the classifier-guided diffusion and using your training hyperparameters on CiFar10. But I got a FID score between 4.1 and 4.2 when the w was set to 0.1 and 0.2. It's worse than the original DDPM. Could you please tell me your sample quality? Thank you very much!

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.