Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: run some tests on python 3.11 as well #454

Merged
merged 3 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/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:
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