Git Product home page Git Product logo

Comments (6)

Summerdown111 avatar Summerdown111 commented on August 11, 2024

So do I, and when I execute the following command: [PYOPENGL_PLATFORM=egl PYTHONPATH='.' python executables/run_all_tests.py.] for testing, the above error also appears.
The configuration environment is the same as yours.

from visual-navigation-release.

vtolani95 avatar vtolani95 commented on August 11, 2024

Thank you for your interest in our work!

As discussed in this resolved GitHub issue the "error" you mentioned is expected to print (we have the same error message print on our end as well). It is a sign of the code working correctly- if you navigate to the session directory for the test you ran, you should see a complete set of plots, metrics, etc. from the test running successfully.

With regards to running your code on CPU, this codebase must be run on a machine with a GPU for the image rendering engine to work.

from visual-navigation-release.

Summerdown111 avatar Summerdown111 commented on August 11, 2024

Thank you for your reply.

I know that the error is a sign that code works correctly.But when I run your test file executables/run_all_tests.py, every time I use the Visual-Navigation-Release-master/mp_env/render/swiftshader_renderer.py script, I get this result,such as:

Running test test_obstacle_map.py ERROR:root:Loading building from obj file: PATH/TO/LB_WayPtNav_Data/stanford_building_parser_dataset/mesh/area3/41a8012778ff4fc1800a7794bd15d81e.obj ERROR:root:#Meshes: 90 Exception ignored in: <bound method Shape.__del__ of <mp_env.render.swiftshader_renderer.Shape object at 0x7fa83855e550>> Traceback (most recent call last): File "/home/lzf/文档/Visual-Navigation-Release-master/mp_env/render/swiftshader_renderer.py", line 157, in __del__ File "/home/lzf/anaconda3/envs/venv-mpc/lib/python3.6/site-packages/pyassimp/core.py", line 351, in release ImportError: sys.meta_path is None, Python is likely shutting down Execution time for test test_obstacle_map.py is 15 seconds.
This ImportError bothers me.So I think it may be that there is something wrong with the dataset itself during the download process. In fact, I don't know exactly why.

from visual-navigation-release.

vtolani95 avatar vtolani95 commented on August 11, 2024

Hello,

These lines print out on our end as well, when the script executes as expected. It is an issue that occurs at the end of script execution (after all tests, plots are created, metrics are computed, etc.). If you run "run_all_tests.py" and receive no assertion errors that means your code is working correctly.

You can try running this particular test "PYTHONPATH='.' python tests/test_obstacle_map.py" and change visualize=True in this line. If you see a plot, your code has certainly worked.

from visual-navigation-release.

Summerdown111 avatar Summerdown111 commented on August 11, 2024

I have changed visualize=True in this line,but I get such errors:

Running test test_obstacle_map.py
ERROR:root:Loading building from obj file: PATH/TO/LB_WayPtNav_Data/stanford_building_parser_dataset/mesh/area3/41a8012778ff4fc1800a7794bd15d81e.obj
ERROR:root:#Meshes: 90
Traceback (most recent call last):
File "/home/lzf/文档/Visual-Navigation-Release-master/tests/test_obstacle_map.py", line 91, in
test_sbpd_map(visualize=True)
File "/home/lzf/文档/Visual-Navigation-Release-master/tests/test_obstacle_map.py", line 77, in test_sbpd_map
occupancy_grid_nn = obstacle_map.create_occupancy_grid()
**_TypeError: create_occupancy_grid() missing 1 required positional argument: 'pos_n3'_**

Exception ignored in: <bound method Shape.del of <mp_env.render.swiftshader_renderer.Shape object at 0x7f912559a5c0>>
Traceback (most recent call last):
File "/home/lzf/文档/Visual-Navigation-Release-master/mp_env/render/swiftshader_renderer.py", line 157, in del
File "/home/lzf/anaconda3/envs/venv-mpc/lib/python3.6/site-packages/pyassimp/core.py", line 351, in release
ImportError: sys.meta_path is None, Python is likely shutting down
Execution time for test test_obstacle_map.py is 14 seconds.

from visual-navigation-release.

kevin-thankyou-lin avatar kevin-thankyou-lin commented on August 11, 2024

Hi Varun! I'm getting the same error here and it looks like the thing we're trying to visualize isn't implemented?

Setting visualize to true, I get here:

 `if visualize:
    occupancy_grid_nn = obstacle_map.create_occupancy_grid()

    fig = plt.figure()
    ax = fig.add_subplot(121)
    obstacle_map.render(ax)

    ax = fig.add_subplot(122)
    ax.imshow(occupancy_grid_nn, cmap='gray', origin='lower')
    ax.set_axis_off()
    plt.show()`

Then, if I arbitrarily pass in an argument, I get to this function:

`@staticmethod
def create_occupancy_grid(pos_n3, **kwargs):
    """
    Create egocentric occupancy grids at the positions
    in pos_n3.
    """
    raise NotImplementedError`

Do you know what occupancy_grid_nn was meant to be for visualization purposes?

from visual-navigation-release.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.