Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save aki-hp/7b42d1aba1c747d785ece566816e4237 to your computer and use it in GitHub Desktop.

Select an option

Save aki-hp/7b42d1aba1c747d785ece566816e4237 to your computer and use it in GitHub Desktop.
How to install ANYTHING from facebook/FAIR (Detectron2, Pytorch3d etc) if torch is returning error/torch not found

This is how I did it, it's definitely not conventional but I didn't find any post about this. Try at your own risk!

  1. "python setup.py install"
  2. Check the egg packages with "pip list"
  3. Convert the egg packages to wheel (wheel convert )
  4. Extract the wheel
  5. Check the dist-info folder, and check if the folder names are proper. If you need to change it, change RECORD and top_level.txt in dist-info folder.
  6. Copy the main folder (detectron2), additional folder (tools, renamed to detectron2.tools), and the dist-info (detectron2-0.6.dist-info)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment