Skip to content

Commit

Permalink
fix: accelerate not found (modelscope#427)
Browse files Browse the repository at this point in the history
accelerate may not bye available in some envs in sd-webui,   and in most cases training a lora model only need on gpu, so remove accelerate

Co-authored-by: Xingjun.Wang <[email protected]>
  • Loading branch information
wenmengzhou and wangxingjun778 authored Nov 28, 2023
1 parent e5b4051 commit f18f574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def train_lora_fn(base_model_path=None, revision=None, sub_path=None, output_img
]
else:
command = [
'accelerate', 'launch', f'{project_dir}/facechain/train_text_to_image_lora_sdxl.py' if base_model_path is SDXL_BASE_MODEL_ID else f'{project_dir}/facechain/train_text_to_image_lora.py',
'python', f'{project_dir}/facechain/train_text_to_image_lora_sdxl.py' if base_model_path is SDXL_BASE_MODEL_ID else f'{project_dir}/facechain/train_text_to_image_lora.py',
f'--pretrained_model_name_or_path={base_model_path}',
f'--revision={revision}',
f'--sub_path={sub_path}',
Expand Down

0 comments on commit f18f574

Please sign in to comment.