EricGuo5513 / momask-codes

Official implementation of "MoMask: Generative Masked Modeling of 3D Human Motions (CVPR2024)"
https://ericguo5513.github.io/momask/
MIT License
856 stars 73 forks source link

How to evaluate customized trained QVQVAE? since there is no valWrapper #22

Closed hdjsjyl closed 9 months ago

hdjsjyl commented 9 months ago

Hi Author,

I meet the following error while running eval_vq.

AttributeError: 'Namespace' object has no attribute 'dim_movement_enc_hidden'

Thanks

Murrol commented 9 months ago

You will need to design and write your own evaluator. If you're unsure, the simplest approach is to comment out all the code related to the missing component and focus only on calculating the reconstruction error.

hdjsjyl commented 9 months ago

hi @Murrol , thanks for your reply. If I focus on the reconstruction loss by using l1 loss., I found the best epoch (lowest reconstruction error) is 4th or 5th epoch for batch size of 256 and 512. But I found the generated motion video during training makes sense. Would you point me the sample code in the repo for calculating the reconstruction error or any pseudo code? Really appreciate your help.