We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3eb2d5b commit ef8405bCopy full SHA for ef8405b
webui.py
@@ -740,7 +740,9 @@ def train():
740
f2=os.path.join(sd_models_path, f'{sd_models_path}/{db_model_name}_{train_steps}.ckpt')
741
if os.path.exists(f2):
742
shutil.copy(f2,"/opt/ml/model/")
743
- except Exception as e:
+ 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:
746
traceback.print_exc()
747
print(e)
748
opts.data = default_options
0 commit comments