Comments (1)
A preffered fix would still include a preset to be used across tabs rather than isolating them.
So I would need to create a filter that checks if value is in current options of dropdown, and if it does not
exist, then pass in default value component would have during load time.
To express this:
if loadingvalue not in component.choices then use component.value (value is default value)
There will remain an issue where saving in one tab does not populate it in the other unless a restart occurs.
This is because the application loads the script twice. Once for txt2img and again for img2img.
You may have noticed that sometimes errors show up twice, or print/echo to console repeats.
This means that in order for the other tab to see the preset, I would either need to:
- seek for the dropdown for the other component through parent child tree ๐
- add an automatic refresh to both dropdowns; potential ways
- ๐ tab change
- ๐ automatic refresh on dropdown change
- ๐ targeting elem id (likely scenario; dependent on if after_components() method can hand-off components from scripts that initialize afterwards; affects if txt2img can see img2img through component mapping; can use js if necessary)
- refresh button ๐
โ ๏ธ give up and go with the next iteration of having different presets per tab
from sd_web_ui_preset_utils.
Related Issues (20)
- Checking for Updates in Extensions tab resets all user presets HOT 3
- possible to move it to top at Quick Settings or bottom of the Image Gallery? HOT 4
- Current A1111 UI layout renamed "Sampling Steps" to "Sampling steps" (case change) HOT 3
- Cannot boot after install HOT 1
- Sorting the list HOT 3
- is this working as of the newest update?
- Selecting a preset don't change Hires fix toggle HOT 4
- On startup make dropdownlist expanded by default
- suggestion maybe. scan users' addon and setting, save it to the preset
- [BUG]: value error HOT 1
- Save settings without saving seed HOT 1
- No working after updated Stable Diffusion HOT 10
- can't save option in script HOT 1
- After update Stable Diffusion the addon dont work anymore! HOT 1
- The plugin has expired๏ผRequest updates HOT 2
- Thank you for the update. HOT 2
- "Utils" panel dont show in WebUI HOT 2
- Dont save Controlnet, Tiled Diffusion, Tiled Vae HOT 1
- How do you delete a preset HOT 1
- error occur with stable diffusion latest update HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sd_web_ui_preset_utils.