GithubHelp home page GithubHelp logo

capsize-games / airunner Goto Github PK

View Code? Open in Web Editor NEW
192.0 5.0 16.0 9.98 MB

Stable Diffusion and LLMs offline on your own hardware

Home Page: https://capsizegames.itch.io/ai-runner

License: GNU General Public License v3.0

Python 99.04% Dockerfile 0.53% Shell 0.30% Batchfile 0.13%
ai ai-art art asset-generator draw drawing drawing-app illustration python stable-diffusion

airunner's People

Contributors

dependabot[bot] avatar gitcodeboi1654 avatar w4ffl35 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

airunner's Issues

add windows build to cloud

Add the files required to build for windows on docker in the cloud.

These files reside in a separate repo and must be combined with airunner just as I did with the Ubuntu build files.

Layer color

The green layer color is ugly. Additionally the text is hard to see when the layer is selected.

Layer spacing

Layers should not have large gabs between them. As more layers are added the gaps close. Potential solution is using a vertical spacer in the template but since the layers are in a scroll frame that might not work.

Failed to run airunner from pre-built version (from Ubuntu 20.04)

Describe the bug
I downloaded the latest version of airunner as a zip file from https://capsizegames.itch.io/ai-runner extracted it, executed airunner and it crashed with:

[18042] PyInstaller Bootloader 5.x
[18042] LOADER: executable is /home/sam/Downloads/ai-runner-ubuntu/airunner
[18042] LOADER: homepath is /home/sam/Downloads/ai-runner-ubuntu
[18042] LOADER: _MEIPASS2 is NULL
[18042] LOADER: archivename is /home/sam/Downloads/ai-runner-ubuntu/airunner
[18042] LOADER: Cookie found at offset 0x29E9FC0
[18042] LOADER: No need to extract files to run; setting up environment and restarting bootloader...
[18042] LOADER: LD_LIBRARY_PATH=/home/sam/Downloads/ai-runner-ubuntu
[18042] PyInstaller Bootloader 5.x
[18042] LOADER: executable is /home/sam/Downloads/ai-runner-ubuntu/airunner
[18042] LOADER: homepath is /home/sam/Downloads/ai-runner-ubuntu
[18042] LOADER: _MEIPASS2 is /home/sam/Downloads/ai-runner-ubuntu
[18042] LOADER: archivename is /home/sam/Downloads/ai-runner-ubuntu/airunner
[18042] LOADER: Cookie found at offset 0x29E9FC0
[18042] LOADER: Already in the child - running user's code.
[18042] LOADER: Python library: /home/sam/Downloads/ai-runner-ubuntu/libpython3.10.so.1.0
[18042] Error loading Python lib '/home/sam/Downloads/ai-runner-ubuntu/libpython3.10.so.1.0': dlopen: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /home/sam/Downloads/ai-runner-ubuntu/libpython3.10.so.1.0)

To Reproduce
Steps to reproduce the behavior:
Download ai-runner-ubuntu.zip (Version 1.8.17).
Unzip: unzip -d ai-runner-ubuntu ai-runner-ubuntu.zip
Execute: cd ai-runner-ubuntu && ./airunner

Expected behavior
I guess I expected the app to open!

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser: Irrelevant
  • Version: Version 1.8.17 of airunner

Additional context
I'll debug a bit, see if I can patch it up. Otherwise I'll try from source.

Great work @w4ffl35 , though!

Audio Generation

  • Add tab for audio generation
  • Generate and save in runner
  • Play audio in client

CivitAI downloader

  • Ability to paste a link and download a model from CivitAI
  • Embeddings download handling
  • LoRA download handling

error when exporting JPG files

error encountered when exporting to jpg format:

OSError: cannot write mode RGBA as JPEG

convert image to RGB prior to exporting JPEG.

fix the build

Currently the build process is cumbersome with two docker images (one for each os supported). No artifact is produced from the build (build script pushes to docker after building).
Ideally we would have 2 stages

  1. Build code and produce artifact
  2. Download artifact and deploy to itch.io

Currently the github action fails.

  1. Windows reports running out of disc space - splitting into two separate actions might prevent this error
  2. Linux is able to pull the docker container and build, but fails to upload the artifact

It may be that the artifact is too large and we must simply push to docker from within the image as was the case with v1.8.21


Thus far all efforts have resulted in a broken build. Next step is to

  1. Separate os actions (build Linux and win separately)
  2. Use butler from within docker rather than producing an artifact

This is similar to the previous setup, the difference being that we have a single docker image.

If windows continues to time out we may need to produce two docker containers after all.

Add txt2vid

  • add new tab for txt2vid
  • generate video and save in runner
  • display video in client

add the pypi build files

Prior to adding the docker build workflow to github actions yesterday I had a pypi build action which would checkout the latest code, build it and push to pypi. I deleted it because the docker image required lots of releasing and deleting of the same version. Rather than constantly trying to push to pypi during this, I deleted the action file with the intent to restore it after getting docker finalized.

Program crashed after installing lora, and also deleted my AI model

Describe the bug
I downloaded the Stable Diffusion 1.4 model and put it in a completely separate directory to AI runner. Did a couple of generations, then installed the Lora extension.

Next time I tried to start AI runner, it would run through the startup script, but die before the program launched. I was not able to capture the console log when it was dying, but I did see an orange square drawn around a segment of code before it died.

After multiple attempts at removing the AI Runner directory, and manually cleaning up any files I could fine under C:\User, I finally managed to get AI runner started again.

I am running on Windows 10, running AI Runner from one of my secondary NVME drives.

ModuleNotFoundError: No module named 'diffusers'

Describe the bug
When trying to run from source (in a docker environment with ubuntu 22.04, which I'll share shortly) seems like aihandler is missing to declare a dependency on diffusers as I get the error:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/aihandler/runner.py", line 1162, in generator_sample
    self._generate(data, image_var=image_var)
  File "/usr/local/lib/python3.10/dist-packages/aihandler/runner.py", line 1077, in _generate
    self._initialize()
  File "/usr/local/lib/python3.10/dist-packages/aihandler/runner.py", line 636, in _initialize
    self._load_model()
  File "/usr/local/lib/python3.10/dist-packages/aihandler/runner.py", line 486, in _load_model
    "scheduler": self.scheduler,
  File "/usr/local/lib/python3.10/dist-packages/aihandler/runner.py", line 166, in scheduler
    import diffusers
ModuleNotFoundError: No module named 'diffusers'

To Reproduce
TODO

Expected behavior
Use the app normally :)

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu 20.04 running a docker with ubuntu 22.04
  • Version main branch

Line drawing deletion bug

steps to reproduce

  1. draw lines
  2. create line layer
  3. draw lines on new layer
  4. move top layer down
  5. delete both layers
Error caught was: 'NoneType' object has no attribute 'origin' - 51
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ in paintEvent:152                                                                                │
│                                                                                                  │
│ in draw:62                                                                                       │
│                                                                                                  │
│ in current_layer:33                                                                              │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
IndexError: list index out of range
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.