@@ -397,7 +397,7 @@ async def train_gpt(self, params: GPTTrainParams):
397397 # Note: it could not be empty, because the training processing has multiple processes, each process could generate a model name
398398 if params .output_model_name == "" :
399399 params .output_model_name = "gpt_" + generate_random_name ()
400- model_path = get_gpt_train_dir (params .output_model_name )
400+ model_path = get_gpt_train_dir (params .project_dir , params . output_model_name )
401401
402402 backtask_with_session_guard (uid , TaskType .train_gpt , asdict (params ), start_task_with_subprocess , uid = uid , request = params , cmd_file = TaskCMD .train_gpt )
403403 return EaseVoiceResponse (ResponseStatus .SUCCESS , "GPT training started" , uuid = str (uid ), data = {"model_path" : model_path })
@@ -408,7 +408,7 @@ async def train_sovits(self, params: SovitsTrainParams):
408408 # Note: it could not be empty, because the training processing has multiple processes, each process could generate a model name
409409 if params .output_model_name == "" :
410410 params .output_model_name = "sovits_" + generate_random_name ()
411- model_path = get_sovits_train_dir (params .output_model_name )
411+ model_path = get_sovits_train_dir (params .project_dir , params . output_model_name )
412412 uid = str (uuid .uuid4 ())
413413 backtask_with_session_guard (uid , TaskType .train_sovits , asdict (params ), start_task_with_subprocess , uid = uid , request = params , cmd_file = TaskCMD .tran_sovits )
414414 return EaseVoiceResponse (ResponseStatus .SUCCESS , "Sovits training started" , uuid = uid , data = {"model_path" : model_path })
0 commit comments