Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|