Comments (5)
Change the highlighted line in your screenshot to this:
enabled = gr.Checkbox(value=False, label="Enable Dynamic Thresholding (CFG Scale Fix)", elem_classes=["dynthres-enabled"], elem_id="dynamic_thresholding_enable")
use dynamic_thresholding_enable
to target it.
from config-presets.
This is the only part of the code that I can find that specifically references a checkbox element.
from config-presets.
It looks like that exension author has not included an ID for that checkbox. elem_id
is the attribute you are looking for in the code, elem_classes
is just for a CSS class. You can either ask the extension author to include an elem_id
attribute for that checkbox, or you can edit that code and add elem_id="whatever_id_name_here"
so you can target it.
from config-presets.
It looks like that exension author has not included an ID for that checkbox.
elem_id
is the attribute you are looking for in the code,elem_classes
is just for a CSS class. You can either ask the extension author to include anelem_id
attribute for that checkbox, or you can edit that code and addelem_id="whatever_id_name_here"
so you can target it.
Thanks. That's what I figured. I honestly wouldn't even know where to begin as far as adding the "target" myself. I'll ask the creator if they'd be willing to do that. Maybe try my hand at editing if I'm feeling brave.
Thanks again for the fast reply.
from config-presets.
You are a God amongst mortals!
Thank you. I was just looking up how to do this and you swooped in for the win.
from config-presets.
Related Issues (20)
- update my stable diffusion doesn't appear anymore HOT 2
- aDetailer Section Now Broken - Extension Load Fails HOT 6
- Tiled Diffusion - Tiled VAE elements changed IDs HOT 1
- Custom Options not applying HOT 4
- Feature request: Override setting field. HOT 1
- Confused on how to populate aDetailer fields in the add preset feature. HOT 4
- Feature Request : Ability to save Adetailer Separate Checkpoint HOT 1
- How do I save prompt and neg prompts? HOT 6
- [BUG] I get ERROR icons when saving sometimes AUTOMATIC1111 v1.7.0 HOT 9
- Uncommenting controlnet components breaks extension HOT 4
- Config Presets not showing on img2img tab HOT 6
- Component with id 2096 not a valid input component. HOT 1
- The 4/13/2024 update breaks compatibility with Forge UI HOT 3
- Incompatibility with Tiled Diffusion HOT 4
- [Feature] Only show Presets related to selected model HOT 1
- bug: when click edit preset, should only checked saved item
- Not fully compatible with Firefox HOT 1
- Support for ADetailer v24.6.0 HOT 10
- Disappeared tab HOT 2
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 config-presets.