Closed LinghaoChan closed 10 months ago
Dear authors,
I found that the evaluation of VQVAE includes a line of codes (here):
if args.resume_pth : logger.info('loading checkpoint from {}'.format(args.resume_pth)) ckpt = torch.load(args.resume_pth, map_location='cpu') net.load_state_dict(ckpt['net'], strict=True) net.train() net.cuda()
why does the evaluation use train() not eval()?
train()
eval()
Best
We set net.eval() in the test function, so net.train() will not affect the evaluation.
https://github.com/Mael-zys/T2M-GPT/blob/7db71a28b2117abd9fc0dd402b91df72f1bc6ace/utils/eval_trans.py#L22
Okay. got it! Many thanks!❤️
Dear authors,
I found that the evaluation of VQVAE includes a line of codes (here):
why does the evaluation use
train()
noteval()
?Best