Spaces:
Running
Running
no device
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ base_model = "black-forest-labs/FLUX.1-dev"
|
|
23 |
controlnet_model = "YishaoAI/flux-dev-controlnet-canny-kid-clothes"
|
24 |
|
25 |
controlnet = FluxControlNetModel.from_pretrained(
|
26 |
-
controlnet_model, torch_dtype=dtype
|
27 |
)
|
28 |
pipe = FluxControlNetInpaintPipeline.from_pretrained(
|
29 |
base_model, controlnet=controlnet, torch_dtype=dtype, device_map="auto"
|
|
|
23 |
controlnet_model = "YishaoAI/flux-dev-controlnet-canny-kid-clothes"
|
24 |
|
25 |
controlnet = FluxControlNetModel.from_pretrained(
|
26 |
+
controlnet_model, torch_dtype=dtype
|
27 |
)
|
28 |
pipe = FluxControlNetInpaintPipeline.from_pretrained(
|
29 |
base_model, controlnet=controlnet, torch_dtype=dtype, device_map="auto"
|