RobotLocomotion / pytorch-dense-correspondence

Code for "Dense Object Nets: Learning Dense Visual Object Descriptors By and For Robotic Manipulation"

Home Page:https://arxiv.org/pdf/1806.08756.pdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why can't I import the python files in other folders?

nemocandy5 opened this issue · comments

Excuse me. I tried to run the notebook dense_correspondence/dataset/simple_datasets_test.ipynb
But it has import error. As shown below. If 22 lines are annotated, there are still similar problems in line 23 & line 24. How can I solve this?

image

Looks like you haven't sourced the appropriate files to add those folders to your PYTHONPATH. Make sure you run use_pytorch_dense_correspondence and use_director.

Just a note that the tutorials are still under construction. But our README's contain lots of useful information. Please poke around there and see if they answer your question before creating an issue. Specifically this readme contains information on the environment setup.

Hi @nemocandy5 -- just looking at this now, were you able to get this to work, or need any more help? We also just posted a tutorial which might help you out.

Looking at the error message -- this may be the key command lines you need while setting up?

git submodule update --init  --recursive

Let me know if you have any more questions / issues.

And if not then yes, running use_pytorch_dense_correspondence in the terminal session will set your PYTHONPATH to be happy. Should do this before starting a jupyter notebook server.