Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -39,6 +39,10 @@ MAX_SEED = np.iinfo(np.int32).max
|
|
39 |
TMP_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
|
40 |
os.makedirs(TMP_DIR, exist_ok=True)
|
41 |
|
|
|
|
|
|
|
|
|
42 |
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
|
43 |
|
44 |
pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
|
|
|
39 |
TMP_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
|
40 |
os.makedirs(TMP_DIR, exist_ok=True)
|
41 |
|
42 |
+
controlnet = ControlNetModel.from_pretrained(
|
43 |
+
"xinsir/controlnet-scribble-sdxl-1.0",
|
44 |
+
torch_dtype=torch.float16
|
45 |
+
)
|
46 |
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
|
47 |
|
48 |
pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
|