Spaces:
Runtime error
Runtime error
yupeng.zhou
commited on
Commit
•
a5df616
1
Parent(s):
e578dd5
fix
Browse files
app.py
CHANGED
@@ -451,7 +451,7 @@ pipe2.enable_freeu(s1=0.6, s2=0.4, b1=1.1, b2=1.2)
|
|
451 |
pipe2.fuse_lora()
|
452 |
|
453 |
pipe4 = PhotoMakerStableDiffusionXLPipeline.from_pretrained(
|
454 |
-
models_dict["RealVision"], torch_dtype=torch.float16, use_safetensors=
|
455 |
pipe4 = pipe4.to("cpu")
|
456 |
pipe4.load_photomaker_adapter(
|
457 |
os.path.dirname(photomaker_path),
|
@@ -522,7 +522,7 @@ def process_generation(_sd_type,_model_type,_upload_images, _num_steps,style_nam
|
|
522 |
if style_name == "(No style)":
|
523 |
sd_model_path = models_dict["RealVision"]
|
524 |
if _model_type == "original":
|
525 |
-
pipe = StableDiffusionXLPipeline.from_pretrained(
|
526 |
pipe = pipe.to(device)
|
527 |
pipe.enable_freeu(s1=0.6, s2=0.4, b1=1.1, b2=1.2)
|
528 |
# pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|
|
|
451 |
pipe2.fuse_lora()
|
452 |
|
453 |
pipe4 = PhotoMakerStableDiffusionXLPipeline.from_pretrained(
|
454 |
+
models_dict["RealVision"], torch_dtype=torch.float16, use_safetensors=True)
|
455 |
pipe4 = pipe4.to("cpu")
|
456 |
pipe4.load_photomaker_adapter(
|
457 |
os.path.dirname(photomaker_path),
|
|
|
522 |
if style_name == "(No style)":
|
523 |
sd_model_path = models_dict["RealVision"]
|
524 |
if _model_type == "original":
|
525 |
+
pipe = StableDiffusionXLPipeline.from_pretrained(sd_model_path, torch_dtype=torch.float16)
|
526 |
pipe = pipe.to(device)
|
527 |
pipe.enable_freeu(s1=0.6, s2=0.4, b1=1.1, b2=1.2)
|
528 |
# pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|