Commit Graph

28 Commits

Author SHA1 Message Date
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
Zyin055
aa58d6579a final touches
component_labels data structure change
code cleanup
2022-12-21 16:52:30 -06:00
Zyin055
c84d4b61a0 img2img tab support
and code cleanup
2022-12-20 22:05:47 -06:00
Zyin055
6d6c466071 Added save/delete functionality in the UI for config presets
New buttons: Add/Remove..., 🗑️, Create, Open..., Cancel
New textbox: New preset name
2022-12-20 21:16:12 -06:00
Zyin055
24639a5c7c Create config.json on first load
added to .gitignore so that user changes won't be overwritten when updating
2022-12-19 11:41:39 -06:00
Zyin055
24801fc3f1 use / instead of \ for config file path
#7 \ may not work in linux
2022-12-15 10:35:14 -06:00
Zyin055
1992e1eed7 Added Firstpass width/height
firstphase_width and firstphase_height are now recognized values in config.json
2022-12-13 13:26:05 -06:00
Zyin055
30f96f8c52 edited gerschel's pr
basedir() needs to be called in the global space to get the full path.
AVAILABLE_COMPONENTS doesn't need to be global anymore.
don't use exception handling as logic for component_map[], bad practice.
formatting tweaks.
2022-12-13 12:53:57 -06:00
Gerschel
624f16e8d1 Fixed missing back slash, brought others to parity 2022-12-13 03:31:01 -08:00
Gerschel
318de88d00 Refactor, made it work with img2img
Removed ast and replaced with json,
ast uses eval, not safe

Used a dictionary as a map and a Constant
as a settings area
2022-12-13 03:01:23 -08:00
Zyin055
8c90a927c0 Initial commit 2022-12-13 01:04:06 -06:00