coderpiaobozhe / classifier-free-diffusion-guidance-pytorch Goto Github PK
View Code? Open in Web Editor NEWa simple unofficial implementation of classifier-free diffusion guidance
License: MIT License
a simple unofficial implementation of classifier-free diffusion guidance
License: MIT License
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
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
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.
I wonder if you could help out with this problem. Thanks a lot!
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.
Once we trained the model, is there a way to obtain log_prob(x) or log_prob(x|y)?
Can you tell me why cat tilde_betas and betas? Why not just use betas?
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
This should be filled with a value close to 1 instead of 0?
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
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!
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.