mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-06 03:57:44 +08:00
Update s1_train.py
This commit is contained in:
parent
1b4c01e860
commit
a208698e77
@ -79,6 +79,8 @@ class my_model_ckpt(ModelCheckpoint):
|
|||||||
to_save_od["config"] = self.config
|
to_save_od["config"] = self.config
|
||||||
to_save_od["info"] = "GPT-e%s" % (trainer.current_epoch + 1)
|
to_save_od["info"] = "GPT-e%s" % (trainer.current_epoch + 1)
|
||||||
# torch.save(
|
# torch.save(
|
||||||
|
# print(os.environ)
|
||||||
|
if(os.environ.get("LOCAL_RANK","0")=="0"):
|
||||||
my_save(
|
my_save(
|
||||||
to_save_od,
|
to_save_od,
|
||||||
"%s/%s-e%s.ckpt"
|
"%s/%s-e%s.ckpt"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user