Skip to content
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

PEP 503 #4314

Open
drewgilliam opened this issue Jun 6, 2022 · 2 comments
Open

PEP 503 #4314

drewgilliam opened this issue Jun 6, 2022 · 2 comments
Labels
enhancement Improvements or good new features

Comments

@drewgilliam
Copy link

🚀 Feature

Provide pre-built detectron2 in PEP 503 simple repository.

Motivation & Examples

Provide PEP 503 compliant simple repository for pre-built detectron2, allowing use of the pip --extra-index-url argument or the a pipenv [[source]] configuration. This allows pip/pipenv to automatically select the appropriate prebuilt binary for the user's python version without exact manual specification of the full binary file name.

For example, to install detectron v0.6 for cuda 11.3 and torch 1.10 via pip:

pip install --extra-index-url https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/ detectron2==0.6+cu113

and via pipenv

[[source]]
name = "detectron2"
url = "https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/"
verify_ssl = true

[packages]
torch = {version="0.6+cu113", index="detectron2"}

Related links regarding PEP 503 implementation for pytorch:
PEP 503 for pytorch
Installing torch with pipenv

Extra Credit

Reorganize/rename prebuilt detectron2 for a simplified index url and more descriptive package version. All prebuilt packages could then be hosted under a single url (https://dl.fbaipublicfiles.com/wheels/detectron2/).

pip install --extra-index-url https://dl.fbaipublicfiles.com/wheels/ detectron2==0.6+cu113+torch110
@drewgilliam drewgilliam added the enhancement Improvements or good new features label Jun 6, 2022
@drewgilliam
Copy link
Author

Linking to pytorch3d issue which is a similar request
facebookresearch/pytorch3d#1090

@MiroPsota
Copy link

You can try my repository for building packages and PyPI simple index and see if it works for you:
#5200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements or good new features
Projects
None yet
Development

No branches or pull requests

2 participants