Skip to content

Commit

Permalink
test: run some tests on python 3.11 as well (#454)
Browse files Browse the repository at this point in the history
torch doesn't support 3.12 yet
  • Loading branch information
brycedrennan authored Jan 15, 2024
1 parent 601a112 commit 1de5d28
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 13 deletions.
50 changes: 39 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/[email protected]
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/[email protected]
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:
Expand Down
11 changes: 9 additions & 2 deletions docs/todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
-

## Decided against
- Scalecrafter https://yingqinghe.github.io/scalecrafter/ - doesn't look any better than img2img

0 comments on commit 1de5d28

Please sign in to comment.