InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

Ability to use the terminal while the webui is running

Open 19wolf opened this issue 3 years ago • 7 comments

Is your feature request related to a problem? Please describe. Until all the features available in terminal are usable in webui, I'd like to be able to use the terminal while the webui is running.

Describe the solution you'd like I'd like to be able to use the terminal while the webui is running.

Describe alternatives you've considered Running two instances is an option but requires extra system resources and can cause conflicts if both try to use the gpu at the same time

Additional context Perhaps a way to enter terminal commands in the webui directly is another option

19wolf avatar Oct 16 '22 12:10 19wolf

Entering invoke REPL commands in the web UI would be pretty cool and, I believe, fairly straightforward to implement - we can parse the command and send it to the generator just like we do currently with the web ui parameters. Error handling could be tricky, though...

psychedelicious avatar Oct 17 '22 02:10 psychedelicious

Have been thinking about this, and if we do it, I think the one "UX" feature we'd want to include would be a command "starter" - Basically, copy whatever settings/info I have in the WebUI into the CLI command, which I can then edit/add to.

Very useful in cases where a CLI feature hasn't been made available in the WebGUI yet, and prevents having to retype everything

hipsterusername avatar Oct 17 '22 16:10 hipsterusername

I found an older issue #543 with a similar request and a good idea - add a checkbox that runs the prompt as a REPL command.

Unfortunately, if we just parsed the REPL command and passed the parameters to the web UI's server, we would still be limited to features supported by the web UI. So I think making this work in a useful way (i.e. exposing CLI-only features on the UI) this is a bit trickier than I imagined initially.

psychedelicious avatar Oct 20 '22 11:10 psychedelicious

It doesn't necessarily need to be available in the webui, though I understand why we'd want that. But my original thought was to just have the command line invoke> remain available in the terminal while the webui is running

19wolf avatar Oct 20 '22 12:10 19wolf

Right. I'm going to take the coward's way out and say this is beyond the scope of the current server, and ask @Kyle0654 to consider this for the WIP backend.

psychedelicious avatar Oct 20 '22 13:10 psychedelicious

I've considered it 🙂. I think it would end up being a CLI that uses the web API though, otherwise we risk service conflicts in the new architecture.

Kyle0654 avatar Oct 20 '22 15:10 Kyle0654

I would like to use the Invoke AI model as a serving for API calls - so this feature would be super helpful to interact with the backend.

vionwinnie avatar Dec 14 '22 22:12 vionwinnie