Skip to content

Commit

Permalink
small fix on training
Browse files Browse the repository at this point in the history
  • Loading branch information
SUC-DriverOld committed Sep 24, 2024
1 parent 8ad101d commit 1509c41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/webUI_for_clouds/webUI_for_clouds.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ def start_training(train_model_type, train_config_path, train_dataset_type, trai
train_file = "train_accelerate.py"
else:
train_file = "train.py"
if model_type not in MODEL_TYPE:
if train_model_type not in MODEL_TYPE:
return i18n("模型类型错误, 请重新选择")
if not os.path.isfile(train_config_path):
return i18n("配置文件不存在, 请重新选择")
Expand Down
2 changes: 1 addition & 1 deletion webUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ def start_training(train_model_type, train_config_path, train_dataset_type, trai
train_file = "train_accelerate.py"
else:
train_file = "train.py"
if model_type not in MODEL_TYPE:
if train_model_type not in MODEL_TYPE:
return i18n("模型类型错误, 请重新选择")
if not os.path.isfile(train_config_path):
return i18n("配置文件不存在, 请重新选择")
Expand Down

0 comments on commit 1509c41

Please sign in to comment.