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

Not working on windows ( no readline ) but pyreadline is avalilable #1

Closed
1blackbar opened this issue Aug 18, 2022 · 26 comments
Closed

Comments

@1blackbar
Copy link

Can You make it work with pyreadline ? Its the only one for windows, but when i simply change readline to pyreadline in dream.py then i get atribute errror , pyreadline has not attribute ' read_history_file'
Any way to get it working on win ??

@1blackbar 1blackbar changed the title Not working on windows ( no redline ) but pyreadline is avalilable Not working on windows ( no readline ) but pyreadline is avalilable Aug 18, 2022
@lstein
Copy link
Collaborator

lstein commented Aug 18, 2022

Oh, so sorry. I'll give pyreadline a try but it looks like it isn't actively supported any longer. If it doesn't work I'll simply disable readline functionality (which gives you command-line editing, etc) on systems that don't support GNU readline.

In the meantime, you could just delete all the lines of code that call readline functions and it should "just work" (tm)

@1blackbar
Copy link
Author

I did it , removed history but now im getting error no module names ldm.simplet2i , and it wont run

@lstein
Copy link
Collaborator

lstein commented Aug 18, 2022

Make sure that you are running python from the stable-diffusion directory. scripts and ldm should be subdirectories. Also check that the file ldm/simple2ti.py is present.

I just made a branch in which readline is disabled on machines that don't support it. Try checking out the branch named "noreadline-on-windows" and see if it behaves for you.

@1blackbar
Copy link
Author

1blackbar commented Aug 18, 2022

The file is present, i tried new branch and the issue is still the same, errors out with ldm.simplet2i , this file is not in main repo of original branch so i assume its the one you wrote , maybe its a windows thing that its not working, maybe youd have to load the t2i py file somehow first.
Will this help in any way ? https://stackoverflow.com/questions/37233140/python-module-not-found

@lstein
Copy link
Collaborator

lstein commented Aug 18, 2022

Yes, that's a module I added to the upstream distribution. It is getting loaded in dream.py's main() function, which is an unusual place for it, but I did it so that the help message would print out quickly. Could you try applying the enclosed patch to dream.py? All it does it to move two import statements from main() up to the top where these are usually located.

I'm so sorry for the trouble! I don't have access to a Windows machine with a GPU, so this is all a bit of trial and error
patch.TXT.gz
.

@lstein
Copy link
Collaborator

lstein commented Aug 18, 2022

In case you can't gunzip and apply this patch, here it is in full. Just manually delete the two lines starting with "-" and add the two lines starting with "+" (without the - and + symbols)

--- scripts/dream.py 2022-08-18 15:59:31.607413000 -0400
+++ scripts/dream-test.py 2022-08-18 18:09:01.525402000 -0400
@@ -3,6 +3,8 @@
import shlex
import atexit
import os
+from pytorch_lightning import logging
+from ldm.simplet2i import T2I

 # readline will be disabled on windows systems
 try:
@@ -35,8 +37,6 @@
         setup_readline()
 
     print("* Initializing, be patient...\n")
-    from pytorch_lightning import logging
-    from ldm.simplet2i import T2I
 
     # creating a simple text2image object with a handful of
     # defaults passed on the command line.

@1blackbar
Copy link
Author

1blackbar commented Aug 18, 2022

The thing is i do it in notepad ++ i don have the tools to apply it as a patch
So i should jst move the lines under print to header ?
So its -
import shlex
import atexit
import os
from pytorch_lightning import logging
from ldm.simplet2i import T2I

I did that (nothing else) and its still the same error about no module names ldm.simplet2i

@lstein
Copy link
Collaborator

lstein commented Aug 18, 2022

Ok. I suspect it has something to do with casing on Windows. I'll have to rename the module. It won't take long, but I need to help my wife out with packing for a trip, so look for something later this evening.

@1blackbar
Copy link
Author

Do You know any other quick way to just load mode l once and keep prompting like on discord ?

@lstein
Copy link
Collaborator

lstein commented Aug 18, 2022

Oh, just a thought. Have you tried running the txt2img.py script that's part of the original distrib? If it loads its modules OK, then it's definitely a problem with my code.

@1blackbar
Copy link
Author

yeh the original works without any issues, and img2img works as well so main branch code from original repo is fine over here

@lstein
Copy link
Collaborator

lstein commented Aug 18, 2022

I'm going to convince my son to let me install python on his gaming Windows computer so I can test it out for myself. But this is an absolutely solvable problem. If you would, could you cut and paste the error messages you get when you run dream.py?
Thx.
Also, in the longer term, I'm sure there will be plenty of web and GUI-based Windows packages for you to run locally. I did this just 'cause I can't wait and enjoy a bit of hacking on the side.

@1blackbar
Copy link
Author

1blackbar commented Aug 18, 2022

(ldm) D:\stabot\scripts>python dream.py
Traceback (most recent call last):
File "dream.py", line 7, in
from ldm.simplet2i import T2I
ModuleNotFoundError: No module named 'ldm.simplet2i'

Do You know a way t o change original code so it would save the seed in image filename?

@lstein
Copy link
Collaborator

lstein commented Aug 18, 2022

Sure. Tell me how you want the files named and I can do that.
I'm working on my son's windows machine now and installing all the dependencies. Hopefully will reproduce your problem so I can fix.

@1blackbar
Copy link
Author

1blackbar commented Aug 19, 2022

Great, the names of the prompt and seed at the end, pretty much like on discord would work the best i think to go back and modify the image later keeping same seed
On windows i had to pip some thigns myself cause entire yaml didn get trhough everything in it but its prettu straightforward installation, just opencv must be current one

@lstein
Copy link
Collaborator

lstein commented Aug 19, 2022

Just finished install. I ran into a problem superficially similar to yours with the module not being found, but the easy solution was to replace "python3" with "python"

python3 scripts\dream.py  -- did not work
python  scripts\dream.py -- did work

But I doubt this is your problem because the original scripts are working fine for you. I'm using the Anaconda Powershell Prompt (miniconda3). Is this the same shell you're working with?

@1blackbar
Copy link
Author

1blackbar commented Aug 19, 2022

yes im on miniconda3 and i did used python , so your code works fine on windows over there ?
Maybe i need python in PATH
I cant use the powershell one, i had it closing immediately, some powershell issue mayube

@lstein
Copy link
Collaborator

lstein commented Aug 19, 2022

Conda is supposed to take care of path issues, and if the path was an issue then it wouldn't be able to find ldm.util, which is in the same directory as ldm.simplet2i. Maybe there's something wonky in your directory structure? Do me a favor and cut-and-paste the output of "dir ldm":


(ldm) PS C:\Users\linco\Projects\SD\stable-diffusion> dir ldm

    Directory: C:\Users\linco\Projects\SD\stable-diffusion\ldm

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----        2022-08-18   8:19 PM                data
d-----        2022-08-18   8:19 PM                models
d-----        2022-08-18   8:19 PM                modules
-a----        2022-08-18   8:19 PM           3980 lr_scheduler.py
-a----        2022-08-18   8:19 PM          18097 simplet2i.py
-a----        2022-08-18   8:19 PM           6056 util.py

@1blackbar
Copy link
Author

Windows decided to do updates and its pretty slow now, i did not change anything with the structure, unpacked repo to STABOT folder on D drive and moved model to correct folder , its at 100% so ill post contents asap

@lstein
Copy link
Collaborator

lstein commented Aug 19, 2022

No worries. This is probably not going to be helpful, but I'm running out of ideas. I appreciate your patience.

@1blackbar
Copy link
Author

(base) D:\stabot>dir ldm
Volume in drive D is Ai
Volume Serial Number is 0A27-FD6B

Directory of D:\stabot\ldm

18/08/2022 23:35

.
18/08/2022 23:35 ..
18/08/2022 23:35 data
18/08/2022 22:00 3,882 lr_scheduler.py
18/08/2022 23:35 models
19/08/2022 00:29 modules
18/08/2022 22:00 17,682 simplet2i.py
18/08/2022 22:00 5,855 util.py
3 File(s) 27,419 bytes
5 Dir(s) 43,136,602,112 bytes free

@1blackbar
Copy link
Author

Can You tell what python you have installed ? maybe if ill repeat your installation then it will run

@1blackbar
Copy link
Author

1blackbar commented Aug 19, 2022

OK fixed it! i had to move allyour python scripts to main folder ...

How do i switch to non PLMS sampler ? plms is slower than default one here
Sometimes it kicks me out of the model by sayin range() arg 3 must not be zero

My prompt was - werewolf by frazetta -n 2 -s 57457
Id prefere if it wouldnt kick me out no matter what.

@lstein
Copy link
Collaborator

lstein commented Aug 19, 2022

Wow! I'm so happy you got it figured out. You know, this reminds me that I had the same problem when I first installed the original source code (modules couldn't be found in their subdirectories, but only in main folder). It turned out that the Conda environment was borked. In that case, deleting all Conda's files and rebuilding did the trick.

When you launch the script, pass the option "--sampler ddim" to get the DDIM sampler. Unfortunately the k_lms sampler that the discord bot uses is not part of the upstream package. Presumably they will add it at some point and then I'll merge.

I will fix the code so that the sampler does not terminate the program, but just issues a message and returns to the command prompt. Did you mean -S 57457 in your example? Lowercase -s is number of steps, which would be crazy high.

The next time the plms sampler gives you an error please send the stack trace. I'm going to close the issue now. Feel free to reopen. I moved your request to add seed and prompt to filenames to a different issue tracker (it is issue #2)

@lstein lstein closed this as completed Aug 19, 2022
@DrakeFruit
Copy link

OK fixed it! i had to move allyour python scripts to main folder ...

What do you mean by this? can I get a more step by step on that

lstein pushed a commit that referenced this issue Aug 24, 2022
@BlueAmulet
Copy link
Contributor

BlueAmulet commented Aug 24, 2022

Maybe it would be possible to use prompt_toolkit as an alternative. It works on Linux and Windows and should have all the features of readline, but it is also designed for making full on text user interfaces so it might be a bit overkill. Only ~380KiB though and in both pypi and conda repositories.

afiaka87 pushed a commit to afiaka87/lstein-stable-diffusion that referenced this issue Sep 19, 2022
* Squashed commit of the following:

commit 82d9c25
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:29:11 2022 +0200

    fix branch name in mkdocs-flow

commit 2e276ce
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:28:35 2022 +0200

    fix theme name

commit 2eb77c1
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:14:42 2022 +0200

    fixed some links and formating in main README

commit 66a7152
Author: mauwii <[email protected]>
Date:   Wed Sep 14 08:58:58 2022 +0200

    trigger mkdocs deployment on main

commit 897cc37
Merge: 89da371 3b5a830
Author: Matthias Wild <[email protected]>
Date:   Wed Sep 14 07:51:23 2022 +0200

    Merge pull request invoke-ai#1 from mauwii/mkdocs

    Mkdocs

commit 3b5a830
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:42:56 2022 +0200

    huge update
    I was pretty busy trying to make the Readmes / docs  look good in MkDocs

commit 0b4f5a9
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:41:45 2022 +0200

    update mkdocs config

commit 872172e
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:33:49 2022 +0200

    added the mkdocs-git-revision-date-plugin

commit eac81bf
Author: mauwii <[email protected]>
Date:   Wed Sep 14 06:46:43 2022 +0200

    add  prettier config
    remove markdownlint
    move and rename requirements-mkdocs.txt

commit b36d4cc
Author: mauwii <[email protected]>
Date:   Wed Sep 14 02:06:39 2022 +0200

    add dark theme

commit a14f18f
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:38:02 2022 +0200

    update mkdocs flow and config

commit 2764b48
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:15:33 2022 +0200

    add mkdocs workflow

commit 1bd2252
Author: mauwii <[email protected]>
Date:   Wed Sep 14 00:57:37 2022 +0200
    I already begun with formating /  revising the sites

* change repository in mkdocs config to lstein

* adapt changes from repos main README.md

Co-authored-by: Lincoln Stein <[email protected]>
afiaka87 pushed a commit to afiaka87/lstein-stable-diffusion that referenced this issue Sep 19, 2022
* Squashed commit of the following:

commit 82d9c25
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:29:11 2022 +0200

    fix branch name in mkdocs-flow

commit 2e276ce
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:28:35 2022 +0200

    fix theme name

commit 2eb77c1
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:14:42 2022 +0200

    fixed some links and formating in main README

commit 66a7152
Author: mauwii <[email protected]>
Date:   Wed Sep 14 08:58:58 2022 +0200

    trigger mkdocs deployment on main

commit 897cc37
Merge: 89da371 3b5a830
Author: Matthias Wild <[email protected]>
Date:   Wed Sep 14 07:51:23 2022 +0200

    Merge pull request invoke-ai#1 from mauwii/mkdocs

    Mkdocs

commit 3b5a830
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:42:56 2022 +0200

    huge update
    I was pretty busy trying to make the Readmes / docs  look good in MkDocs

commit 0b4f5a9
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:41:45 2022 +0200

    update mkdocs config

commit 872172e
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:33:49 2022 +0200

    added the mkdocs-git-revision-date-plugin

commit eac81bf
Author: mauwii <[email protected]>
Date:   Wed Sep 14 06:46:43 2022 +0200

    add  prettier config
    remove markdownlint
    move and rename requirements-mkdocs.txt

commit b36d4cc
Author: mauwii <[email protected]>
Date:   Wed Sep 14 02:06:39 2022 +0200

    add dark theme

commit a14f18f
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:38:02 2022 +0200

    update mkdocs flow and config

commit 2764b48
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:15:33 2022 +0200

    add mkdocs workflow

commit 1bd2252
Author: mauwii <[email protected]>
Date:   Wed Sep 14 00:57:37 2022 +0200
    I already begun with formating /  revising the sites

* change repository in mkdocs config to lstein

* adapt changes from repos main README.md

* add PR to mkdocs-flow

* update docs/index.md
- removed unecessary headlines
- added instructions how to host the docs locally
- removed TOC since it is already available via MkDocs
- update appearance of the latest changes

* Update appearance of docs/featuers/changelog

* add me to the contributors
and a small cosmetical change to docs/other/CLI.md

Co-authored-by: Lincoln Stein <[email protected]>
afiaka87 pushed a commit to afiaka87/lstein-stable-diffusion that referenced this issue Sep 19, 2022
* Squashed commit of the following:

commit 82d9c25
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:29:11 2022 +0200

    fix branch name in mkdocs-flow

commit 2e276ce
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:28:35 2022 +0200

    fix theme name

commit 2eb77c1
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:14:42 2022 +0200

    fixed some links and formating in main README

commit 66a7152
Author: mauwii <[email protected]>
Date:   Wed Sep 14 08:58:58 2022 +0200

    trigger mkdocs deployment on main

commit 897cc37
Merge: 89da371 3b5a830
Author: Matthias Wild <[email protected]>
Date:   Wed Sep 14 07:51:23 2022 +0200

    Merge pull request invoke-ai#1 from mauwii/mkdocs

    Mkdocs

commit 3b5a830
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:42:56 2022 +0200

    huge update
    I was pretty busy trying to make the Readmes / docs  look good in MkDocs

commit 0b4f5a9
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:41:45 2022 +0200

    update mkdocs config

commit 872172e
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:33:49 2022 +0200

    added the mkdocs-git-revision-date-plugin

commit eac81bf
Author: mauwii <[email protected]>
Date:   Wed Sep 14 06:46:43 2022 +0200

    add  prettier config
    remove markdownlint
    move and rename requirements-mkdocs.txt

commit b36d4cc
Author: mauwii <[email protected]>
Date:   Wed Sep 14 02:06:39 2022 +0200

    add dark theme

commit a14f18f
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:38:02 2022 +0200

    update mkdocs flow and config

commit 2764b48
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:15:33 2022 +0200

    add mkdocs workflow

commit 1bd2252
Author: mauwii <[email protected]>
Date:   Wed Sep 14 00:57:37 2022 +0200
    I already begun with formating /  revising the sites

* change repository in mkdocs config to lstein

* adapt changes from repos main README.md

Co-authored-by: Lincoln Stein <[email protected]>
afiaka87 pushed a commit to afiaka87/lstein-stable-diffusion that referenced this issue Sep 19, 2022
* Squashed commit of the following:

commit 82d9c25
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:29:11 2022 +0200

    fix branch name in mkdocs-flow

commit 2e276ce
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:28:35 2022 +0200

    fix theme name

commit 2eb77c1
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:14:42 2022 +0200

    fixed some links and formating in main README

commit 66a7152
Author: mauwii <[email protected]>
Date:   Wed Sep 14 08:58:58 2022 +0200

    trigger mkdocs deployment on main

commit 897cc37
Merge: 89da371 3b5a830
Author: Matthias Wild <[email protected]>
Date:   Wed Sep 14 07:51:23 2022 +0200

    Merge pull request invoke-ai#1 from mauwii/mkdocs

    Mkdocs

commit 3b5a830
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:42:56 2022 +0200

    huge update
    I was pretty busy trying to make the Readmes / docs  look good in MkDocs

commit 0b4f5a9
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:41:45 2022 +0200

    update mkdocs config

commit 872172e
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:33:49 2022 +0200

    added the mkdocs-git-revision-date-plugin

commit eac81bf
Author: mauwii <[email protected]>
Date:   Wed Sep 14 06:46:43 2022 +0200

    add  prettier config
    remove markdownlint
    move and rename requirements-mkdocs.txt

commit b36d4cc
Author: mauwii <[email protected]>
Date:   Wed Sep 14 02:06:39 2022 +0200

    add dark theme

commit a14f18f
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:38:02 2022 +0200

    update mkdocs flow and config

commit 2764b48
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:15:33 2022 +0200

    add mkdocs workflow

commit 1bd2252
Author: mauwii <[email protected]>
Date:   Wed Sep 14 00:57:37 2022 +0200
    I already begun with formating /  revising the sites

* change repository in mkdocs config to lstein

* adapt changes from repos main README.md

* add PR to mkdocs-flow

* update docs/index.md
- removed unecessary headlines
- added instructions how to host the docs locally
- removed TOC since it is already available via MkDocs
- update appearance of the latest changes

* Update appearance of docs/featuers/changelog

* add me to the contributors
and a small cosmetical change to docs/other/CLI.md

Co-authored-by: Lincoln Stein <[email protected]>
afiaka87 pushed a commit to afiaka87/lstein-stable-diffusion that referenced this issue Sep 19, 2022
* Squashed commit of the following:

commit 82d9c25
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:29:11 2022 +0200

    fix branch name in mkdocs-flow

commit 2e276ce
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:28:35 2022 +0200

    fix theme name

commit 2eb77c1
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:14:42 2022 +0200

    fixed some links and formating in main README

commit 66a7152
Author: mauwii <[email protected]>
Date:   Wed Sep 14 08:58:58 2022 +0200

    trigger mkdocs deployment on main

commit 897cc37
Merge: 89da371 3b5a830
Author: Matthias Wild <[email protected]>
Date:   Wed Sep 14 07:51:23 2022 +0200

    Merge pull request invoke-ai#1 from mauwii/mkdocs

    Mkdocs

commit 3b5a830
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:42:56 2022 +0200

    huge update
    I was pretty busy trying to make the Readmes / docs  look good in MkDocs

commit 0b4f5a9
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:41:45 2022 +0200

    update mkdocs config

commit 872172e
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:33:49 2022 +0200

    added the mkdocs-git-revision-date-plugin

commit eac81bf
Author: mauwii <[email protected]>
Date:   Wed Sep 14 06:46:43 2022 +0200

    add  prettier config
    remove markdownlint
    move and rename requirements-mkdocs.txt

commit b36d4cc
Author: mauwii <[email protected]>
Date:   Wed Sep 14 02:06:39 2022 +0200

    add dark theme

commit a14f18f
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:38:02 2022 +0200

    update mkdocs flow and config

commit 2764b48
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:15:33 2022 +0200

    add mkdocs workflow

commit 1bd2252
Author: mauwii <[email protected]>
Date:   Wed Sep 14 00:57:37 2022 +0200
    I already begun with formating /  revising the sites

* change repository in mkdocs config to lstein

* adapt changes from repos main README.md

Co-authored-by: Lincoln Stein <[email protected]>
afiaka87 pushed a commit to afiaka87/lstein-stable-diffusion that referenced this issue Sep 19, 2022
* Squashed commit of the following:

commit 82d9c25
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:29:11 2022 +0200

    fix branch name in mkdocs-flow

commit 2e276ce
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:28:35 2022 +0200

    fix theme name

commit 2eb77c1
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:14:42 2022 +0200

    fixed some links and formating in main README

commit 66a7152
Author: mauwii <[email protected]>
Date:   Wed Sep 14 08:58:58 2022 +0200

    trigger mkdocs deployment on main

commit 897cc37
Merge: 89da371 3b5a830
Author: Matthias Wild <[email protected]>
Date:   Wed Sep 14 07:51:23 2022 +0200

    Merge pull request invoke-ai#1 from mauwii/mkdocs

    Mkdocs

commit 3b5a830
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:42:56 2022 +0200

    huge update
    I was pretty busy trying to make the Readmes / docs  look good in MkDocs

commit 0b4f5a9
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:41:45 2022 +0200

    update mkdocs config

commit 872172e
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:33:49 2022 +0200

    added the mkdocs-git-revision-date-plugin

commit eac81bf
Author: mauwii <[email protected]>
Date:   Wed Sep 14 06:46:43 2022 +0200

    add  prettier config
    remove markdownlint
    move and rename requirements-mkdocs.txt

commit b36d4cc
Author: mauwii <[email protected]>
Date:   Wed Sep 14 02:06:39 2022 +0200

    add dark theme

commit a14f18f
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:38:02 2022 +0200

    update mkdocs flow and config

commit 2764b48
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:15:33 2022 +0200

    add mkdocs workflow

commit 1bd2252
Author: mauwii <[email protected]>
Date:   Wed Sep 14 00:57:37 2022 +0200
    I already begun with formating /  revising the sites

* change repository in mkdocs config to lstein

* adapt changes from repos main README.md

* add PR to mkdocs-flow

* update docs/index.md
- removed unecessary headlines
- added instructions how to host the docs locally
- removed TOC since it is already available via MkDocs
- update appearance of the latest changes

* Update appearance of docs/featuers/changelog

* add me to the contributors
and a small cosmetical change to docs/other/CLI.md

Co-authored-by: Lincoln Stein <[email protected]>
afiaka87 pushed a commit to afiaka87/lstein-stable-diffusion that referenced this issue Sep 19, 2022
* Squashed commit of the following:

commit 82d9c25
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:29:11 2022 +0200

    fix branch name in mkdocs-flow

commit 2e276ce
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:28:35 2022 +0200

    fix theme name

commit 2eb77c1
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:14:42 2022 +0200

    fixed some links and formating in main README

commit 66a7152
Author: mauwii <[email protected]>
Date:   Wed Sep 14 08:58:58 2022 +0200

    trigger mkdocs deployment on main

commit 897cc37
Merge: 89da371 3b5a830
Author: Matthias Wild <[email protected]>
Date:   Wed Sep 14 07:51:23 2022 +0200

    Merge pull request invoke-ai#1 from mauwii/mkdocs

    Mkdocs

commit 3b5a830
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:42:56 2022 +0200

    huge update
    I was pretty busy trying to make the Readmes / docs  look good in MkDocs

commit 0b4f5a9
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:41:45 2022 +0200

    update mkdocs config

commit 872172e
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:33:49 2022 +0200

    added the mkdocs-git-revision-date-plugin

commit eac81bf
Author: mauwii <[email protected]>
Date:   Wed Sep 14 06:46:43 2022 +0200

    add  prettier config
    remove markdownlint
    move and rename requirements-mkdocs.txt

commit b36d4cc
Author: mauwii <[email protected]>
Date:   Wed Sep 14 02:06:39 2022 +0200

    add dark theme

commit a14f18f
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:38:02 2022 +0200

    update mkdocs flow and config

commit 2764b48
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:15:33 2022 +0200

    add mkdocs workflow

commit 1bd2252
Author: mauwii <[email protected]>
Date:   Wed Sep 14 00:57:37 2022 +0200
    I already begun with formating /  revising the sites

* change repository in mkdocs config to lstein

* adapt changes from repos main README.md

Co-authored-by: Lincoln Stein <[email protected]>
afiaka87 pushed a commit to afiaka87/lstein-stable-diffusion that referenced this issue Sep 21, 2022
* Squashed commit of the following:

commit 82d9c25
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:29:11 2022 +0200

    fix branch name in mkdocs-flow

commit 2e276ce
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:28:35 2022 +0200

    fix theme name

commit 2eb77c1
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:14:42 2022 +0200

    fixed some links and formating in main README

commit 66a7152
Author: mauwii <[email protected]>
Date:   Wed Sep 14 08:58:58 2022 +0200

    trigger mkdocs deployment on main

commit 897cc37
Merge: 89da371 3b5a830
Author: Matthias Wild <[email protected]>
Date:   Wed Sep 14 07:51:23 2022 +0200

    Merge pull request invoke-ai#1 from mauwii/mkdocs

    Mkdocs

commit 3b5a830
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:42:56 2022 +0200

    huge update
    I was pretty busy trying to make the Readmes / docs  look good in MkDocs

commit 0b4f5a9
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:41:45 2022 +0200

    update mkdocs config

commit 872172e
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:33:49 2022 +0200

    added the mkdocs-git-revision-date-plugin

commit eac81bf
Author: mauwii <[email protected]>
Date:   Wed Sep 14 06:46:43 2022 +0200

    add  prettier config
    remove markdownlint
    move and rename requirements-mkdocs.txt

commit b36d4cc
Author: mauwii <[email protected]>
Date:   Wed Sep 14 02:06:39 2022 +0200

    add dark theme

commit a14f18f
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:38:02 2022 +0200

    update mkdocs flow and config

commit 2764b48
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:15:33 2022 +0200

    add mkdocs workflow

commit 1bd2252
Author: mauwii <[email protected]>
Date:   Wed Sep 14 00:57:37 2022 +0200
    I already begun with formating /  revising the sites

* change repository in mkdocs config to lstein

* adapt changes from repos main README.md

Co-authored-by: Lincoln Stein <[email protected]>
afiaka87 pushed a commit to afiaka87/lstein-stable-diffusion that referenced this issue Sep 21, 2022
* Squashed commit of the following:

commit 82d9c25
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:29:11 2022 +0200

    fix branch name in mkdocs-flow

commit 2e276ce
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:28:35 2022 +0200

    fix theme name

commit 2eb77c1
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:14:42 2022 +0200

    fixed some links and formating in main README

commit 66a7152
Author: mauwii <[email protected]>
Date:   Wed Sep 14 08:58:58 2022 +0200

    trigger mkdocs deployment on main

commit 897cc37
Merge: 89da371 3b5a830
Author: Matthias Wild <[email protected]>
Date:   Wed Sep 14 07:51:23 2022 +0200

    Merge pull request invoke-ai#1 from mauwii/mkdocs

    Mkdocs

commit 3b5a830
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:42:56 2022 +0200

    huge update
    I was pretty busy trying to make the Readmes / docs  look good in MkDocs

commit 0b4f5a9
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:41:45 2022 +0200

    update mkdocs config

commit 872172e
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:33:49 2022 +0200

    added the mkdocs-git-revision-date-plugin

commit eac81bf
Author: mauwii <[email protected]>
Date:   Wed Sep 14 06:46:43 2022 +0200

    add  prettier config
    remove markdownlint
    move and rename requirements-mkdocs.txt

commit b36d4cc
Author: mauwii <[email protected]>
Date:   Wed Sep 14 02:06:39 2022 +0200

    add dark theme

commit a14f18f
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:38:02 2022 +0200

    update mkdocs flow and config

commit 2764b48
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:15:33 2022 +0200

    add mkdocs workflow

commit 1bd2252
Author: mauwii <[email protected]>
Date:   Wed Sep 14 00:57:37 2022 +0200
    I already begun with formating /  revising the sites

* change repository in mkdocs config to lstein

* adapt changes from repos main README.md

* add PR to mkdocs-flow

* update docs/index.md
- removed unecessary headlines
- added instructions how to host the docs locally
- removed TOC since it is already available via MkDocs
- update appearance of the latest changes

* Update appearance of docs/featuers/changelog

* add me to the contributors
and a small cosmetical change to docs/other/CLI.md

Co-authored-by: Lincoln Stein <[email protected]>
afiaka87 pushed a commit to afiaka87/lstein-stable-diffusion that referenced this issue Sep 21, 2022
* Squashed commit of the following:

commit 82d9c25
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:29:11 2022 +0200

    fix branch name in mkdocs-flow

commit 2e276ce
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:28:35 2022 +0200

    fix theme name

commit 2eb77c1
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:14:42 2022 +0200

    fixed some links and formating in main README

commit 66a7152
Author: mauwii <[email protected]>
Date:   Wed Sep 14 08:58:58 2022 +0200

    trigger mkdocs deployment on main

commit 897cc37
Merge: 89da371 3b5a830
Author: Matthias Wild <[email protected]>
Date:   Wed Sep 14 07:51:23 2022 +0200

    Merge pull request invoke-ai#1 from mauwii/mkdocs

    Mkdocs

commit 3b5a830
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:42:56 2022 +0200

    huge update
    I was pretty busy trying to make the Readmes / docs  look good in MkDocs

commit 0b4f5a9
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:41:45 2022 +0200

    update mkdocs config

commit 872172e
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:33:49 2022 +0200

    added the mkdocs-git-revision-date-plugin

commit eac81bf
Author: mauwii <[email protected]>
Date:   Wed Sep 14 06:46:43 2022 +0200

    add  prettier config
    remove markdownlint
    move and rename requirements-mkdocs.txt

commit b36d4cc
Author: mauwii <[email protected]>
Date:   Wed Sep 14 02:06:39 2022 +0200

    add dark theme

commit a14f18f
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:38:02 2022 +0200

    update mkdocs flow and config

commit 2764b48
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:15:33 2022 +0200

    add mkdocs workflow

commit 1bd2252
Author: mauwii <[email protected]>
Date:   Wed Sep 14 00:57:37 2022 +0200
    I already begun with formating /  revising the sites

* change repository in mkdocs config to lstein

* adapt changes from repos main README.md

Co-authored-by: Lincoln Stein <[email protected]>
psychedelicious referenced this issue in psychedelicious/InvokeAI Oct 23, 2022
#1)

* Removed duplicate fix_func for MPS

* add support for loading VAE autoencoders

To add a VAE autoencoder to an existing model:

1. Download the appropriate autoencoder and put it into
   models/ldm/stable-diffusion

   Note that you MUST use a VAE that was written for the
   original CompViz Stable Diffusion codebase. For v1.4,
   that would be the file named vae-ft-mse-840000-ema-pruned.ckpt
   that you can download from https://huggingface.co/stabilityai/sd-vae-ft-mse-original

2. Edit config/models.yaml to contain the following stanza, modifying `weights`
   and `vae` as required to match the weights and vae model file names. There is
   no requirement to rename the VAE file.

~~~
stable-diffusion-1.4:
  weights: models/ldm/stable-diffusion-v1/sd-v1-4.ckpt
  description: Stable Diffusion v1.4
  config: configs/stable-diffusion/v1-inference.yaml
  vae: models/ldm/stable-diffusion-v1/vae-ft-mse-840000-ema-pruned.ckpt
  width: 512
  height: 512
~~~

3. Alternatively from within the `invoke.py` CLI, you may use the command
   `!editmodel stable-diffusion-1.4` to bring up a simple editor that will
   allow you to add the path to the VAE.

4. If you are just installing InvokeAI for the first time, you can also
   use `!import_model models/ldm/stable-diffusion/sd-v1.4.ckpt` instead
   to create the configuration from scratch.

5. That's it!

* ported code refactor changes from PR invoke-ai#1221

- pass a PIL.Image to img2img and inpaint rather than tensor
- To support clipseg, inpaint needs to accept an "L" or "1" format
  mask. Made the appropriate change.

* minor fixes to inpaint code

1. If tensors are passed to inpaint as init_image and/or init_mask, then
   the post-generation image fixup code will be skipped.

2. Post-generation image fixup will work with either a black and white "L"
   or "RGB"  mask, or an "RGBA" mask.

Co-authored-by: wfng92 <[email protected]>
lstein pushed a commit that referenced this issue Oct 29, 2022
lstein pushed a commit that referenced this issue Oct 30, 2022
austinbrown34 pushed a commit to cognidesign/InvokeAI that referenced this issue Dec 30, 2022
austinbrown34 pushed a commit to cognidesign/InvokeAI that referenced this issue Dec 30, 2022
* Squashed commit of the following:

commit 82d9c25
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:29:11 2022 +0200

    fix branch name in mkdocs-flow

commit 2e276ce
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:28:35 2022 +0200

    fix theme name

commit 2eb77c1
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:14:42 2022 +0200

    fixed some links and formating in main README

commit 66a7152
Author: mauwii <[email protected]>
Date:   Wed Sep 14 08:58:58 2022 +0200

    trigger mkdocs deployment on main

commit 897cc37
Merge: 89da371 3b5a830
Author: Matthias Wild <[email protected]>
Date:   Wed Sep 14 07:51:23 2022 +0200

    Merge pull request invoke-ai#1 from mauwii/mkdocs

    Mkdocs

commit 3b5a830
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:42:56 2022 +0200

    huge update
    I was pretty busy trying to make the Readmes / docs  look good in MkDocs

commit 0b4f5a9
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:41:45 2022 +0200

    update mkdocs config

commit 872172e
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:33:49 2022 +0200

    added the mkdocs-git-revision-date-plugin

commit eac81bf
Author: mauwii <[email protected]>
Date:   Wed Sep 14 06:46:43 2022 +0200

    add  prettier config
    remove markdownlint
    move and rename requirements-mkdocs.txt

commit b36d4cc
Author: mauwii <[email protected]>
Date:   Wed Sep 14 02:06:39 2022 +0200

    add dark theme

commit a14f18f
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:38:02 2022 +0200

    update mkdocs flow and config

commit 2764b48
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:15:33 2022 +0200

    add mkdocs workflow

commit 1bd2252
Author: mauwii <[email protected]>
Date:   Wed Sep 14 00:57:37 2022 +0200
    I already begun with formating /  revising the sites

* change repository in mkdocs config to lstein

* adapt changes from repos main README.md

Co-authored-by: Lincoln Stein <[email protected]>
austinbrown34 pushed a commit to cognidesign/InvokeAI that referenced this issue Dec 30, 2022
* Squashed commit of the following:

commit 82d9c25
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:29:11 2022 +0200

    fix branch name in mkdocs-flow

commit 2e276ce
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:28:35 2022 +0200

    fix theme name

commit 2eb77c1
Author: mauwii <[email protected]>
Date:   Wed Sep 14 19:14:42 2022 +0200

    fixed some links and formating in main README

commit 66a7152
Author: mauwii <[email protected]>
Date:   Wed Sep 14 08:58:58 2022 +0200

    trigger mkdocs deployment on main

commit 897cc37
Merge: 89da371 3b5a830
Author: Matthias Wild <[email protected]>
Date:   Wed Sep 14 07:51:23 2022 +0200

    Merge pull request invoke-ai#1 from mauwii/mkdocs

    Mkdocs

commit 3b5a830
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:42:56 2022 +0200

    huge update
    I was pretty busy trying to make the Readmes / docs  look good in MkDocs

commit 0b4f5a9
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:41:45 2022 +0200

    update mkdocs config

commit 872172e
Author: mauwii <[email protected]>
Date:   Wed Sep 14 07:33:49 2022 +0200

    added the mkdocs-git-revision-date-plugin

commit eac81bf
Author: mauwii <[email protected]>
Date:   Wed Sep 14 06:46:43 2022 +0200

    add  prettier config
    remove markdownlint
    move and rename requirements-mkdocs.txt

commit b36d4cc
Author: mauwii <[email protected]>
Date:   Wed Sep 14 02:06:39 2022 +0200

    add dark theme

commit a14f18f
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:38:02 2022 +0200

    update mkdocs flow and config

commit 2764b48
Author: mauwii <[email protected]>
Date:   Wed Sep 14 01:15:33 2022 +0200

    add mkdocs workflow

commit 1bd2252
Author: mauwii <[email protected]>
Date:   Wed Sep 14 00:57:37 2022 +0200
    I already begun with formating /  revising the sites

* change repository in mkdocs config to lstein

* adapt changes from repos main README.md

* add PR to mkdocs-flow

* update docs/index.md
- removed unecessary headlines
- added instructions how to host the docs locally
- removed TOC since it is already available via MkDocs
- update appearance of the latest changes

* Update appearance of docs/featuers/changelog

* add me to the contributors
and a small cosmetical change to docs/other/CLI.md

Co-authored-by: Lincoln Stein <[email protected]>
lstein pushed a commit that referenced this issue Mar 30, 2023
Rewrite lora manager with hooks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants