aboutsummaryrefslogtreecommitdiff
path: root/modules/ui.py
AgeCommit message (Collapse)Author
2023-07-08third time's the charmAUTOMATIC1111
2023-07-08additional changes for merge conflict for #11337AUTOMATIC1111
2023-07-08Merge branch 'dev' into img2img-batch-png-infoAUTOMATIC1111
2023-07-08Merge pull request #11660 from neilmahaseth/patch-1AUTOMATIC1111
Fix UnicodeEncodeError when writing to file CLIP Interrogator Batch Mode
2023-07-06Fix UnicodeEncodeError when writing to file CLIP Interrogator Batch ModeNeil Mahseth
The code snippet print(interrogation_function(img), file=open(os.path.join(ii_output_dir, f"{left}.txt"), 'a')) raises a UnicodeEncodeError with the message "'charmap' codec can't encode character '\u016b' in position 129". This error occurs because the default encoding used by the open() function cannot handle certain Unicode characters. To fix this issue, the encoding parameter needs to be explicitly specified when opening the file. By using an appropriate encoding, such as 'utf-8', we can ensure that Unicode characters are properly encoded and written to the file. The updated code should be modified as follows: python Copy code print(interrogation_function(img), file=open(os.path.join(ii_output_dir, f"{left}.txt"), 'a', encoding='utf-8')) By making this change, the code will no longer raise the UnicodeEncodeError and will correctly handle Unicode characters during the file write operation.
2023-06-27Merge pull request #11315 from guming3d/masterAUTOMATIC1111
fix: adding elem_id for img2img resize to and resize by tabs
2023-06-20resolve linterFerdinand Weynschenk
2023-06-20PNG info support at img2img batchFerdinand Weynschenk
2023-06-19fix: adding elem_id for img2img resize to and resize by tabsGeorge Gu
2023-06-06link footer API to Wiki when API is not activew-e-w
2023-06-05Merge pull request #10956 from akx/lenAUTOMATIC1111
Simplify a bunch of `len(x) > 0`/`len(x) == 0` style expressions
2023-06-04Merge pull request #10980 from AUTOMATIC1111/sysinfoAUTOMATIC1111
Added sysinfo tab to settings
2023-06-04infer styles from prompts, and an option to control the behaviorAUTOMATIC
2023-06-03Added sysinfo tab to settingsAUTOMATIC
2023-06-02Simplify a bunch of `len(x) > 0`/`len(x) == 0` style expressionsAarni Koskela
2023-06-02Support dynamic sort of extra networkscatboxanon
2023-06-01Merge branch 'dev' into startup-profileAUTOMATIC
2023-05-31use ui_reorder_list rather than ui_reorder for UI reorder option to make the ↵AUTOMATIC
program not break when reverting to old version
2023-05-31Merge pull request #10785 from nyqui/fix-hires.fixAUTOMATIC1111
fix "hires. fix" prompt sharing same labels with txt2img_prompt
2023-05-31add an option to show selected setting in main txt2img/img2img UIAUTOMATIC
split some code from ui.py into ui_settings.py ui_gradio_edxtensions.py add before_process callback for scripts add ability for alwayson scripts to specify section and let user reorder those sections
2023-05-31change UI reorder setting to multiselectAUTOMATIC
2023-05-31rename print_error to report, use it with together with package nameAUTOMATIC
2023-05-31Merge branch 'dev' into report-errorAUTOMATIC1111
2023-05-31Merge pull request #10785 from nyqui/fix-hires.fixAUTOMATIC1111
fix "hires. fix" prompt sharing same labels with txt2img_prompt
2023-05-29Add & use modules.errors.print_error where currently printing exception info ↵Aarni Koskela
by hand
2023-05-28fix "hires. fix" prompt/neg sharing same labels as ↵nyqui
txt2img_prompt/negative_prompt
2023-05-22repair file paste for Firefox from #10615AUTOMATIC
remove animation when pasting files into prompt rework two dragdrop js files into one
2023-05-21Revert "change width/heights slider steps to 64 from 8"AUTOMATIC
This reverts commit 9a86932c8bbac06afc70ea190399e767763d877e.
2023-05-21work on startup profile displayAUTOMATIC
2023-05-20hiresfix prompt: add classes, update css selcatboxanon
2023-05-20Support edit attn shortcut in hires fix promptscatboxanon
2023-05-19change width/heights slider steps to 64 from 8AUTOMATIC
2023-05-18rework #10519AUTOMATIC
2023-05-18Merge pull request #10519 from catboxanon/patch/hires-input-release-eventAUTOMATIC1111
Improve width/height slider responsiveness
2023-05-18Reorder variable assignmentcatboxanon
2023-05-18rework hires prompts/sampler code to among other things support different ↵AUTOMATIC
extra networks in first/second pass rework quoting for infotext items that have commas in them to use json (should be backwards compatible except for cases where it didn't work previously) add some locals from processing function into the Processing class as fields
2023-05-18.change -> .release for hires inputcatboxanon
Improves overall UI responsiveness.
2023-05-18Merge remote-tracking branch 'InvincibleDude/improved-hr-conflict-test' into ↵AUTOMATIC
hires-fix-ext
2023-05-18python linter fixesAUTOMATIC
2023-05-18Merge branch 'dev' into ngrok-pyAUTOMATIC1111
2023-05-18rework #8863 to work with all img2img tabsAUTOMATIC
2023-05-17Merge remote-tracking branch 'pieresimakp/img2img-detect-image-size' into devAUTOMATIC
2023-05-17option to specify editor height for img2imgAUTOMATIC
2023-05-17remove some code duplication from #9348AUTOMATIC
2023-05-17Merge branch 'dev' into improve-frontend-responsivenessAUTOMATIC1111
2023-05-17add option to reorder tabsAUTOMATIC
fix Reload UI not working
2023-05-17Replace state.need_restart with state.server_command + replace poll loop ↵Aarni Koskela
with signal
2023-05-16Use ngrok-py librarybobzilladev
2023-05-16restore nqsp in footer that was lost during lintingAUTOMATIC
2023-05-13Merge pull request #10335 from akx/l10n-dis-take-2AUTOMATIC1111
Localization fixes