Ran out of input in pickle

Viewed 37

I used the code below, but I got an error "Ran out of input"

I had tried many solutions, such as changing mode in with open(scene_pt_path, 'rb') as f: to rw or add close() after calling each pickle load function. But all didn't work for me.

scene_pt_path = str(kwargs.pop('scene_pt'))
print('loading scenes from %s' % (scene_pt_path))
        with open(scene_pt_path, 'rb') as f:
            conn_matrixes = pickle.load(f)
            edge_matrixes = pickle.load(f)
            vertex_vectors = pickle.load(f)
            scene_descs = pickle.load(f)

the output below

loading scenes from gen_files/val_questions.pt
<_io.BufferedReader name='gen_files/val_questions.pt'>
---------------------------------------------------------------------------
EOFError                                  Traceback (most recent call last)
<ipython-input-19-9b71b8a52590> in <module>
----> 1 run_validate(set_params)

1 frames
<ipython-input-16-f964f68cdb2c> in __init__(self, **kwargs)
     93             print(f)
     94             conn_matrixes = pickle.load(f)
---> 95             edge_matrixes = pickle.load(f)
     96             vertex_vectors = pickle.load(f)
     97             scene_descs = pickle.load(f)

Update

I bring about the detail in this file that I tried to open it

this file, when opened in Atom

This was when I made this pickle file

0 Answers
Related