Skip to content

Commit

Permalink
fix(ci): Make SAM and MobileSAM optional dependencies (#13)
Browse files Browse the repository at this point in the history
Fixes issue with publishing Pixano Inference to PyPI
  • Loading branch information
cpvannier authored Feb 29, 2024
1 parent 054971f commit ac011ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
python -m pip install pylint
python -m pip install torch~=2.2.0 torchaudio~=2.2.0 torchvision~=0.17.0 --index-url https://download.pytorch.org/whl/cpu
python -m pip install tensorflow-cpu~=2.15.0
python -m pip install .
python -m pip install .[sam]
- name: Lint backend code with Pylint
run: |
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ dependencies = [
"torchvision ~= 0.17.0",
"tensorflow ~= 2.15.0",
"tensorflow-hub ~= 0.15.0",
"segment-anything@git+https://github.com/facebookresearch/segment-anything",
"mobile-sam@git+https://github.com/ChaoningZhang/MobileSAM",
"transformers >= 4.33.0",
"timm >= 0.9.12",
"gitpython >= 3.1.30",
Expand All @@ -51,6 +49,10 @@ documentation = [
"mkdocs-literate-nav ~= 0.6.0",
"mkdocs-redirects ~= 1.2.1",
]
sam = [
"segment-anything@git+https://github.com/facebookresearch/segment-anything",
"mobile-sam@git+https://github.com/ChaoningZhang/MobileSAM",
]

[project.urls]
Documentation = "https://github.com/pixano/pixano-inference#readme"
Expand Down

0 comments on commit ac011ba

Please sign in to comment.