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

load_graph() returns empty graph #7

Open
catalina17 opened this issue Aug 29, 2018 · 2 comments
Open

load_graph() returns empty graph #7

catalina17 opened this issue Aug 29, 2018 · 2 comments

Comments

@catalina17
Copy link

I used the load_graph() method from House3DUtils to load a previously computed graph (the file path was valid), but self.graph was empty after the following lines:

EmbodiedQA/utils/house3d.py

Lines 272 to 273 in 9113156

self.graph = Graph()
self.graph.load(path)

Not sure if anyone else has had this issue; in any case, the following code worked for me:

import pickle
g = pickle.load(open(path, 'rb'))
from dijkstar import Graph
self.graph = Graph(g)
@ZhuFengdaaa
Copy link

May I ask which file you loaded ? or not working on all files ?

@catalina17
Copy link
Author

So the first call to __init__ generated a .pkl file, with build_graph=True, and the shortest path computation worked. The 2nd time I created a House3DUtils object using the same path for loading the .pkl file, self.graph contained an empty graph; more precisely, this returns an empty graph.

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