LuluW8071/Automatic-Speech-Recognition-with-PyTorch

Train Error

Closed this issue · 4 comments

image

Resolving calling of lr_scheduler.step() before optimizer.step()
In PyTorch 1.1.0 and later,
you should call them in the opposite order: optimizer.step() before lr_scheduler.step().

Optimizer param error

GPU warn is solved

image

Resolved Above Issues.
Training Epoch shows no warning and no exits.

If Train Epoch exits due to less GPU memory

decrease batch_size to 32

parser.add_argument('--batch_size', default=64, type=int, help='size of batch')

Also, if train.json and test.json are too less
REPLACE

val_check_interval=args.valid_every

WITH

val_check_interval=10