MotionGPT3
MotionGPT3 copied to clipboard
ValueError: not enough values to unpack (expected 2, got 0)
Great job! But I encountered the following problem while executing the demo. py
Traceback (most recent call last):
File "/data2/sgr/MotionGPT3/demo.py", line 229, in <module>
main()
File "/data2/sgr/MotionGPT3/demo.py", line 126, in main
datamodule = build_data(cfg)
^^^^^^^^^^^^^^^
File "/data2/sgr/MotionGPT3/motGPT/data/build_data.py", line 10, in build_data
return instantiate_from_config(data_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data2/sgr/MotionGPT3/motGPT/config.py", line 42, in instantiate_from_config
return get_obj_from_str(config["target"])(**config.get("params", dict()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data2/sgr/MotionGPT3/motGPT/data/HumanML3D.py", line 98, in __init__
self._sample_set = self.get_sample_set(overrides={"split": "test", "tiny": True})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data2/sgr/MotionGPT3/motGPT/data/__init__.py", line 20, in get_sample_set
return self.DatasetEval(**sample_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data2/sgr/MotionGPT3/motGPT/data/humanml/dataset_t2m_eval_v3.py", line 24, in __init__
super().__init__(data_root, split, mean, std, max_motion_length,
File "/data2/sgr/MotionGPT3/motGPT/data/humanml/dataset_t2m.py", line 175, in __init__
name_list, length_list = zip(
^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 0)
It seems to be an error related to the code path.
I encountered the following problem while executing the app. py
Traceback (most recent call last):
File "/data2/sgr/MotionGPT3/app.py", line 37, in <module>
state_dict = torch.load(cfg.TEST.CHECKPOINTS, map_location="cpu")["state_dict"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data1/motion/miniconda3/envs/mgpt3/lib/python3.11/site-packages/torch/serialization.py", line 1479, in load
with _open_file_like(f, "rb") as opened_file:
^^^^^^^^^^^^^^^^^^^^^^^^
File "/data1/motion/miniconda3/envs/mgpt3/lib/python3.11/site-packages/torch/serialization.py", line 759, in _open_file_like
return _open_file(name_or_buffer, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data1/motion/miniconda3/envs/mgpt3/lib/python3.11/site-packages/torch/serialization.py", line 740, in __init__
super().__init__(open(name, mode))
^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'checkpoints/motiongpt3.ckpt'
May I ask if you will release this weight? Thank you very much!!!
You are right, this error is related to a non-existent codepath. We have update our code in motGPT/data/humanml to bypass the loading of motion token. Please try latter and feel free to tell if there is still any difficulty to run.
We are planning to release our pretrained model after further organization and training. Thanks for your interest!