tango
tango copied to clipboard
About data augment
Hi!
Thanks so much for this work! When I tried to train the model on AudioCaps (didn't change the training script other than file paths), I got this issue:
File "/tango/train.py", line 553, in
It would be highly appreciated if you could kindly help me with this problem, thanks!
It seems like the length of texts is 1. The last batch of the training data may have only one instance, and then this error would come up. Did this happen at the end of the training loop?
I have made a few small changes in the train.py to handle this. Let me know if that fixes the issue.
I am assuming you used the per device train batch size of at least 2. Augmentation won't work with batch size of 1.
It seems like the length of
textsis 1. The last batch of the training data may have only one instance, and then this error would come up. Did this happen at the end of the training loop?I have made a few small changes in the
train.pyto handle this. Let me know if that fixes the issue.I am assuming you used the per device train batch size of at least 2. Augmentation won't work with batch size of 1.
Thanks for your help! The problem occurred before training started, when I tried to run the new train.py, I got the typical "cuda out of memory" error. Have you ever tried to train without data augment, how's the result?