Yihong Luo commited on
Commit
3594ace
·
verified ·
1 Parent(s): 35d1d5f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -0
README.md CHANGED
@@ -16,4 +16,14 @@ pipe = PixArtAlphaPipeline.from_pretrained("./models--PixArt-alpha--PixArt-XL-2-
16
  torch_dtype=torch.float16, use_safetensors=True)
17
 
18
  pipe = pipe.to('cuda')
 
 
 
 
 
 
 
 
 
 
19
  ```
 
16
  torch_dtype=torch.float16, use_safetensors=True)
17
 
18
  pipe = pipe.to('cuda')
19
+ pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
20
+ pipe.scheduler.config.prediction_type = "v_prediction"
21
+ generator = torch.manual_seed(318)
22
+ imgs = pipe(prompt="Cute small corgi sitting in a movie theater eating popcorn, unreal engine, 8k.",
23
+ num_inference_steps=1,
24
+ num_images_per_prompt = 1,
25
+ generator = generator,
26
+ guidance_scale=1.,
27
+ )[0]
28
+ imgs[0]
29
  ```