openai / guided-diffusion

MIT License
6.06k stars 807 forks source link

Does ‘unconditional’ mean ‘classifier-free’? #154

Open anonymoussss opened 3 weeks ago

anonymoussss commented 3 weeks ago

In the run scripts, 256x256 model (unconditional) as follows: MODEL_FLAGS="--attention_resolutions 32,16,8 --class_cond False --diffusion_steps 1000 --image_size 256 --learn_sigma True --noise_schedule linear --num_channels 256 --num_head_channels 64 --num_res_blocks 2 --resblock_updown True --use_fp16 True --use_scale_shift_norm True" python classifier_sample.py $MODEL_FLAGS --classifier_scale 10.0 --classifier_path models/256x256_classifier.pt --model_path models/256x256_diffusion_uncond.pt $SAMPLE_FLAGS

Two problems: 1 Does the above script do the same thing as sampling from the base diffusion model? 2 Does the ‘conditional’ written in README mean ‘classifier-guidence’?