Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: vae path validation #2462

Merged
merged 9 commits into from
May 7, 2024
Prev Previous commit
fix: vae path validation
notjedi committed May 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 3902707d9b3811549940b43772a5cfb45edfd7d0
2 changes: 1 addition & 1 deletion kohya_gui/dreambooth_gui.py
Original file line number Diff line number Diff line change
@@ -541,7 +541,7 @@ def train_model(
if not validate_folder_path(train_data_dir):
return TRAIN_BUTTON_VISIBLE

if not validate_file_path(vae):
if not validate_model_path(vae):
return TRAIN_BUTTON_VISIBLE
#
# End of path validation
2 changes: 1 addition & 1 deletion kohya_gui/lora_gui.py
Original file line number Diff line number Diff line change
@@ -732,7 +732,7 @@ def train_model(
if not validate_folder_path(train_data_dir):
return TRAIN_BUTTON_VISIBLE

if not validate_file_path(vae):
if not validate_model_path(vae):
return TRAIN_BUTTON_VISIBLE

#
2 changes: 1 addition & 1 deletion kohya_gui/textual_inversion_gui.py
Original file line number Diff line number Diff line change
@@ -542,7 +542,7 @@ def train_model(
if not validate_folder_path(train_data_dir):
return TRAIN_BUTTON_VISIBLE

if not validate_file_path(vae):
if not validate_model_path(vae):
return TRAIN_BUTTON_VISIBLE

#