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

Fixes #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fixes #1

wants to merge 2 commits into from

Conversation

msbaines
Copy link

  • fix to work with latest numpy
  • fix type

Mandeep Singh Baines added 2 commits November 13, 2019 13:33
The allow_pickle option's default is False since numpy 1.16.3. Fix
by specifying allow_pickle=True explicitly.

Fixes the following crash:

Traceback (most recent call last):
  File "tools/load.py", line 472, in <module>
    scenegraph3d[model]['graph'], scenegraph3d[model]['panoramas'] = load_3DSceneGraph(model, data_path)
  File "tools/load.py", line 199, in load_3DSceneGraph
    building, panoramas = load_file(npz_path, building)
  File "tools/load.py", line 139, in load_file
    data = np.load(npz_path)['output'].item()
  File "python3.7/site-packages/numpy/lib/npyio.py", line 262, in __getitem__
    pickle_kwargs=self.pickle_kwargs)
  File "python3.7/site-packages/numpy/lib/format.py", line 696, in read_array
    raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False
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

Successfully merging this pull request may close these issues.

1 participant