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

Config/scripting support #71

Closed
JohannesGaessler opened this issue Sep 5, 2022 · 9 comments
Closed

Config/scripting support #71

JohannesGaessler opened this issue Sep 5, 2022 · 9 comments

Comments

@JohannesGaessler
Copy link
Contributor

I am currently investigating the effects of brackets and exclamation marks:
/~https://github.com/JohannesGaessler/stable-diffusion-tools/tree/master/emphasis

I will compare the results against those obtained with this fork where brackets are explicitly processed.
To this end I will not be using a GUI of any kind since GUI interactions are generally not recorded and risk human error.
On the hlky fork I implemented a --cli argument which reads in a YAML config file and automatically processes prompts without further human interaction (the contents of the YAML file are simply passed on to the txt2img function).
Would such functionality be desirable on this fork?
If yes, I will make a PR.
If no, I will simply maintain the changes in a private repository.
I have no problem using JSON instead of YAML if desirable (I thought I had seen you post a screenshot of a JSON file from your repository before but I could be mistaken).

An alternative approach to a config file would be to specify the functionality that I need in an external Python script (would probably need very slight modifications of the existing files).

@AUTOMATIC1111
Copy link
Owner

There's this.

firefox_PyQMMnbtIx

No need for poor man's scripting with a data serialization language when you can use proper python

@JohannesGaessler
Copy link
Contributor Author

I'm aware of the feature.
It does not suit my needs/workflow.
I will not make a PR for config files then.

@AUTOMATIC1111
Copy link
Owner

What kind of workflow is that? You just wrote that you'd be OK with running your script. You literally can run your script in one kine by just importing it the script field.

@JohannesGaessler
Copy link
Contributor Author

I need to be able to automatically process prompts without any human interaction at all.
If I need to paste code in a GUI and press the generate button that does not work for me.
Basically I need to be able to write an external bash/Python script that does a bunch of arbitrary things, one of which is the generation of images from a set of prompts.

@AUTOMATIC1111
Copy link
Owner

Which is what you can do from the thing in the UI. You can process as many pictures from wherever you want, ignoring UI entirely. It's just a place to launch your custom code from.

@JohannesGaessler
Copy link
Contributor Author

And then any change in parameters or functionality does not get logged to my bash history so I cannot reliably reconstruct what exactly I did if necessary.

@AUTOMATIC1111
Copy link
Owner

did you consider writing parameters to file

@JohannesGaessler
Copy link
Contributor Author

Yes, but I would want several files for several sets of parameters.
If the specific file that I read from isn't logged this just pushes the problem back a step.

@AUTOMATIC1111
Copy link
Owner

I don't understand this. I don't understand not being able to write to multiple files. I don't understand thinking that things just randomly won't be logged for no reason. I do understand that you don't want a scripting support so I guess we can stop this exchange.

@ahgsql ahgsql mentioned this issue Sep 25, 2022
6 tasks
nne998 pushed a commit to fjteam/stable-diffusion-webui that referenced this issue Sep 26, 2023
nne998 pushed a commit to fjteam/stable-diffusion-webui that referenced this issue Sep 26, 2023
Atry pushed a commit to Atry/stable-diffusion-webui that referenced this issue Jul 9, 2024
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

2 participants