Spaces:
Running
on
Zero
Running
on
Zero
off lora
Browse files- scripts/process_utils.py +5 -5
scripts/process_utils.py
CHANGED
@@ -83,10 +83,10 @@ def initialize_sotai_model():
|
|
83 |
|
84 |
# Create the ControlNet pipeline
|
85 |
sotai_gen_pipe = StableDiffusionControlNetPipeline(
|
86 |
-
vae=sd_pipe.vae
|
87 |
text_encoder=sd_pipe.text_encoder,
|
88 |
tokenizer=sd_pipe.tokenizer,
|
89 |
-
unet=sd_pipe.unet
|
90 |
scheduler=sd_pipe.scheduler,
|
91 |
safety_checker=sd_pipe.safety_checker,
|
92 |
feature_extractor=sd_pipe.feature_extractor,
|
@@ -99,9 +99,9 @@ def initialize_sotai_model():
|
|
99 |
# (os.environ["lora_name2"], 0.3),
|
100 |
]
|
101 |
|
102 |
-
for lora_name, alpha in lora_names:
|
103 |
-
|
104 |
-
|
105 |
|
106 |
# スケジューラーの設定
|
107 |
sotai_gen_pipe.scheduler = UniPCMultistepScheduler.from_config(sotai_gen_pipe.scheduler.config)
|
|
|
83 |
|
84 |
# Create the ControlNet pipeline
|
85 |
sotai_gen_pipe = StableDiffusionControlNetPipeline(
|
86 |
+
vae=sd_pipe.vae,
|
87 |
text_encoder=sd_pipe.text_encoder,
|
88 |
tokenizer=sd_pipe.tokenizer,
|
89 |
+
unet=sd_pipe.unet,
|
90 |
scheduler=sd_pipe.scheduler,
|
91 |
safety_checker=sd_pipe.safety_checker,
|
92 |
feature_extractor=sd_pipe.feature_extractor,
|
|
|
99 |
# (os.environ["lora_name2"], 0.3),
|
100 |
]
|
101 |
|
102 |
+
# for lora_name, alpha in lora_names:
|
103 |
+
# lora_path = get_file_path(lora_name, subfolder=os.environ["lora_dir"])
|
104 |
+
# load_lora(sotai_gen_pipe, lora_path, alpha)
|
105 |
|
106 |
# スケジューラーの設定
|
107 |
sotai_gen_pipe.scheduler = UniPCMultistepScheduler.from_config(sotai_gen_pipe.scheduler.config)
|