Skip to content

Commit

Permalink
Update webui.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyongliang committed Mar 22, 2023
1 parent 3eb2d5b commit ef8405b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webui.py
Expand Up @@ -740,7 +740,9 @@ def train():
f2=os.path.join(sd_models_path, f'{sd_models_path}/{db_model_name}_{train_steps}.ckpt')
if os.path.exists(f2):
shutil.copy(f2,"/opt/ml/model/")
except Exception as e:
f3=os.path.join(sd_models_path, f'{sd_models_path}/{db_model_name}_{train_steps}.safetensors')
if os.path.exists(f3):
shutil.copy(f3,"/opt/ml/model/") except Exception as e:
traceback.print_exc()
print(e)
opts.data = default_options
Expand Down

0 comments on commit ef8405b

Please sign in to comment.