Skip to content

Commit

Permalink
feat(train): add option to specify TensorBoardLogger version paramete…
Browse files Browse the repository at this point in the history
…r support (#331)
  • Loading branch information
Lordmau5 authored Apr 14, 2023
1 parent 6ac2f29 commit a685123
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"hop_sizes": [60, 120, 20],
"win_lengths": [300, 600, 120],
"window": "hann_window",
"num_workers": 4
"num_workers": 4,
"log_version": 0
},
"data": {
"training_files": "filelists/44k/train.txt",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"max_speclen": 512,
"port": "8001",
"keep_ckpts": 3,
"num_workers": 4
"num_workers": 4,
"log_version": 0
},
"data": {
"training_files": "filelists/44k/train.txt",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"max_speclen": 512,
"port": "8001",
"keep_ckpts": 3,
"num_workers": 4
"num_workers": 4,
"log_version": 0
},
"data": {
"training_files": "filelists/44k/train.txt",
Expand Down
4 changes: 3 additions & 1 deletion src/so_vits_svc_fork/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def train(
)
LOG.info(f"Using strategy: {strategy}")
trainer = pl.Trainer(
logger=TensorBoardLogger(model_path),
logger=TensorBoardLogger(
model_path, "lightning_logs", hparams.train.get("log_version", 0)
),
# profiler="simple",
val_check_interval=hparams.train.eval_interval,
max_epochs=hparams.train.epochs,
Expand Down

0 comments on commit a685123

Please sign in to comment.