mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
speech2speech
This commit is contained in:
parent
21016fc693
commit
11023eea21
@ -655,6 +655,8 @@ class Trainer:
|
||||
acc_log = loss_dict["stats"]["acc"].detach().cpu().item()
|
||||
if torch.isnan(loss_dict["loss"]):
|
||||
logging.warning(f"loss is {loss_log}, set is to 0.0.\nitem:\n{batch['item']}")
|
||||
if "item" in batch:
|
||||
logging.warning(f"item:\n{batch['item']}")
|
||||
loss_log = 0.0
|
||||
acc_log = 0.0
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user