ai4r / Gesture-Generation-from-Trimodal-Context

Speech Gesture Generation from the Trimodal Context of Text, Audio, and Speaker Identity (SIGGRAPH Asia 2020)
Other
245 stars 35 forks source link

Problem about deserializing #57

Closed Chenghyyy closed 5 months ago

Chenghyyy commented 5 months ago

Hi, Appreciate for your work! When I run this code: def run(self): n_filtered_out = defaultdict(int) src_txn = self.src_lmdb_env.begin(write=False)

    # sampling and normalization
    cursor = src_txn.cursor()
    #print(cursor)
    for key, value in cursor:
        #print(value)
        video = pyarrow.deserialize(value)

it will report an error.: Traceback (most recent call last): File "/home/wxp/chy/Gesture-Generation-from-Trimodal-Context-master/scripts/synthesize.py", line 442, in main(mode, ckpt_path, option) File "/home/wxp/chy/Gesture-Generation-from-Trimodal-Context-master/scripts/synthesize.py", line 268, in main val_dataset = load_dataset(val_data_path) File "/home/wxp/chy/Gesture-Generation-from-Trimodal-Context-master/scripts/synthesize.py", line 252, in load_dataset dataset = SpeechMotionDataset(path, File "/home/wxp/chy/Gesture-Generation-from-Trimodal-Context-master/scripts/data_loader/lmdb_data_loader.py", line 84, in init data_sampler.run() File "/home/wxp/chy/Gesture-Generation-from-Trimodal-Context-master/scripts/data_loader/data_preprocessor.py", line 49, in run video = pyarrow.deserialize(value) File "pyarrow/serialization.pxi", line 476, in pyarrow.lib.deserialize File "pyarrow/serialization.pxi", line 438, in pyarrow.lib.deserialize_from File "pyarrow/serialization.pxi", line 414, in pyarrow.lib.read_serialized File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected IPC message of type unknown but got unknown

Process finished with exit code 1

Can you help me solve this problem? Thank you very much

youngwoo-yoon commented 5 months ago

Hello, please check that you're using the correct version of pyarrow in the requirements.txt.

Chenghyyy commented 5 months ago

Thank you very much for your help. With your help, this problem has been resolved.