EricGuo5513 / momask-codes

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

ValueError: not enough values to unpack (expected 2, got 0) #40

Closed biscuit1103 closed 1 month ago

biscuit1103 commented 7 months ago

Hello,Thanks for the detailed tutorials. during the replication process, I encountered a stumbling block while trainning RVQ. I encountered this problem, how should I solve it? Reading ./checkpoints/t2m/Comp_v6_KLD005/opt.txt Loading dataset t2m ... 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4384/4384 [00:06<00:00, 659.12it/s] Traceback (most recent call last): File "train_vq.py", line 114, in eval_valloader, = get_dataset_motion_loader(dataset_opt_path, 32, 'test', device=opt.device) File "/data2/momask-codes-main/motion_loaders/dataset_motion_loader.py", line 20, in get_dataset_motion_loader dataset = Text2MotionDatasetEval(opt, mean, std, split_file, w_vectorizer) File "/data2/momask-codes-main/data/t2m_dataset.py", line 158, in init name_list, length_list = zip(*sorted(zip(new_name_list, length_list), key=lambda x: x[1])) ValueError: not enough values to unpack (expected 2, got 0)

Murrol commented 7 months ago

Hi, it seems that those two lists are empty. Delete the try-except block to check the error information.

biscuit1103 commented 7 months ago

Hi, it seems that those two lists are empty. Delete the try-except block to check the error information. Thank you for your reply!! I have solved the problem according to the error code. I found that the texts folder is missing from my directory.