consistency_models icon indicating copy to clipboard operation
consistency_models copied to clipboard

I use the pre-trained model to generate pictures, the effect is too bad, I don't know what's going on.

Open stonecropa opened this issue 2 years ago • 9 comments

This command is python image_sample.py --batch_size 8 --training_mode consistency_distillation --sampler multistep --ts 0,67,150 --steps 151 --model_path E:\Googledownload\ct_bedroom256.pt --attention_resolutions 32,16,8 --class_cond False --use_scale_shift_norm False --dropout 0.0 --image_size 256 --num_channels 256 --num_head_channels 64 --num_res_blocks 2 --num_samples 500 --resblock_updown True --use_fp16 True --weight_schedule uniform。 The resulting effect is shown in Fig. image

I don't know why this happens, is there any good way, thanks.

stonecropa avatar Apr 25 '23 04:04 stonecropa

I met the same bed result as you. May I ask if you change this term: attention_type="default" in unet.py ?

SherlockJane avatar Apr 29 '23 11:04 SherlockJane

@SherlockJane YES

stonecropa avatar May 02 '23 04:05 stonecropa

I met the same bed result as you. May I ask if you change this term: attention_type="default" in unet.py ?

I got significantly better image quality after I used attention_type="flash"

aarontan-git avatar May 02 '23 19:05 aarontan-git

I met the same bed result as you. May I ask if you change this term: attention_type="default" in unet.py ?

I got significantly better image quality after I used attention_type="flash"

Thanks. However, I was unable to use this option attention_type="flash" on the v100. I'm looking for other ways.

SherlockJane avatar May 03 '23 14:05 SherlockJane

@SherlockJane
I have successfully generated good images with. Download this flash-attn ==1.0.2

stonecropa avatar May 03 '23 14:05 stonecropa

@SherlockJane I have successfully generated good images with. Download this flash-attn ==1.0.2 i use flash-attn ==1.0.2 ,and attention_type="default" ,and my GPU is V100 ,but i do not get good images. what is your gpu?

treefreq avatar May 04 '23 12:05 treefreq

attention_type="flash",

stonecropa avatar May 04 '23 13:05 stonecropa

@treefreq v100 and I cannot use attention_type="flash" this option.

SherlockJane avatar May 05 '23 01:05 SherlockJane

Added a pr #37 to get good quality without using flash Attention

ayushtues avatar Jun 14 '23 12:06 ayushtues