AlexKoff88 commited on
Commit
e74b993
·
1 Parent(s): cdcffe0

Changed scheduler for fp32 model

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -4,7 +4,9 @@ from diffusers.training_utils import set_seed
4
 
5
  import time
6
 
7
- pipe_fp32 = OVStableDiffusionPipeline.from_pretrained("OpenVINO/stable-diffusion-pokemons-fp32", compile=False)
 
 
8
  pipe_fp32.reshape(batch_size=1, height=512, width=512, num_images_per_prompt=1)
9
  pipe_fp32.compile()
10
 
 
4
 
5
  import time
6
 
7
+ scheduler = LMSDiscreteScheduler(beta_start=0.00085, beta_end=0.012,
8
+ beta_schedule="scaled_linear", num_train_timesteps=1000)
9
+ pipe_fp32 = OVStableDiffusionPipeline.from_pretrained("OpenVINO/stable-diffusion-pokemons-fp32", compile=False, scheduler=scheduler)
10
  pipe_fp32.reshape(batch_size=1, height=512, width=512, num_images_per_prompt=1)
11
  pipe_fp32.compile()
12