Spaces:
Runtime error
Runtime error
Update app.py
Browse files18 unmodified lines1920212223242518 unmodified lines# Ensure sampler uses "trailing" timesteps and "sample" prediction type.pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing", prediction_type="sample")image = pipe(prompt, num_inference_steps=1, guidance_scale=0).images[0]return images[0]# Ensure using the same inference steps as the loaded model and CFG set to 0.# @spaces.GPU18 unmodified lines1920212223242518 unmodified lines# Ensure sampler uses "trailing" timesteps and "sample" prediction type.pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing", prediction_type="sample")image = pipe(prompt, num_inference_steps=1, guidance_scale=0).images[0]return image# Ensure using the same inference steps as the loaded model and CFG set to 0.# @spaces.GPU
app.py+1-1