D3Net icon indicating copy to clipboard operation
D3Net copied to clipboard

Can't read pickle file for loading data

Open LeoGitGuy opened this issue 3 years ago • 1 comments

Hello, I encountered an issue while trying to execute python scripts/train.py --config conf/pointgroup.yaml I got the error message TypeError: file must have 'read' and 'readline' attributes.

I could fix it by changing line 451 in lib/dataset/pipeline.py to:

with open(self.cfg["{}_PATH".format(self.name.upper())].glove_pickle, 'rb') as pickle_file:
                    glove = pickle.load(pickle_file)

LeoGitGuy avatar Jul 30 '22 11:07 LeoGitGuy

Thanks for your post! It helped me solve the issue as well.

Rajrup avatar Feb 22 '23 08:02 Rajrup