#Bash-based TUI for the Invoke.sh file

49 messages ยท Page 1 of 1 (latest)

thin trout
#

So I thought that the bash script might could use a nice touch up to look a bit prettier for folks who wanna use it. The TUI uses dialog, which should be a common install on most Linux distros. If it's not installed, it falls back to the original, text-based interface. The TUI can use the arrow keys or entered numbers to navigate the menu. It also seamlessly transitions back to the TUI once a user quits out of a running Invoke session. There's still some touches I wanna make to help clean it up some, but I'm curious what others think of this initial TUI for the bash launch script? Definitely want to hear feedback on this, and if y'all like it enough, I'll make a PR for it once it's clean and ready! ๐Ÿ™‚

#

Here is the TUI script. It's just the original launch script with the appropriate dialog scripts added onto it

#

Tagging @supple lagoon for this to see what he things of it, also wanna hear from other linux users if it works as it should.

supple lagoon
#

This looks really nice. Is there something similar that can be done in the .bat script?

thin trout
#

I haven't used windows in any meaningful capacity in.... Years

supple lagoon
#

No worries. I've folded your TUI into 2.3.3-rc1 and given you credit for the work.

thin trout
#

Though I just about am now!

#

How do you like this @supple lagoon ๐Ÿ™‚

thin trout
#

Ok, now I think I'm done. Here are the two files, one is the invoke.sh file, the other is a .dialogrc file, which controls the colors of the dialog TUI, that needs to be included in the same directory as the invoke.sh file.

#

And that should do it! Hope you like the color scheme I chose for it, tried to go for the purple and gold color scheme that InvokeAI uses in the WebUI ๐Ÿ˜„
(I can happily edit it to be other colors too!)

supple lagoon
#

Thanks for doing this. I'm red-green colorblind and am not the best judge of color schemes, but I'll fold these in.

thin trout
thin trout
supple lagoon
#

When might something go wrong with dialog?

thin trout
#

IDK, but since I can't anticipate how some Linux user (probably an Arch user if I'm gonna be blunt xD) might mess up their dialog install, I made a way to let users disable it if they want to

#

I've finished up now with integrating everything. I got the program down to a single while loop too, which helps simplify it further

#

Here's the two files to be uploaded! .dialogrc didn't change, so should just need to copy the new stuff from the GUI fill to the invoke.sh file. I cleaned up a few other things, changed echo to printf as that's now considered the (albeit nominally) better option to use. Commented stuff, and generally formatted everything to be a bit cleaner ๐Ÿ™‚

thin trout
#

Be curious how you like it! ๐Ÿ˜„

supple lagoon
#

Thanks! I'll take it for a spin. One challenge I have is figuring out how to get these improvements into an update. The updater only updates the python libraries and not the shell script or other files in the invokeai directory.

supple lagoon
#

I'm afraid that the color scheme is very hard for me to use due to my colorblindness (8% of European males). I'm going to change to amber on black if that's OK with you. This is the same color scheme used by the code and model installers.

thin trout
thin trout
thin trout
#

@supple lagoon How does this look?

#

I can make the background black too. It'll just blend in with the window if that helps visibility for you

#

Let me know which you like better

thin trout
# thin trout

I actually kinda like the all black and gold one best, but I'm fine with either. Just let me know which you like and I'll pass on the .dialogrc file to you

thin trout
#

Here is the updated .dialogrc file for you @supple lagoon. It's with the black and gold scheme you see in the second image. Let me know if that's easier for you to see ๐Ÿ™‚

supple lagoon
thin trout
#

Awesome! Look forward to seeing this in the next update ๐Ÿ™‚

supple lagoon
thin trout
#

Awesome, I'll give it a spin and see how it works ๐Ÿ™‚

supple lagoon
#

Any luck?

thin trout
#

Heh, I uhh... Totally forgot... ๐Ÿ˜ตโ€๐Ÿ’ซ

#

I'll try it out later this evening and let you know

thin trout
# supple lagoon Any luck?

I see the zip with the source code, but is that was the pre-release pulls from? Not sure how to install the rc6 otherwise just from the zip file? x3

supple lagoon
#

Hi Josh, good question! Two methods. First, you ought to be able to use the updater (invoke.sh option 9) to update to the pre-release (it will version option 1). Then, the next time you run the web or CLI client, it will notice that invoke.sh is not up to date and replace the shell script with the TUI version. Alternatively, you download and install the InvokeAI-Installer.zip installer and give it the OK to reinstall into your invokeai directory.