Fucius commited on
Commit
5995597
1 Parent(s): f389568

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -256,7 +256,7 @@ def predict_mask(segmentmodel, sam, image, TEXT_PROMPT, segmentType, confidence
256
  return masks
257
 
258
  def build_model_sd(pretrained_model, controlnet_path, face_adapter, device, prompts, antelopev2_path, width, height, style_lora):
259
- controlnet = ControlNetModel.from_pretrained(controlnet_path, torch_dtype=torch.float16)
260
  pipe = InstantidMultiConceptPipeline.from_pretrained(
261
  pretrained_model, controlnet=controlnet, torch_dtype=torch.float16).to(device)
262
 
 
256
  return masks
257
 
258
  def build_model_sd(pretrained_model, controlnet_path, face_adapter, device, prompts, antelopev2_path, width, height, style_lora):
259
+ controlnet = ControlNetModel.from_pretrained(controlnet_path, torch_dtype=torch.float16).to(device)
260
  pipe = InstantidMultiConceptPipeline.from_pretrained(
261
  pretrained_model, controlnet=controlnet, torch_dtype=torch.float16).to(device)
262