The above will fail as torch is not already available and not installed as a dependency
Desired behavior:
If detectron2 included torch as a stated dependency, it would make fresh install more straightforward. It currently crashes without a useful error message due to the import torch statement in setup.py
This limits the usefulness of using clean virtual environments (with repeatable requirements.txt) as a manual install of pytorch is required first
Instructions To Reproduce the 🐛 Bug:
The above will fail as torch is not already available and not installed as a dependency
Desired behavior:
If
detectron2
included torch as a stated dependency, it would make fresh install more straightforward. It currently crashes without a useful error message due to theimport torch
statement insetup.py
This limits the usefulness of using clean virtual environments (with repeatable requirements.txt) as a manual install of pytorch is required first