D3Net
D3Net copied to clipboard
Can't read pickle file for loading data
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)
Thanks for your post! It helped me solve the issue as well.