Mael-zys/T2M-GPT

The issue on the evaluation of VQVAE

Closed this issue · 2 comments

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()?

Best

We set net.eval() in the test function, so net.train() will not affect the evaluation.

net.eval()

Okay. got it! Many thanks!❤️