Giter VIP home page Giter VIP logo

stable-diffusion-backend's Introduction

Backend for my Stable diffusion project(s)

Might be useful for others but at least it's useful for me.

  • Only supports txt2img right now.
  • Uses AUTOMATIC1111 but requires two custom scripts
    • Located in src/process/implementations/automatic1111_scripts

How to run

  • You need Node (Tested with 16.17.1) installed
  • in project root run:
  • npm install
  • npm start

stable-diffusion-backend's People

Contributors

amotile 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

Watchers

 avatar  avatar

stable-diffusion-backend's Issues

Question about a similar feature in the webui

Hi, I was wondering what the concrete difference between the prompt blending script and the AND keyword was in the webui.

Also, sorry if this is the wrong place to ask!
I'm just wondering how this script differs from this similar feature in the webui, and I'm not sure where to ask other than in the issues themselves.

Prompt Blending Syntax Conflicts with Dynamic Prompts

The {concept1|concept2} syntax is also used by Dynamic Prompts. Changing just the separator in the code does not work as Dynamic Prompts seems to strip the curly brackets, resulting in the blending not working. Changing the brackets to < and >and the separator to & works, however I can't tell what the rest of the code is doing. You have a function lower down that refers to the specific brackets directly.

Output of {cat|dog} with Blending
grid-0000

Output without Blending (same seed):
grid-0001

Output with Blending AND Dynamic Prompts enabled (same seed):
grid-0003

No longer works.

I've been using this script daily for months, but as of 31 Aug 2023 it now breaks Automatic1111 and prevents any image generation from happening.

If this script is in the scripts folder, it is now no longer possible to generate any images without getting an error about the number of arguments being passed to the hijacked_get_learned_conditioning function in the script.

Removing the script and restarting Automatic1111 returns everything to normal but of course the functionality that this script offered is no longer available.

I hope this can be resolved as I will severely miss the functionality that this script added.

Completely broken with latest AUTOMATIC1111 commit

Hey amotile, appreciate everything you're doing here!

Did a little looking, appears to be due to Line 57 in /src/process/implementations/automatic1111.ts

Some change in auto1111's config for components and plural seeds doesn't appear to be present anymore? Haven't worked out what the new approach is supposed to be yet but wanted to raise the flag on it because it's completely broken as of now (even if you try to work around not having seeds, requests fail).

Error on npm start for backend.

Error: No img2img function found at /home/subpanic/repo/stable-diffusion-backend/src/process/implementations/automatic1111.ts:69:15 at step (/home/subpanic/repo/stable-diffusion-backend/src/process/implementations/automatic1111.ts:33:23) at Object.next (/home/subpanic/repo/stable-diffusion-backend/src/process/implementations/automatic1111.ts:14:53) at fulfilled (/home/subpanic/repo/stable-diffusion-backend/src/process/implementations/automatic1111.ts:5:58) at processTicksAndRejections (node:internal/process/task_queues:96:5)

Syntax error

Error loading script: prompt_blending.py
Traceback (most recent call last):
File "C:\stable-diffusion\stable-diffusion-webui\modules\scripts.py", line 169, in load_scripts
compiled = compile(text, scriptfile.path, 'exec')
File "C:\stable-diffusion\stable-diffusion-webui\scripts\prompt_blending.py", line 8

^
SyntaxError: invalid syntax

:'(

I live in fear of the day that prompt blending stops working due to an Automatic1111 update.

I have confirmed that Prompt Blending is an important feature to have as it is meaningfully different than prompt editing.

I am scared that this feature may go stale in the future (it still works perfectly right now).

I want you to know that despite the paltry star count (compared to Automatic) that this technique is COOL, and you're the only one keeping it alive right now.

Please don't leave us. Please don't get rid of this project! It's an important feature and I cannot believe that Automatic1111 would be dimwitted enough to claim that it should stay as an extension

The "Prompt Blending" script is not displayed in the dropdown list of SDWUI Scripts

I downloaded both scripts "Advanced Seed Blending" and "Prompt Blending" listed on the AUTOMATIC1111 Stable Diffusion Web UI repository from this repository, and copied them inside the \scripts directory of the SD Web UI local installation folder on my notebook, and noticed that the "Prompt Blending" script is not being displayed in the Scripts dropdown list. I checked if there was a sort of "limit" in the number of external scripts loadable by SDWUI removing all the others I installed beside the default ones, but it didn't worked. Perhaps I am doing something wrong, or I haven't correctly understood where to find it. Regards.

Bug: Prompt blending conflicts with prompt editing

When using both prompt blending and prompt editing in the same prompt, then prompt editing no longer works.

Example:
[cat:frog:0.5] in the style of {rembrandt|artgerm}

When the {|} syntax is present in the prompt, the [::] and [|] syntaxes stop working. I wonder if it would at all be possible to look into this? I use this script all the time, and having both features work at the same time would be great!

Doesn't work with SDXL :(

This one is one of my favorite extensions! I use it to mix colors usually in a cool way. But doesn't seem to work with SDXL 0.9 :(
Could you fix it please? I think, this script is very underscored. People don't realize it's full power. You can use it instead of the attention change, you can even exaggerate some word by using {word| :-0.2} tricks!
Please, fix 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.