-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pre release changes for production (#59)
* clean requirements * rm taming deps * isort, black * mv lipips, license * clean vq, fix path * fix loss path, gitignore * tested requirements pt13 * fix numpy req for python3.8, add tests * fix name * fix dep scipy 3.8 pt2 * add black test formatter
- Loading branch information
1 parent
4a3f0f5
commit e596332
Showing
31 changed files
with
641 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Run black | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install venv | ||
run: | | ||
This comment has been minimized.
Sorry, something went wrong. |
||
sudo apt-get -y install python3.10-venv | ||
- uses: psf/black@stable | ||
with: | ||
options: "--check --verbose -l88" | ||
src: "./sgm ./scripts ./main.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Build package | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.10"] | ||
requirements-file: ["pt2", "pt13"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements/${{ matrix.requirements-file }}.txt | ||
pip install . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
# extensions | ||
*.egg-info | ||
*.py[cod] | ||
|
||
# envs | ||
.pt13 | ||
.pt2 | ||
.pt2_2 | ||
|
||
# directories | ||
/checkpoints | ||
/dist | ||
/outputs | ||
build | ||
/build | ||
/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
black==23.7.0 | ||
chardet>=5.1.0 | ||
clip @ git+https://github.com/openai/CLIP.git | ||
einops>=0.6.1 | ||
fairscale>=0.4.13 | ||
fire>=0.5.0 | ||
fsspec>=2023.6.0 | ||
invisible-watermark>=0.2.0 | ||
kornia==0.6.9 | ||
matplotlib>=3.7.2 | ||
natsort>=8.4.0 | ||
numpy>=1.24.4 | ||
omegaconf>=2.3.0 | ||
onnx<=1.12.0 | ||
open-clip-torch>=2.20.0 | ||
opencv-python==4.6.0.66 | ||
pandas>=2.0.3 | ||
pillow>=9.5.0 | ||
pudb>=2022.1.3 | ||
pytorch-lightning==1.8.5 | ||
pyyaml>=6.0.1 | ||
scipy>=1.10.1 | ||
streamlit>=1.25.0 | ||
tensorboardx==2.5.1 | ||
timm>=0.9.2 | ||
tokenizers==0.12.1 | ||
--extra-index-url https://download.pytorch.org/whl/cu117 | ||
torch==1.13.1+cu117 | ||
torchaudio==0.13.1 | ||
torchdata==0.5.1 | ||
torchmetrics>=1.0.1 | ||
torchvision==0.14.1+cu117 | ||
tqdm>=4.65.0 | ||
transformers==4.19.1 | ||
triton==2.0.0.post1 | ||
urllib3<1.27,>=1.25.4 | ||
wandb>=0.15.6 | ||
webdataset>=0.2.33 | ||
wheel>=0.41.0 | ||
xformers==0.0.16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
black==23.7.0 | ||
chardet==5.1.0 | ||
clip @ git+https://github.com/openai/CLIP.git | ||
einops>=0.6.1 | ||
fairscale>=0.4.13 | ||
fire>=0.5.0 | ||
fsspec>=2023.6.0 | ||
invisible-watermark>=0.2.0 | ||
kornia==0.6.9 | ||
matplotlib>=3.7.2 | ||
natsort>=8.4.0 | ||
ninja>=1.11.1 | ||
numpy>=1.24.4 | ||
omegaconf>=2.3.0 | ||
open-clip-torch>=2.20.0 | ||
opencv-python==4.6.0.66 | ||
pandas>=2.0.3 | ||
pillow>=9.5.0 | ||
pudb>=2022.1.3 | ||
pytorch-lightning==2.0.1 | ||
pyyaml>=6.0.1 | ||
scipy>=1.10.1 | ||
streamlit>=0.73.1 | ||
tensorboardx==2.6 | ||
timm>=0.9.2 | ||
tokenizers==0.12.1 | ||
torch>=2.0.1 | ||
torchaudio>=2.0.2 | ||
torchdata==0.6.1 | ||
torchmetrics>=1.0.1 | ||
torchvision>=0.15.2 | ||
tqdm>=4.65.0 | ||
transformers==4.19.1 | ||
triton==2.0.0 | ||
urllib3<1.27,>=1.25.4 | ||
wandb>=0.15.6 | ||
webdataset>=0.2.33 | ||
wheel>=0.41.0 | ||
xformers>=0.0.20 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
from .data import StableDataModuleFromConfig | ||
from .models import AutoencodingEngine, DiffusionEngine | ||
from .util import instantiate_from_config, get_configs_path | ||
from .util import get_configs_path, instantiate_from_config | ||
|
||
__version__ = "0.0.1" | ||
__version__ = "0.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
run