Lifeinhockey commited on
Commit
8478c87
·
verified ·
1 Parent(s): 177badc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -60,7 +60,8 @@ def align_embeddings(prompt_embeds, negative_prompt_embeds):
60
  torch.nn.functional.pad(negative_prompt_embeds, (0, 0, 0, max_length - negative_prompt_embeds.shape[1]))
61
 
62
  pipe_default = get_lora_sd_pipeline(lora_dir='./lora_man_animestyle', base_model_name_or_path=model_default, dtype=torch_dtype).to(device)
63
- pipe_controlnet = StableDiffusionControlNetPipeline.from_pretrained(
 
64
  model_default,
65
  controlnet=controlnet,
66
  torch_dtype=torch_dtype
 
60
  torch.nn.functional.pad(negative_prompt_embeds, (0, 0, 0, max_length - negative_prompt_embeds.shape[1]))
61
 
62
  pipe_default = get_lora_sd_pipeline(lora_dir='./lora_man_animestyle', base_model_name_or_path=model_default, dtype=torch_dtype).to(device)
63
+ #pipe_controlnet = StableDiffusionControlNetPipeline.from_pretrained(
64
+ pipe_controlnet = StableDiffusionControlNetImg2ImgPipeline.from_pretrained(
65
  model_default,
66
  controlnet=controlnet,
67
  torch_dtype=torch_dtype