From 1de5d285541519a61df20bf68cf89a18524c0dee Mon Sep 17 00:00:00 2001 From: Bryce Drennan Date: Sun, 14 Jan 2024 18:49:12 -0800 Subject: [PATCH] test: run some tests on python 3.11 as well (#454) torch doesn't support 3.12 yet --- .github/workflows/ci.yaml | 50 ++++++++++++++++++++++++++++++--------- docs/todo.md | 11 +++++++-- 2 files changed, 48 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f017d0a..3d28fc9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -62,14 +62,19 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10"] + python-version: + - "3.10" + - "3.11" +# torch for python 3.12 is not available yet +# https://github.com/pytorch/pytorch/issues/110436 +# - "3.12" os: ["ubuntu-latest"] steps: - uses: actions/checkout@v3 - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: ${{ matrix.python-version }} cache: pip cache-dependency-path: requirements-dev.txt - name: Install dependencies @@ -96,25 +101,48 @@ jobs: - name: Run mypy run: | make type-check - pkg-smoke-test: + build-wheel: + name: Build Wheel runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4.5.0 + with: + python-version: "3.10" + - name: Install dependencies + run: python -m pip install wheel + - name: Build package + run: python setup.py bdist_wheel + - uses: actions/upload-artifact@v3 + with: + name: wheels + path: dist/*.whl + smoke-test-wheel: + needs: build-wheel + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.10", "3.11"] steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4.5.0 with: - python-version: "3.10" - - name: Install dependencies - run: | - python -m pip install wheel - - name: Build package - run: | - python setup.py sdist bdist_wheel + python-version: ${{ matrix.python-version }} + - uses: actions/download-artifact@v3 + with: + name: wheels + path: dist - name: Install built wheel run: | python -m pip install dist/*.whl - name: Generate an image run: | - imagine fruit --steps 10 --size 496 --seed 1 + imagine fruit --steps 10 --size 512 --seed 1 + - uses: actions/upload-artifact@v3 + with: + name: images + path: outputs/generated/*.jpg publish-docs: diff --git a/docs/todo.md b/docs/todo.md index d842ece..29abca7 100644 --- a/docs/todo.md +++ b/docs/todo.md @@ -26,6 +26,8 @@ - allow specification of filename format - chain multiple operations together imggen => videogen - https://github.com/pallets/click/tree/main/examples/imagepipe + + - - https://huggingface.co/playgroundai/playground-v2-1024px-aesthetic @@ -37,8 +39,11 @@ #### Investigate + - use fancy noise https://github.com/Extraltodeus/noise_latent_perlinpinpin + - use latent upscaler https://github.com/city96/SD-Latent-Upscaler + - use latent interposer https://github.com/city96/SD-Latent-Interposer/tree/main + - https://github.com/madebyollin/taesd - textdiffusers https://jingyechen.github.io/textdiffuser2/ - - Scalecrafter https://yingqinghe.github.io/scalecrafter/ - Fast diffusion with LCM Lora https://huggingface.co/latent-consistency/lcm-lora-sdv1-5/tree/main - 3d diffusion https://huggingface.co/stabilityai/stable-zero123 - magic animate @@ -185,4 +190,6 @@ - [ColoassalAI](https://github.com/hpcaitech/ColossalAI/tree/main/examples/images/diffusion) - almost got it working but it's not easy enough to install to merit inclusion in imaginairy. We should check back in on this. - Xformers - Deepspeed - - \ No newline at end of file + +## Decided against + - Scalecrafter https://yingqinghe.github.io/scalecrafter/ - doesn't look any better than img2img \ No newline at end of file