Skip to content

Commit

Permalink
make optional dependecy group for wm
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuan Tran authored and Tuan Tran committed Jun 4, 2024
1 parent b171f03 commit bfa860f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/audiocraft_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:
python -m pip install --upgrade pip
pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0
pip install xformers
pip install -e '.[dev]'
pip install -e '.[dev,wm]'
- name: System Dependencies
shell: bash
run: |
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ python -m pip install setuptools wheel
python -m pip install -U audiocraft # stable release
python -m pip install -U git+https://[email protected]/facebookresearch/audiocraft#egg=audiocraft # bleeding edge
python -m pip install -e . # or if you cloned the repo locally (mandatory if you want to train).
python -m pip install -e '.[wm]' # if you want to train a watermarking model
```

We also recommend having `ffmpeg` installed, either through your system or Anaconda:
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
python_requires=REQUIRES_PYTHON,
install_requires=REQUIRED,
extras_require={
'dev': ['coverage', 'flake8', 'mypy', 'pdoc3', 'pytest', 'audioseal'],
'dev': ['coverage', 'flake8', 'mypy', 'pdoc3', 'pytest'],
'wm': ['audioseal'],
},
packages=[p for p in find_packages() if p.startswith('audiocraft')],
package_data={'audiocraft': ['py.typed']},
Expand Down

0 comments on commit bfa860f

Please sign in to comment.