Skip to content

Bundle Adjust tutorial fails in colab due to missing utils #42

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

Closed
REscanDon opened this issue Feb 10, 2020 · 2 comments
Closed

Bundle Adjust tutorial fails in colab due to missing utils #42

REscanDon opened this issue Feb 10, 2020 · 2 comments

Comments

@REscanDon
Copy link

If you do not know the root cause of the problem / bug, and wish someone to help you, please
post according to this template:

🐛 Bugs / Unexpected behaviors

Instructions To Reproduce the Issue:

  1. Browse to Bundle Adjust tutorial
  2. Click on the "Open in Colab" button
  3. Manually add a cell to import pytorch3d per instructions here and here
!pip install torch torchvision
!pip install 'git+https://github.com/facebookresearch/pytorch3d.git'
  1. Step through the cells in the tutorial

EXPECTED RESULT

Tutorial completes without error

ACTUAL RESULT

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-4-78db78d73941> in <module>()
     12 import os
     13 sys.path.append(os.path.abspath(''))
---> 14 from utils import plot_camera_scene
     15 
     16 # set for reproducibility

ModuleNotFoundError: No module named 'utils'

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------

Please include the following (depending on what the issue is):

  1. Any changes you made (git diff) or code you wrote
<put diff or code here>
  1. The exact command(s) you ran:
  2. What you observed (including the full logs):
<put logs here>

Please also simplify the steps as much as possible so they do not require additional resources to
run, such as a private dataset.

@nikhilaravi
Copy link
Contributor

@REscanDon thanks for raising this issue. We will update the tutorials with a fix soon. In the meantime to get unblocked you could copy paste the functions from utils/camera_visualisation.py into the colab notebook.

@nikhilaravi
Copy link
Contributor

@REscanDon the tutorial has now been updated to use wget to retrieve all the necessary code. We have included the commands to do this in one of the notebook cells so you can just run this cell. If you still experience issues please reopen the issue.

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