Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't read pickle file for loading data #2

Open
LeoGitGuy opened this issue Jul 30, 2022 · 1 comment
Open

Can't read pickle file for loading data #2

LeoGitGuy opened this issue Jul 30, 2022 · 1 comment

Comments

@LeoGitGuy
Copy link

LeoGitGuy commented Jul 30, 2022

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)
@Rajrup
Copy link

Rajrup commented Feb 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants