make optional dependecy group for wm

This commit is contained in:
Tuan Tran
2024-06-03 21:57:16 -04:00
parent b171f03001
commit bfa860f134
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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: |
+1
View File
@@ -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://git@github.com/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:
+2 -1
View File
@@ -46,7 +46,8 @@ setup(
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']},