Spaces:
Build error
Build error
Commit ·
7a2026c
1
Parent(s): b3b16a3
update
Browse files92 unmodified lines93949596979899243 unmodified lines34334434534634734834992 unmodified lines#### load lcm componentsmodel_id = "lambdalabs/sd-pokemon-diffusers"lcm_lora_id = "latent-consistency/lcm-lora-sdv1-5"pipe = DiffusionPipeline.from_pretrained(model_id, unet=unet, tokenizer=tokenizer, text_encoder=text_encoder)pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)pipe.load_lora_weights(lcm_lora_id)pipe.to(device="cuda")243 unmodified linesinput = noise.half()encoder_hidden_states_cond = text_encoder(prompts_cond)[0].half()encoder_hidden_states_nocond = text_encoder(prompts_nocond)[0] .half()for t in tqdm(scheduler.timesteps):92 unmodified lines93949596979899243 unmodified lines34334434534634734834992 unmodified lines#### load lcm componentsmodel_id = "lambdalabs/sd-pokemon-diffusers"lcm_lora_id = "latent-consistency/lcm-lora-sdv1-5"pipe = DiffusionPipeline.from_pretrained(model_id, unet=unet, tokenizer=tokenizer, text_encoder=text_encoder, torch_dtype=torch.float16)pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)pipe.load_lora_weights(lcm_lora_id)pipe.to(device="cuda")243 unmodified linesinput = noise.half()encoder_hidden_states_cond = text_encoder(prompts_cond)[0].half()encoder_hidden_states_nocond = text_encoder(prompts_nocond)[0].half()for t in tqdm(scheduler.timesteps):
app.py+2-2