Skip to content

Commit ef8405b

Browse files
authored
Update webui.py
1 parent 3eb2d5b commit ef8405b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webui.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,9 @@ def train():
740740
f2=os.path.join(sd_models_path, f'{sd_models_path}/{db_model_name}_{train_steps}.ckpt')
741741
if os.path.exists(f2):
742742
shutil.copy(f2,"/opt/ml/model/")
743-
except Exception as e:
743+
f3=os.path.join(sd_models_path, f'{sd_models_path}/{db_model_name}_{train_steps}.safetensors')
744+
if os.path.exists(f3):
745+
shutil.copy(f3,"/opt/ml/model/") except Exception as e:
744746
traceback.print_exc()
745747
print(e)
746748
opts.data = default_options

0 commit comments

Comments
 (0)