Open Programmer-RD-AI opened 1 month ago
torch seems to also be a build requirement. Adding it in setup.py as a dependency still doesn't seem to fix everything.
I got detectron2 to install with poetry add $url
by just creating a pyproject.toml
with these contents:
[build-system]
requires = ["setuptools", "torch"]
Though in addition to that it should be added in setup.py
like this PR does.
torch seems to also be a build requirement. Adding it in setup.py as a dependency still doesn't seem to fix everything.
I got detectron2 to install with
poetry add $url
by just creating apyproject.toml
with these contents:[build-system] requires = ["setuptools", "torch"]
Though in addition to that it should be added in
setup.py
like this PR does.
Tried it in a fork, that was the missing piece for my setup. Thanks so much!
This PR addresses issue #5228 reported by @mdvthu. The changes ensure that the torch dependency requirement in the setup.py file of Detectron2 is correctly specified, aligning with actual version compatibility. Additionally, the code formatting and readability in the setup.py file have been improved for better consistency.
Before submitting this PR, I have run
dev/linter.sh
to ensure that the code adheres to the project's linting standards.Thank you for considering this contribution!