Skip to content

Commit

Permalink
fix lora load issue (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
ly19965 committed Dec 19, 2023
1 parent d4e1693 commit 588294e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,9 @@ def launch_pipeline(uuid,
set_spawn_method()
# Check character LoRA
tmp_character_model = base_models[base_model_index]['model_id']
if tmp_character_model != character_model:
tmp_character_model = 'AI-ModelScope/stable-diffusion-xl-base-1.0'
if tmp_character_model != 'AI-ModelScope/stable-diffusion-xl-base-1.0':
tmp_character_model = character_model

folder_path = join_worker_data_dir(uuid, tmp_character_model)
folder_list = []
if os.path.exists(folder_path):
Expand Down

0 comments on commit 588294e

Please sign in to comment.