Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
biscuit1103 opened this issue Apr 27, 2024 · 2 comments
Open

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

biscuit1103 opened this issue Apr 27, 2024 · 2 comments

Comments

@biscuit1103
Copy link

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_val_loader, _ = 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
Copy link
Collaborator

Murrol commented Apr 27, 2024

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

@biscuit1103
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants