Dai-Wenxun / MotionLCM

[ ECCV 2024 ] MotionLCM: This repo is the official implementation of "MotionLCM: Real-time Controllable Motion Generation via Latent Consistency Model"
Other
222 stars 7 forks source link

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

Closed Zeyi-Lin closed 5 months ago

Zeyi-Lin commented 5 months ago

Hey, when I reached the 🎬 Demo step, running the code reported the following error:

(motionlcm) linzeyi@trainer1:~/MotionLCM$ python demo.py --cfg configs/motionlcm_t2m.yaml --example assets/example.txt
05/01/2024 16:20:15 - INFO - __main__ - Loading checkpoints from experiments_t2m/motionlcm_humanml/motionlcm_humanml.ckpt
05/01/2024 16:20:15 - INFO - __main__ - Is LCM: True
05/01/2024 16:20:15 - INFO - __main__ - Is Controlnet: False
Traceback (most recent call last):
  File "/home/linzeyi/MotionLCM/demo.py", line 154, in <module>
    main()
  File "/home/linzeyi/MotionLCM/demo.py", line 74, in main
    datasets = get_datasets(cfg, phase="test")[0]
  File "/home/linzeyi/MotionLCM/mld/data/get_data.py", line 66, in get_datasets
    dataset = dataset_module_map[dataset_name.lower()](
  File "/home/linzeyi/MotionLCM/mld/data/HumanML3D.py", line 38, in __init__
    self._sample_set = self.get_sample_set(overrides=sample_overrides)
  File "/home/linzeyi/MotionLCM/mld/data/base.py", line 29, in get_sample_set
    return self.Dataset(split_file=split_file, **sample_params)
  File "/home/linzeyi/MotionLCM/mld/data/humanml/dataset.py", line 128, in __init__
    name_list, length_list = zip(
ValueError: not enough values to unpack (expected 2, got 0)

My Environment:

I use the preparation process provided in the README and confirm that there are no errors.

Dai-Wenxun commented 5 months ago

Fixed in 449fa74cb491a7d08101f0ca16a85c8812e60052, thanks for reporting this bug. image

Zeyi-Lin commented 5 months ago

Fixed in 449fa74, thanks for reporting this bug. image

Thanks β€”β€” The reason for the error is that I directly copied the HumanML3D folder from HumanML3D to the datasets directory, but in fact, the processing workflow needs to be executed.

πŸŽ‰The code in the red box solved my problem.