60 Commits

Author SHA1 Message Date
uorufu
b051226b95 Update config_presets.py (#95)
* Update config_presets.py

Adding CMD flag to change config preset directory.

`--configpresets-dir "C:\Path\To\configpresets"`

Useful for sharing config presets when using multiple instances of automatic1111 or forge.

* Create preload.py

* Update config_presets.py

Fixed

* added error handling for --configpresets-dir

---------

Co-authored-by: Zyin055 <5003647+Zyin055@users.noreply.github.com>
2024-10-18 14:26:19 -05:00
Zyin055
b154e2d7d5 added IDs for img2img soft inpainting
#90
2024-10-14 13:49:31 -05:00
Zyin055
92955772d5 Forge control_step_slider
added controlnet_control_step_slider field for Forge to custom tracked components, which replaces start_control_step_slider and ending_control_step_slider in the extension's verion
#91
2024-10-13 11:28:06 -05:00
Zyin055
c315d2e9aa Update config_presets.py
added #txt2img_seed to txt2img custom tracked components
#93
2024-10-13 10:56:39 -05:00
Zyin055
014daacab8 additions for Forge's Flux model support
-added new presets for Flux.1 Dev/Schnell
-tweaked existing presets
-added support for Forge's Distilled CFG scale (for Flux models): txt2img_distilled_cfg_scale
2024-08-15 13:13:07 -05:00
Zyin055
2d7c381dab ADetailer hidden enabled checkbox
-ADetailer accordion has a hidden checkbox, just like the hires fix accordion.
#86
2024-06-18 22:47:56 -05:00
Zyin055
6254faa81a fix for ADetailer's update
-Added synonyms for ADetailer's new enable checkbox which was added on 6/01/24
-Added ADetailer new components to custom-tracked-components.txt that have been added to ADetailer in the past ~year
#86
2024-06-18 20:10:37 -05:00
Zyin055
19ca61676b Update config_presets.py
update IDs for Tiled Diffusion extension, added synonyms
#81
2024-05-08 17:18:28 -05:00
Zyin055
268da434ef fixed backwards compatibility issue
-set the new scheduler component from A1111 1.9.0 as optional
#80
2024-04-14 10:17:36 -05:00
Zyin055
54904a8f88 A1111 1.9.0 update
-updated for A1111 1.9.0
-add the new "txt2img_scheduler" component
-pre-existing config files now have bad sampler names and will need to be manually fixed
2024-04-13 18:32:08 -05:00
Zyin055
99a8476c37 add synonyms for multidiffusion upscaler
#78 MD-i2i-enable -> MDV-i2i-enabled
2024-04-03 11:16:56 -05:00
Zyin055
58d6cc3234 improved config file error handling
when the user manually edits the config json file and makes a syntax error, show them the error message so they can fix it, and don't replace all their presets with the defaults when this happens
2024-04-02 13:06:29 -05:00
Zyin055
6675175d4e smaller buttons, added refresh button, updated presets
-made the buttons smaller, fixes alignment issue
-added a refresh button
-updated default config presets
2024-03-28 16:17:36 -05:00
Zyin055
ab2ff579d6 fix for "Use same sampler" sampler dropdown value
The hr_sampler component dropdown has a value called "Use same sampler" which needed a special case for in order to not error. #75
2024-02-05 11:41:13 -06:00
Zyin055
f7d5a7a9a8 fix save preset bug, JSON checks
-fixed issue where sampler was returned as an int (index) instead of a str (name) before A1111 1.6.0(?) #63
-added check for malformed JSON in config file, which could prevent the Web UI from booting up
-added `controlnet_type_filter_radio` to default custom tracked components config file #70
2023-11-18 18:43:24 -06:00
Zyin055
0ff35ea638 multidiffusion-upscaler (Tiled Diffusion, Tiled VAE) changed IDs
-updated default custom tracked component IDs
-added synonyms
#69
2023-10-20 20:16:38 -05:00
Zyin055
74d21bae62 ADetailer extension changed IDs _2nd
Changed ADetailer _2nd inpaint IDs
added synonym: script_txt2img_adetailer_ad_inpaint_full_res_2nd -> script_txt2img_adetailer_ad_inpaint_only_masked_2nd
added synonym: script_txt2img_adetailer_ad_inpaint_full_res_padding_2nd -> script_txt2img_adetailer_ad_inpaint_only_masked_padding_2nd
2023-10-14 12:27:07 -05:00
Zyin055
d3ecee690c ADetailer extension changed IDs
Updated ADetailer inpaint IDs which they changed on 6/04/23
added synonym: ad_inpaint_full_res -> ad_inpaint_only_masked
added synonym: ad_inpaint_full_res_padding -> ad_inpaint_only_masked_padding
2023-10-14 12:21:37 -05:00
wywywywy
b82ce634a2 feat: add "Reapply" button (#64)
* feat: add reapply button

* revert: ui rework

* chore: white space fixes

* fix: adjusted button width
2023-09-16 20:57:24 -05:00
Zyin055
b80ee91168 Merge branch 'main' of https://github.com/Zyin055/Config-Presets 2023-09-10 23:44:34 -05:00
Zyin055
305c23a047 added Ultimate SD Upscale IDs #51
to img2img custom tracked component IDs config file
2023-09-10 23:44:25 -05:00
wywywywy
1f020691cb fix: broken radio-button in v1.6 (#62)
* fix: broken radio-button in v1.6

* add comment

---------

Co-authored-by: Zyin055 <5003647+Zyin055@users.noreply.github.com>
2023-09-04 17:58:03 -05:00
Zyin055
f4677f7f0e fixes for A1111 1.6.0
All changes here should be backwards compatible, which means this update of Config Presets should work with older versions of Automatic1111.

-made txt2img_restore_faces and img2img_restore_faces optional components since they no longer exist
-changes for new Hires fix checkbox ID
-added Refiner and Switch at IDs
-fixes for internal sampler format changes
-added SDXL with Refiner default config preset
#56 #58
2023-08-31 12:26:38 -05:00
S-Del
08aaf664f6 fix typo txt2txt -> txt2img (#57)
for XYZ plot custom components config file
2023-08-21 10:17:17 -05:00
Symbiomatrix
d3e23532d4 Experimental: Optional components. (#55)
Internal changes to allow for optional components.

* Update config_presets.py

* Code cleanup.

* Added second pass checkbox.

* Forgot a bit.

* Fix order.

* Add all ui toggles.

* Added synonym mechanism.

* Update config_presets.py

* added comments/labels

* Reformat.

* final tweaks

removed "SBM" in comments
removed controlnet_control_mod_radio if check since its done with optional_ids now

* Fix incorrect comment.

---------

Co-authored-by: Zyin055 <5003647+Zyin055@users.noreply.github.com>
2023-08-19 20:15:23 -05:00
Zyin055
0f0f25c37e edited default presets
added simple resolution presets for SD1.5, SD2.1, and SDXL
tweaked other presets
2023-07-27 17:02:45 -05:00
Zyin055
30117f09a7 Merge branch 'main' of https://github.com/Zyin055/Config-Presets 2023-06-30 15:24:38 -05:00
nykwil
6fee8ff706 Updates to automatically generated config text files. (#48)
img2img_restore_faces already added to the config list so uncommenting it in the text files offsets all the results.
xyz plot img2img properties have img not txt in them.

Co-authored-by: nykwil <gray.robb@gmail.com>
2023-06-30 15:18:04 -05:00
Zyin055
f99171bf89 added hires prompt to default config file 2023-06-12 19:44:13 -05:00
Zyin055
72df7d7a3d added ADetailer IDs to custom component config 2023-06-07 20:48:55 -05:00
Zyin055
f91c65b54d Auto fix bad ControlNet component ID
#45 added automatically renaming IDs in the custom tracked components ID function for when other extensions change their IDs
added specialized logging functions
2023-05-29 19:43:14 -05:00
Zyin055
1c4f88d706 auto populate new config preset name, add new IDs to default config
added Tiled Diffusion (extension) IDs to default additional fields config file
updated missing component ID error message
the name of the currently selected config preset will be used to auto populate the a config preset name when clicking the Add/Remove button
2023-05-28 13:45:33 -05:00
Zyin055
314036f333 added ControlNet component IDs to default tracked components config file 2023-05-19 21:07:46 -05:00
Zyin055
b433fb49bc update delete button icon 2023-05-15 20:47:19 -05:00
Zyin055
5584055255 add img2img_scale to default config file 2023-05-15 16:43:05 -05:00
Symbiomatrix
5f9af2777a Preset auto refresh. (#41)
* Preset auto refresh.

Workaround for gradio bug.

* simplified?

renamed variables
renamed function, removed an argument
removed globals

* save button label/tooltip

* cleanup

moved function down, typed argument

---------

Co-authored-by: Zyin055 <5003647+Zyin055@users.noreply.github.com>
2023-05-15 16:39:00 -05:00
Zyin055
fe22565b78 update config file instructions
to say that temporary IDs won't work
2023-04-30 10:52:18 -05:00
Zyin055
fe3176c77f Added custom field tracking
Added new config files for custom tracked components for txt2img and img2img
Added "Add custom fields..." button
Renamed component IDs to start with "script_"
#28 #31 #32 #33 #34
2023-04-29 00:42:13 -05:00
Zyin055
5c8a867c99 tweak default presets 2023-04-18 14:38:35 -05:00
Zyin055
6a1aa7b027 renamed the "Default" preset to "None" which doesn't do anything 2023-03-21 23:16:29 -05:00
Zyin055
b0052a999f tweaked default presets for large resolutions 2023-03-21 14:41:56 -05:00
Zyin055
854ca2ff04 added icons to some buttons 2023-03-21 12:14:37 -05:00
Zyin055
54080bfe73 default value tweaks 2023-03-06 20:18:17 -06:00
Zyin055
d4e4a108a7 fix bad comment 2023-03-06 20:15:56 -06:00
Zyin055
bd09d4f398 remove duplicate "txt2img_hr_scale" 2023-03-06 20:13:53 -06:00
Zyin055
eb366cc9cb Added ability to ignore fields, preset default tweaks
* Added the ability to select which fields are saved when creating a new config preset (before, this could have been done manually by editing the .json config file)
* Moved some buttons around in the UI for creating a new config preset
* Added Hires Upscaler (txt2img_hr_upscaler), Upscale by (txt2img_hr_scale), and Restore Faces (txt2img_restore_faces) as eligible fields to be used in a config preset
* Tweaked default config preset values created during installation, removed "Default" preset
#27 #6
2023-03-06 19:44:39 -06:00
Mark-Greenbook
6ce6a28654 feat: keep unset component value (#23)
* feat: keep unset component value

* feat(component): check if index type component return as string properly

* cleanup

rename some variables, comment out prints

---------

Co-authored-by: Zyin055 <5003647+Zyin055@users.noreply.github.com>
2023-02-10 17:34:29 -06:00
Zyin055
fcb2d57408 Added 768x768, 1080p, 1440p, and 4k presets 2023-02-09 11:22:56 -06:00
Zyin055
63ef7b09fb fix sampler not being saved for new presets 2023-01-02 21:45:40 -06:00
Zyin055
98a922ac5c massive backend updates
the txt2img and img2img dropdowns are now separated. each has its own config file and its own config presets.
adjusted to sampler index not using checkboxes, but a dropdown now.
adjusted for the removal of firstpass width/height, and added Upscale by.
components on in the UI are tracked with elem_id instead of labels.
when creating a new preset, need to restart the UI because of stupid Gradio desync bug.
moved our dropdown UI section to below the gallery, instead of below the gallery's buttons.
added error handling incase the A1111 UI changes the again to hopefully not brick people's UI.
Create button renamed to Save & Restart.
#16
2023-01-02 17:08:40 -06:00