Skip to content

Latest commit

 

History

History
968 lines (879 loc) · 83.2 KB

CHANGELOG.md

File metadata and controls

968 lines (879 loc) · 83.2 KB

1.9.4

Bug Fixes:

  • pin setuptools version to fix the startup error (#15883)

1.9.3

Bug Fixes:

  • fix get_crop_region_v2 (#15594)

1.9.2

Extensions and API:

  • restore 1.8.0-style naming of scripts

1.9.1

Minor:

  • Add avif support (#15582)
  • Add filename patterns: [sampler_scheduler] and [scheduler] (#15581)

Extensions and API:

  • undo adding scripts to sys.modules
  • Add schedulers API endpoint (#15577)
  • Remove API upscaling factor limits (#15560)

Bug Fixes:

  • Fix images do not match / Coordinate 'right' is less than 'left' (#15534)
  • fix: remove_callbacks_for_function should also remove from the ordered map (#15533)
  • fix x1 upscalers (#15555)
  • Fix cls.module value in extension script (#15532)
  • fix typo in function call (eror -> error) (#15531)

Other:

  • Hide 'No Image data blocks found.' message (#15567)
  • Allow webui.sh to be runnable from arbitrary directories containing a .git file (#15561)
  • Compatibility with Debian 11, Fedora 34+ and openSUSE 15.4+ (#15544)
  • numpy DeprecationWarning product -> prod (#15547)
  • get_crop_region_v2 (#15583, #15587)

1.9.0

Features:

  • Make refiner switchover based on model timesteps instead of sampling steps (#14978)
  • add an option to have old-style directory view instead of tree view; stylistic changes for extra network sorting/search controls
  • add UI for reordering callbacks, support for specifying callback order in extension metadata (#15205)
  • Sgm uniform scheduler for SDXL-Lightning models (#15325)
  • Scheduler selection in main UI (#15333, #15361, #15394)

Minor:

  • "open images directory" button now opens the actual dir (#14947)
  • Support inference with LyCORIS BOFT networks (#14871, #14973)
  • make extra network card description plaintext by default, with an option to re-enable HTML as it was
  • resize handle for extra networks (#15041)
  • cmd args: --unix-filenames-sanitization and --filenames-max-length (#15031)
  • show extra networks parameters in HTML table rather than raw JSON (#15131)
  • Add DoRA (weight-decompose) support for LoRA/LoHa/LoKr (#15160, #15283)
  • Add '--no-prompt-history' cmd args for disable last generation prompt history (#15189)
  • update preview on Replace Preview (#15201)
  • only fetch updates for extensions' active git branches (#15233)
  • put upscale postprocessing UI into an accordion (#15223)
  • Support dragdrop for URLs to read infotext (#15262)
  • use diskcache library for caching (#15287, #15299)
  • Allow PNG-RGBA for Extras Tab (#15334)
  • Support cover images embedded in safetensors metadata (#15319)
  • faster interrupt when using NN upscale (#15380)
  • Extras upscaler: an input field to limit maximul side length for the output image (#15293, #15415, #15417, #15425)
  • add an option to hide postprocessing options in Extras tab

Extensions and API:

  • ResizeHandleRow - allow overriden column scale parametr (#15004)
  • call script_callbacks.ui_settings_callback earlier; fix extra-options-section built-in extension killing the ui if using a setting that doesn't exist
  • make it possible to use zoom.js outside webui context (#15286, #15288)
  • allow variants for extension name in metadata.ini (#15290)
  • make reloading UI scripts optional when doing Reload UI, and off by default
  • put request: gr.Request at start of img2img function similar to txt2img
  • open_folder as util (#15442)
  • make it possible to import extensions' script files as import scripts.<filename> (#15423)

Performance:

  • performance optimization for extra networks HTML pages
  • optimization for extra networks filtering
  • optimization for extra networks sorting

Bug Fixes:

  • prevent escape button causing an interrupt when no generation has been made yet
  • [bug] avoid doble upscaling in inpaint (#14966)
  • possible fix for reload button not appearing in some cases for extra networks.
  • fix: the split_threshold parameter does not work when running Split oversized images (#15006)
  • Fix resize-handle visability for vertical layout (mobile) (#15010)
  • register_tmp_file also for mtime (#15012)
  • Protect alphas_cumprod during refiner switchover (#14979)
  • Fix EXIF orientation in API image loading (#15062)
  • Only override emphasis if actually used in prompt (#15141)
  • Fix emphasis infotext missing from params.txt (#15142)
  • fix extract_style_text_from_prompt #15132 (#15135)
  • Fix Soft Inpaint for AnimateDiff (#15148)
  • edit-attention: deselect surrounding whitespace (#15178)
  • chore: fix font not loaded (#15183)
  • use natural sort in extra networks when ordering by path
  • Fix built-in lora system bugs caused by torch.nn.MultiheadAttention (#15190)
  • Avoid error from None in get_learned_conditioning (#15191)
  • Add entry to MassFileLister after writing metadata (#15199)
  • fix issue with Styles when Hires prompt is used (#15269, #15276)
  • Strip comments from hires fix prompt (#15263)
  • Make imageviewer event listeners browser consistent (#15261)
  • Fix AttributeError in OFT when trying to get MultiheadAttention weight (#15260)
  • Add missing .mean() back (#15239)
  • fix "Restore progress" button (#15221)
  • fix ui-config for InputAccordion [custom_script_source] (#15231)
  • handle 0 wheel deltaY (#15268)
  • prevent alt menu for firefox (#15267)
  • fix: fix syntax errors (#15179)
  • restore outputs path (#15307)
  • Escape btn_copy_path filename (#15316)
  • Fix extra networks buttons when filename contains an apostrophe (#15331)
  • escape brackets in lora random prompt generator (#15343)
  • fix: Python version check for PyTorch installation compatibility (#15390)
  • fix typo in call_queue.py (#15386)
  • fix: when find already_loaded model, remove loaded by array index (#15382)
  • minor bug fix of sd model memory management (#15350)
  • Fix CodeFormer weight (#15414)
  • Fix: Remove script callbacks in ordered_callbacks_map (#15428)
  • fix limited file write (thanks, Sylwia)
  • Fix extra-single-image API not doing upscale failed (#15465)
  • error handling paste_field callables (#15470)

Hardware:

  • Add training support and change lspci for Ascend NPU (#14981)
  • Update to ROCm5.7 and PyTorch (#14820)
  • Better workaround for Navi1, removing --pre for Navi3 (#15224)
  • Ascend NPU wiki page (#15228)

Other:

  • Update comment for Pad prompt/negative prompt v0 to add a warning about truncation, make it override the v1 implementation
  • support resizable columns for touch (tablets) (#15002)
  • Fix #14591 using translated content to do categories mapping (#14995)
  • Use absolute path for normalized filepath (#15035)
  • resizeHandle handle double tap (#15065)
  • --dat-models-path cmd flag (#15039)
  • Add a direct link to the binary release (#15059)
  • upscaler_utils: Reduce logging (#15084)
  • Fix various typos with crate-ci/typos (#15116)
  • fix_jpeg_live_preview (#15102)
  • [alternative fix] can't load webui if selected wrong extra option in ui (#15121)
  • Error handling for unsupported transparency (#14958)
  • Add model description to searched terms (#15198)
  • bump action version (#15272)
  • PEP 604 annotations (#15259)
  • Automatically Set the Scale by value when user selects an Upscale Model (#15244)
  • move postprocessing-for-training into builtin extensions (#15222)
  • type hinting in shared.py (#15211)
  • update ruff to 0.3.3
  • Update pytorch lightning utilities (#15310)
  • Add Size as an XYZ Grid option (#15354)
  • Use HF_ENDPOINT variable for HuggingFace domain with default (#15443)
  • re-add update_file_entry (#15446)
  • create_infotext allow index and callable, re-work Hires prompt infotext (#15460)
  • update restricted_opts to include more options for --hide-ui-dir-config (#15492)

1.8.0

Features:

Minor:

  • Allow pasting in WIDTHxHEIGHT strings into the width/height fields (#14296)
  • add option: Live preview in full page image viewer (#14230, #14307)
  • Add keyboard shortcuts for generate/skip/interrupt (#14269)
  • Better TCMALLOC support on different platforms (#14227, #14883, #14910)
  • Lora not found warning (#14464)
  • Adding negative prompts to Loras in extra networks (#14475)
  • xyz_grid: allow varying the seed along an axis separate from axis options (#12180)
  • option to convert VAE to bfloat16 (implementation of #9295)
  • Better IPEX support (#14229, #14353, #14559, #14562, #14597)
  • Option to interrupt after current generation rather than immediately (#13653, #14659)
  • Fullscreen Preview control fading/disable (#14291)
  • Finer settings freezing control (#13789)
  • Increase Upscaler Limits (#14589)
  • Adjust brush size with hotkeys (#14638)
  • Add checkpoint info to csv log file when saving images (#14663)
  • Make more columns resizable (#14740, #14884)
  • Add an option to not overlay original image for inpainting for #14727
  • Add Pad conds v0 option to support same generation with DDIM as before 1.6.0
  • Add "Interrupting..." placeholder.
  • Button for refresh extensions list (#14857)
  • Add an option to disable normalization after calculating emphasis. (#14874)
  • When counting tokens, also include enabled styles (can be disabled in settings to revert to previous behavior)
  • Configuration for the [📂] button for image gallery (#14947)
  • Support inference with LyCORIS BOFT networks (#14871, #14973)
  • support resizable columns for touch (tablets) (#15002)

Extensions and API:

  • Removed packages from requirements: basicsr, gfpgan, realesrgan; as well as their dependencies: absl-py, addict, beautifulsoup4, future, gdown, grpcio, importlib-metadata, lmdb, lpips, Markdown, platformdirs, PySocks, soupsieve, tb-nightly, tensorboard-data-server, tomli, Werkzeug, yapf, zipp, soupsieve
  • Enable task ids for API (#14314)
  • add override_settings support for infotext API
  • rename generation_parameters_copypaste module to infotext_utils
  • prevent crash due to Script init exception (#14407)
  • Bump numpy to 1.26.2 (#14471)
  • Add utility to inspect a model's dtype/device (#14478)
  • Implement general forward method for all method in built-in lora ext (#14547)
  • Execute model_loaded_callback after moving to target device (#14563)
  • Add self to CFGDenoiserParams (#14573)
  • Allow TLS with API only mode (--nowebui) (#14593)
  • New callback: postprocess_image_after_composite (#14657)
  • modules/api/api.py: add api endpoint to refresh embeddings list (#14715)
  • set_named_arg (#14773)
  • add before_token_counter callback and use it for prompt comments
  • ResizeHandleRow - allow overridden column scale parameter (#15004)

Performance:

  • Massive performance improvement for extra networks directories with a huge number of files in them in an attempt to tackle #14507 (#14528)
  • Reduce unnecessary re-indexing extra networks directory (#14512)
  • Avoid unnecessary isfile/exists calls (#14527)

Bug Fixes:

  • fix multiple bugs related to styles multi-file support (#14203, #14276, #14707)
  • Lora fixes (#14300, #14237, #14546, #14726)
  • Re-add setting lost as part of e294e46 (#14266)
  • fix extras caption BLIP (#14330)
  • include infotext into saved init image for img2img (#14452)
  • xyz grid handle axis_type is None (#14394)
  • Update Added (Fixed) IPV6 Functionality When there is No Webui Argument Passed webui.py (#14354)
  • fix API thread safe issues of txt2img and img2img (#14421)
  • handle selectable script_index is None (#14487)
  • handle config.json failed to load (#14525, #14767)
  • paste infotext cast int as float (#14523)
  • Ensure GRADIO_ANALYTICS_ENABLED is set early enough (#14537)
  • Fix logging configuration again (#14538)
  • Handle CondFunc exception when resolving attributes (#14560)
  • Fix extras big batch crashes (#14699)
  • Fix using wrong model caused by alias (#14655)
  • Add # to the invalid_filename_chars list (#14640)
  • Fix extension check for requirements (#14639)
  • Fix tab indexes are reset after restart UI (#14637)
  • Fix nested manual cast (#14689)
  • Keep postprocessing upscale selected tab after restart (#14702)
  • XYZ grid: filter out blank vals when axis is int or float type (like int axis seed) (#14754)
  • fix CLIP Interrogator topN regex (#14775)
  • Fix dtype error in MHA layer/change dtype checking mechanism for manual cast (#14791)
  • catch load style.csv error (#14814)
  • fix error when editing extra networks card
  • fix extra networks metadata failing to work properly when you create the .json file with metadata for the first time.
  • util.walk_files extensions case insensitive (#14879)
  • if extensions page not loaded, prevent apply (#14873)
  • call the right function for token counter in img2img
  • Fix the bugs that search/reload will disappear when using other ExtraNetworks extensions (#14939)
  • Gracefully handle mtime read exception from cache (#14933)
  • Only trigger interrupt on Esc when interrupt button visible (#14932)
  • Disable prompt token counters option actually disables token counting rather than just hiding results.
  • avoid double upscaling in inpaint (#14966)
  • Fix #14591 using translated content to do categories mapping (#14995)
  • fix: the split_threshold parameter does not work when running Split oversized images (#15006)
  • Fix resize-handle for mobile (#15010, #15065)

Other:

  • Assign id for "extra_options". Replace numeric field with slider. (#14270)
  • change state dict comparison to ref compare (#14216)
  • Bump torch-rocm to 5.6/5.7 (#14293)
  • Base output path off data path (#14446)
  • reorder training preprocessing modules in extras tab (#14367)
  • Remove cleanup_models code (#14472)
  • only rewrite ui-config when there is change (#14352)
  • Fix lint issue from 501993eb (#14495)
  • Update README.md (#14548)
  • hires button, fix seeds ()
  • Logging: set formatter correctly for fallback logger too (#14618)
  • Read generation info from infotexts rather than json for internal needs (save, extract seed from generated pic) (#14645)
  • improve get_crop_region (#14709)
  • Bump safetensors' version to 0.4.2 (#14782)
  • add tooltip create_submit_box (#14803)
  • extensions tab table row hover highlight (#14885)
  • Always add timestamp to displayed image (#14890)
  • Added core.filemode=false so doesn't track changes in file permission… (#14930)
  • Normalize command-line argument paths (#14934, #15035)
  • Use original App Title in progress bar (#14916)
  • register_tmp_file also for mtime (#15012)

1.7.0

Features:

  • settings tab rework: add search field, add categories, split UI settings page into many
  • add altdiffusion-m18 support (#13364)
  • support inference with LyCORIS GLora networks (#13610)
  • add lora-embedding bundle system (#13568)
  • option to move prompt from top row into generation parameters
  • add support for SSD-1B (#13865)
  • support inference with OFT networks (#13692)
  • script metadata and DAG sorting mechanism (#13944)
  • support HyperTile optimization (#13948)
  • add support for SD 2.1 Turbo (#14170)
  • remove Train->Preprocessing tab and put all its functionality into Extras tab
  • initial IPEX support for Intel Arc GPU (#14171)

Minor:

  • allow reading model hash from images in img2img batch mode (#12767)
  • add option to align with sgm repo's sampling implementation (#12818)
  • extra field for lora metadata viewer: ss_output_name (#12838)
  • add action in settings page to calculate all SD checkpoint hashes (#12909)
  • add button to copy prompt to style editor (#12975)
  • add --skip-load-model-at-start option (#13253)
  • write infotext to gif images
  • read infotext from gif images (#13068)
  • allow configuring the initial state of InputAccordion in ui-config.json (#13189)
  • allow editing whitespace delimiters for ctrl+up/ctrl+down prompt editing (#13444)
  • prevent accidentally closing popup dialogs (#13480)
  • added option to play notification sound or not (#13631)
  • show the preview image in the full screen image viewer if available (#13459)
  • support for webui.settings.bat (#13638)
  • add an option to not print stack traces on ctrl+c
  • start/restart generation by Ctrl (Alt) + Enter (#13644)
  • update prompts_from_file script to allow concatenating entries with the general prompt (#13733)
  • added a visible checkbox to input accordion
  • added an option to hide all txt2img/img2img parameters in an accordion (#13826)
  • added 'Path' sorting option for Extra network cards (#13968)
  • enable prompt hotkeys in style editor (#13931)
  • option to show batch img2img results in UI (#14009)
  • infotext updates: add option to disregard certain infotext fields, add option to not include VAE in infotext, add explanation to infotext settings page, move some options to infotext settings page
  • add FP32 fallback support on sd_vae_approx (#14046)
  • support XYZ scripts / split hires path from unet (#14126)
  • allow use of multiple styles csv files (#14125)
  • make extra network card description plaintext by default, with an option (Treat card description as HTML) to re-enable HTML as it was (originally by #13241)

Extensions and API:

  • update gradio to 3.41.2
  • support installed extensions list api (#12774)
  • update pnginfo API to return dict with parsed values
  • add noisy latent to ExtraNoiseParams for callback (#12856)
  • show extension datetime in UTC (#12864, #12865, #13281)
  • add an option to choose how to combine hires fix and refiner
  • include program version in info response. (#13135)
  • sd_unet support for SDXL
  • patch DDPM.register_betas so that users can put given_betas in model yaml (#13276)
  • xyz_grid: add prepare (#13266)
  • allow multiple localization files with same language in extensions (#13077)
  • add onEdit function for js and rework token-counter.js to use it
  • fix the key error exception when processing override_settings keys (#13567)
  • ability for extensions to return custom data via api in response.images (#13463)
  • call state.jobnext() before postproces*() (#13762)
  • add option to set notification sound volume (#13884)
  • update Ruff to 0.1.6 (#14059)
  • add Block component creation callback (#14119)
  • catch uncaught exception with ui creation scripts (#14120)
  • use extension name for determining an extension is installed in the index (#14063)
  • update is_installed() from launch_utils.py to fix reinstalling already installed packages (#14192)

Bug Fixes:

  • fix pix2pix producing bad results
  • fix defaults settings page breaking when any of main UI tabs are hidden
  • fix error that causes some extra networks to be disabled if both lora: and lyco: are present in the prompt
  • fix for Reload UI function: if you reload UI on one tab, other opened tabs will no longer stop working
  • prevent duplicate resize handler (#12795)
  • small typo: vae resolve bug (#12797)
  • hide broken image crop tool (#12792)
  • don't show hidden samplers in dropdown for XYZ script (#12780)
  • fix style editing dialog breaking if it's opened in both img2img and txt2img tabs
  • hide --gradio-auth and --api-auth values from /internal/sysinfo report
  • add missing infotext for RNG in options (#12819)
  • fix notification not playing when built-in webui tab is inactive (#12834)
  • honor --skip-install for extension installers (#12832)
  • don't print blank stdout in extension installers (#12833, #12855)
  • get progressbar to display correctly in extensions tab
  • keep order in list of checkpoints when loading model that doesn't have a checksum
  • fix inpainting models in txt2img creating black pictures
  • fix generation params regex (#12876)
  • fix batch img2img output dir with script (#12926)
  • fix #13080 - Hypernetwork/TI preview generation (#13084)
  • fix bug with sigma min/max overrides. (#12995)
  • more accurate check for enabling cuDNN benchmark on 16XX cards (#12924)
  • don't use multicond parser for negative prompt counter (#13118)
  • fix data-sort-name containing spaces (#13412)
  • update card on correct tab when editing metadata (#13411)
  • fix viewing/editing metadata when filename contains an apostrophe (#13395)
  • fix: --sd_model in "Prompts from file or textbox" script is not working (#13302)
  • better Support for Portable Git (#13231)
  • fix issues when webui_dir is not work_dir (#13210)
  • fix: lora-bias-backup don't reset cache (#13178)
  • account for customizable extra network separators whyen removing extra network text from the prompt (#12877)
  • re fix batch img2img output dir with script (#13170)
  • fix --ckpt-dir path separator and option use short name for checkpoint dropdown (#13139)
  • consolidated allowed preview formats, Fix extra network .gif not woking as preview (#13121)
  • fix venv_dir=- environment variable not working as expected on linux (#13469)
  • repair unload sd checkpoint button
  • edit-attention fixes (#13533)
  • fix bug when using --gfpgan-models-path (#13718)
  • properly apply sort order for extra network cards when selected from dropdown
  • fixes generation restart not working for some users when 'Ctrl+Enter' is pressed (#13962)
  • thread safe extra network list_items (#13014)
  • fix not able to exit metadata popup when pop up is too big (#14156)
  • fix auto focal point crop for opencv >= 4.8 (#14121)
  • make 'use-cpu all' actually apply to 'all' (#14131)
  • extras tab batch: actually use original filename
  • make webui not crash when running with --disable-all-extensions option

Other:

  • non-local condition (#12814)
  • fix minor typos (#12827)
  • remove xformers Python version check (#12842)
  • style: file-metadata word-break (#12837)
  • revert SGM noise multiplier change for img2img because it breaks hires fix
  • do not change quicksettings dropdown option when value returned is None (#12854)
  • [RC 1.6.0 - zoom is partly hidden] Update style.css (#12839)
  • chore: change extension time format (#12851)
  • WEBUI.SH - Use torch 2.1.0 release candidate for Navi 3 (#12929)
  • add Fallback at images.read_info_from_image if exif data was invalid (#13028)
  • update cmd arg description (#12986)
  • fix: update shared.opts.data when add_option (#12957, #13213)
  • restore missing tooltips (#12976)
  • use default dropdown padding on mobile (#12880)
  • put enable console prompts option into settings from commandline args (#13119)
  • fix some deprecated types (#12846)
  • bump to torchsde==0.2.6 (#13418)
  • update dragdrop.js (#13372)
  • use orderdict as lru cache:opt/bug (#13313)
  • XYZ if not include sub grids do not save sub grid (#13282)
  • initialize state.time_start befroe state.job_count (#13229)
  • fix fieldname regex (#13458)
  • change denoising_strength default to None. (#13466)
  • fix regression (#13475)
  • fix IndexError (#13630)
  • fix: checkpoints_loaded:{checkpoint:state_dict}, model.load_state_dict issue in dict value empty (#13535)
  • update bug_report.yml (#12991)
  • requirements_versions httpx==0.24.1 (#13839)
  • fix parenthesis auto selection (#13829)
  • fix #13796 (#13797)
  • corrected a typo in modules/cmd_args.py (#13855)
  • feat: fix randn found element of type float at pos 2 (#14004)
  • adds tqdm handler to logging_config.py for progress bar integration (#13996)
  • hotfix: call shared.state.end() after postprocessing done (#13977)
  • fix dependency address patch 1 (#13929)
  • save sysinfo as .json (#14035)
  • move exception_records related methods to errors.py (#14084)
  • compatibility (#13936)
  • json.dump(ensure_ascii=False) (#14108)
  • dir buttons start with / so only the correct dir will be shown and no… (#13957)
  • alternate implementation for unet forward replacement that does not depend on hijack being applied
  • re-add keyedit_delimiters_whitespace setting lost as part of commit e294e46 (#14178)
  • fix save_samples being checked early when saving masked composite (#14177)
  • slight optimization for mask and mask_composite (#14181)
  • add import_hook hack to work around basicsr/torchvision incompatibility (#14186)

1.6.1

Bug Fixes:

  • fix an error causing the webui to fail to start (#13839)

1.6.0

Features:

  • refiner support #12371
  • add NV option for Random number generator source setting, which allows to generate same pictures on CPU/AMD/Mac as on NVidia videocards
  • add style editor dialog
  • hires fix: add an option to use a different checkpoint for second pass (#12181)
  • option to keep multiple loaded models in memory (#12227)
  • new samplers: Restart, DPM++ 2M SDE Exponential, DPM++ 2M SDE Heun, DPM++ 2M SDE Heun Karras, DPM++ 2M SDE Heun Exponential, DPM++ 3M SDE, DPM++ 3M SDE Karras, DPM++ 3M SDE Exponential (#12300, #12519, #12542)
  • rework DDIM, PLMS, UniPC to use CFG denoiser same as in k-diffusion samplers:
    • makes all of them work with img2img
    • makes prompt composition possible (AND)
    • makes them available for SDXL
  • always show extra networks tabs in the UI (#11808)
  • use less RAM when creating models (#11958, #12599)
  • textual inversion inference support for SDXL
  • extra networks UI: show metadata for SD checkpoints
  • checkpoint merger: add metadata support
  • prompt editing and attention: add support for whitespace after the number ([ red : green : 0.5 ]) (seed breaking change) (#12177)
  • VAE: allow selecting own VAE for each checkpoint (in user metadata editor)
  • VAE: add selected VAE to infotext
  • options in main UI: add own separate setting for txt2img and img2img, correctly read values from pasted infotext, add setting for column count (#12551)
  • add resize handle to txt2img and img2img tabs, allowing to change the amount of horizontable space given to generation parameters and resulting image gallery (#12687, #12723)
  • change default behavior for batching cond/uncond -- now it's on by default, and is disabled by an UI setting (Optimizatios -> Batch cond/uncond) - if you are on lowvram/medvram and are getting OOM exceptions, you will need to enable it
  • show current position in queue and make it so that requests are processed in the order of arrival (#12707)
  • add --medvram-sdxl flag that only enables --medvram for SDXL models
  • prompt editing timeline has separate range for first pass and hires-fix pass (seed breaking change) (#12457)

Minor:

  • img2img batch: RAM savings, VRAM savings, .tif, .tiff in img2img batch (#12120, #12514, #12515)
  • postprocessing/extras: RAM savings (#12479)
  • XYZ: in the axis labels, remove pathnames from model filenames
  • XYZ: support hires sampler (#12298)
  • XYZ: new option: use text inputs instead of dropdowns (#12491)
  • add gradio version warning
  • sort list of VAE checkpoints (#12297)
  • use transparent white for mask in inpainting, along with an option to select the color (#12326)
  • move some settings to their own section: img2img, VAE
  • add checkbox to show/hide dirs for extra networks
  • Add TAESD(or more) options for all the VAE encode/decode operation (#12311)
  • gradio theme cache, new gradio themes, along with explanation that the user can input his own values (#12346, #12355)
  • sampler fixes/tweaks: s_tmax, s_churn, s_noise, s_tmax (#12354, #12356, #12357, #12358, #12375, #12521)
  • update README.md with correct instructions for Linux installation (#12352)
  • option to not save incomplete images, on by default (#12338)
  • enable cond cache by default
  • git autofix for repos that are corrupted (#12230)
  • allow to open images in new browser tab by middle mouse button (#12379)
  • automatically open webui in browser when running "locally" (#12254)
  • put commonly used samplers on top, make DPM++ 2M Karras the default choice
  • zoom and pan: option to auto-expand a wide image, improved integration (#12413, #12727)
  • option to cache Lora networks in memory
  • rework hires fix UI to use accordion
  • face restoration and tiling moved to settings - use "Options in main UI" setting if you want them back
  • change quicksettings items to have variable width
  • Lora: add Norm module, add support for bias (#12503)
  • Lora: output warnings in UI rather than fail for unfitting loras; switch to logging for error output in console
  • support search and display of hashes for all extra network items (#12510)
  • add extra noise param for img2img operations (#12564)
  • support for Lora with bias (#12584)
  • make interrupt quicker (#12634)
  • configurable gallery height (#12648)
  • make results column sticky (#12645)
  • more hash filename patterns (#12639)
  • make image viewer actually fit the whole page (#12635)
  • make progress bar work independently from live preview display which results in it being updated a lot more often
  • forbid Full live preview method for medvram and add a setting to undo the forbidding
  • make it possible to localize tooltips and placeholders
  • add option to align with sgm repo's sampling implementation (#12818)
  • Restore faces and Tiling generation parameters have been moved to settings out of main UI
    • if you want to put them back into main UI, use Options in main UI setting on the UI page.

Extensions and API:

  • gradio 3.41.2
  • also bump versions for packages: transformers, GitPython, accelerate, scikit-image, timm, tomesd
  • support tooltip kwarg for gradio elements: gr.Textbox(label='hello', tooltip='world')
  • properly clear the total console progressbar when using txt2img and img2img from API
  • add cmd_arg --disable-extra-extensions and --disable-all-extensions (#12294)
  • shared.py and webui.py split into many files
  • add --loglevel commandline argument for logging
  • add a custom UI element that combines accordion and checkbox
  • avoid importing gradio in tests because it spams warnings
  • put infotext label for setting into OptionInfo definition rather than in a separate list
  • make StableDiffusionProcessingImg2Img.mask_blur a property, make more inline with PIL GaussianBlur (#12470)
  • option to make scripts UI without gr.Group
  • add a way for scripts to register a callback for before/after just a single component's creation
  • use dataclass for StableDiffusionProcessing
  • store patches for Lora in a specialized module instead of inside torch
  • support http/https URLs in API (#12663, #12698)
  • add extra noise callback (#12616)
  • dump current stack traces when exiting with SIGINT
  • add type annotations for extra fields of shared.sd_model

Bug Fixes:

  • Don't crash if out of local storage quota for javascriot localStorage
  • XYZ plot do not fail if an exception occurs
  • fix missing TI hash in infotext if generation uses both negative and positive TI (#12269)
  • localization fixes (#12307)
  • fix sdxl model invalid configuration after the hijack
  • correctly toggle extras checkbox for infotext paste (#12304)
  • open raw sysinfo link in new page (#12318)
  • prompt parser: Account for empty field in alternating words syntax (#12319)
  • add tab and carriage return to invalid filename chars (#12327)
  • fix api only Lora not working (#12387)
  • fix options in main UI misbehaving when there's just one element
  • make it possible to use a sampler from infotext even if it's hidden in the dropdown
  • fix styles missing from the prompt in infotext when making a grid of batch of multiplie images
  • prevent bogus progress output in console when calculating hires fix dimensions
  • fix --use-textbox-seed
  • fix broken Lora/Networks: use old method option (#12466)
  • properly return None for VAE hash when using --no-hashing (#12463)
  • MPS/macOS fixes and optimizations (#12526)
  • add second_order to samplers that mistakenly didn't have it
  • when refreshing cards in extra networks UI, do not discard user's custom resolution
  • fix processing error that happens if batch_size is not a multiple of how many prompts/negative prompts there are (#12509)
  • fix inpaint upload for alpha masks (#12588)
  • fix exception when image sizes are not integers (#12586)
  • fix incorrect TAESD Latent scale (#12596)
  • auto add data-dir to gradio-allowed-path (#12603)
  • fix exception if extensuions dir is missing (#12607)
  • fix issues with api model-refresh and vae-refresh (#12638)
  • fix img2img background color for transparent images option not being used (#12633)
  • attempt to resolve NaN issue with unstable VAEs in fp32 mk2 (#12630)
  • implement missing undo hijack for SDXL
  • fix xyz swap axes (#12684)
  • fix errors in backup/restore tab if any of config files are broken (#12689)
  • fix SD VAE switch error after model reuse (#12685)
  • fix trying to create images too large for the chosen format (#12667)
  • create Gradio temp directory if necessary (#12717)
  • prevent possible cache loss if exiting as it's being written by using an atomic operation to replace the cache with the new version
  • set devices.dtype_unet correctly
  • run RealESRGAN on GPU for non-CUDA devices (#12737)
  • prevent extra network buttons being obscured by description for very small card sizes (#12745)
  • fix error that causes some extra networks to be disabled if both lora: and lyco: are present in the prompt
  • fix defaults settings page breaking when any of main UI tabs are hidden
  • fix incorrect save/display of new values in Defaults page in settings
  • fix for Reload UI function: if you reload UI on one tab, other opened tabs will no longer stop working
  • fix an error that prevents VAE being reloaded after an option change if a VAE near the checkpoint exists (#12797)
  • hide broken image crop tool (#12792)
  • don't show hidden samplers in dropdown for XYZ script (#12780)
  • fix style editing dialog breaking if it's opened in both img2img and txt2img tabs
  • fix a bug allowing users to bypass gradio and API authentication (reported by vysecurity)
  • fix notification not playing when built-in webui tab is inactive (#12834)
  • honor --skip-install for extension installers (#12832)
  • don't print blank stdout in extension installers (#12833, #12855)
  • do not change quicksettings dropdown option when value returned is None (#12854)
  • get progressbar to display correctly in extensions tab

1.5.2

Bug Fixes:

  • fix memory leak when generation fails
  • update doggettx cross attention optimization to not use an unreasonable amount of memory in some edge cases -- suggestion by MorkTheOrk

1.5.1

Minor:

  • support parsing text encoder blocks in some new LoRAs
  • delete scale checker script due to user demand

Extensions and API:

  • add postprocess_batch_list script callback

Bug Fixes:

  • fix TI training for SD1
  • fix reload altclip model error
  • prepend the pythonpath instead of overriding it
  • fix typo in SD_WEBUI_RESTARTING
  • if txt2img/img2img raises an exception, finally call state.end()
  • fix composable diffusion weight parsing
  • restyle Startup profile for black users
  • fix webui not launching with --nowebui
  • catch exception for non git extensions
  • fix some options missing from /sdapi/v1/options
  • fix for extension update status always saying "unknown"
  • fix display of extra network cards that have <> in the name
  • update lora extension to work with python 3.8

1.5.0

Features:

  • SD XL support
  • user metadata system for custom networks
  • extended Lora metadata editor: set activation text, default weight, view tags, training info
  • Lora extension rework to include other types of networks (all that were previously handled by LyCORIS extension)
  • show github stars for extensions
  • img2img batch mode can read extra stuff from png info
  • img2img batch works with subdirectories
  • hotkeys to move prompt elements: alt+left/right
  • restyle time taken/VRAM display
  • add textual inversion hashes to infotext
  • optimization: cache git extension repo information
  • move generate button next to the generated picture for mobile clients
  • hide cards for networks of incompatible Stable Diffusion version in Lora extra networks interface
  • skip installing packages with pip if they all are already installed - startup speedup of about 2 seconds

Minor:

  • checkbox to check/uncheck all extensions in the Installed tab
  • add gradio user to infotext and to filename patterns
  • allow gif for extra network previews
  • add options to change colors in grid
  • use natural sort for items in extra networks
  • Mac: use empty_cache() from torch 2 to clear VRAM
  • added automatic support for installing the right libraries for Navi3 (AMD)
  • add option SWIN_torch_compile to accelerate SwinIR upscale
  • suppress printing TI embedding info at start to console by default
  • speedup extra networks listing
  • added [none] filename token.
  • removed thumbs extra networks view mode (use settings tab to change width/height/scale to get thumbs)
  • add always_discard_next_to_last_sigma option to XYZ plot
  • automatically switch to 32-bit float VAE if the generated picture has NaNs without the need for --no-half-vae commandline flag.

Extensions and API:

  • api endpoints: /sdapi/v1/server-kill, /sdapi/v1/server-restart, /sdapi/v1/server-stop
  • allow Script to have custom metaclass
  • add model exists status check /sdapi/v1/options
  • rename --add-stop-route to --api-server-stop
  • add before_hr script callback
  • add callback after_extra_networks_activate
  • disable rich exception output in console for API by default, use WEBUI_RICH_EXCEPTIONS env var to enable
  • return http 404 when thumb file not found
  • allow replacing extensions index with environment variable

Bug Fixes:

  • fix for catch errors when retrieving extension index #11290
  • fix very slow loading speed of .safetensors files when reading from network drives
  • API cache cleanup
  • fix UnicodeEncodeError when writing to file CLIP Interrogator batch mode
  • fix warning of 'has_mps' deprecated from PyTorch
  • fix problem with extra network saving images as previews losing generation info
  • fix throwing exception when trying to resize image with I;16 mode
  • fix for #11534: canvas zoom and pan extension hijacking shortcut keys
  • fixed launch script to be runnable from any directory
  • don't add "Seed Resize: -1x-1" to API image metadata
  • correctly remove end parenthesis with ctrl+up/down
  • fixing --subpath on newer gradio version
  • fix: check fill size none zero when resize (fixes #11425)
  • use submit and blur for quick settings textbox
  • save img2img batch with images.save_image()
  • prevent running preload.py for disabled extensions
  • fix: previously, model name was added together with directory name to infotext and to [model_name] filename pattern; directory name is now not included

1.4.1

Bug Fixes:

  • add queue lock for refresh-checkpoints

1.4.0

Features:

  • zoom controls for inpainting
  • run basic torch calculation at startup in parallel to reduce the performance impact of first generation
  • option to pad prompt/neg prompt to be same length
  • remove taming_transformers dependency
  • custom k-diffusion scheduler settings
  • add an option to show selected settings in main txt2img/img2img UI
  • sysinfo tab in settings
  • infer styles from prompts when pasting params into the UI
  • an option to control the behavior of the above

Minor:

  • bump Gradio to 3.32.0
  • bump xformers to 0.0.20
  • Add option to disable token counters
  • tooltip fixes & optimizations
  • make it possible to configure filename for the zip download
  • [vae_filename] pattern for filenames
  • Revert discarding penultimate sigma for DPM-Solver++(2M) SDE
  • change UI reorder setting to multiselect
  • read version info form CHANGELOG.md if git version info is not available
  • link footer API to Wiki when API is not active
  • persistent conds cache (opt-in optimization)

Extensions:

  • After installing extensions, webui properly restarts the process rather than reloads the UI
  • Added VAE listing to web API. Via: /sdapi/v1/sd-vae
  • custom unet support
  • Add onAfterUiUpdate callback
  • refactor EmbeddingDatabase.register_embedding() to allow unregistering
  • add before_process callback for scripts
  • add ability for alwayson scripts to specify section and let user reorder those sections

Bug Fixes:

  • Fix dragging text to prompt
  • fix incorrect quoting for infotext values with colon in them
  • fix "hires. fix" prompt sharing same labels with txt2img_prompt
  • Fix s_min_uncond default type int
  • Fix for #10643 (Inpainting mask sometimes not working)
  • fix bad styling for thumbs view in extra networks #10639
  • fix for empty list of optimizations #10605
  • small fixes to prepare_tcmalloc for Debian/Ubuntu compatibility
  • fix --ui-debug-mode exit
  • patch GitPython to not use leaky persistent processes
  • fix duplicate Cross attention optimization after UI reload
  • torch.cuda.is_available() check for SdOptimizationXformers
  • fix hires fix using wrong conds in second pass if using Loras.
  • handle exception when parsing generation parameters from png info
  • fix upcast attention dtype error
  • forcing Torch Version to 1.13.1 for RX 5000 series GPUs
  • split mask blur into X and Y components, patch Outpainting MK2 accordingly
  • don't die when a LoRA is a broken symlink
  • allow activation of Generate Forever during generation

1.3.2

Bug Fixes:

  • fix files served out of tmp directory even if they are saved to disk
  • fix postprocessing overwriting parameters

1.3.1

Features:

  • revert default cross attention optimization to Doggettx

Bug Fixes:

  • fix bug: LoRA don't apply on dropdown list sd_lora
  • fix png info always added even if setting is not enabled
  • fix some fields not applying in xyz plot
  • fix "hires. fix" prompt sharing same labels with txt2img_prompt
  • fix lora hashes not being added properly to infotex if there is only one lora
  • fix --use-cpu failing to work properly at startup
  • make --disable-opt-split-attention command line option work again

1.3.0

Features:

  • add UI to edit defaults
  • token merging (via dbolya/tomesd)
  • settings tab rework: add a lot of additional explanations and links
  • load extensions' Git metadata in parallel to loading the main program to save a ton of time during startup
  • update extensions table: show branch, show date in separate column, and show version from tags if available
  • TAESD - another option for cheap live previews
  • allow choosing sampler and prompts for second pass of hires fix - hidden by default, enabled in settings
  • calculate hashes for Lora
  • add lora hashes to infotext
  • when pasting infotext, use infotext's lora hashes to find local loras for <lora:xxx:1> entries whose hashes match loras the user has
  • select cross attention optimization from UI

Minor:

  • bump Gradio to 3.31.0
  • bump PyTorch to 2.0.1 for macOS and Linux AMD
  • allow setting defaults for elements in extensions' tabs
  • allow selecting file type for live previews
  • show "Loading..." for extra networks when displaying for the first time
  • suppress ENSD infotext for samplers that don't use it
  • clientside optimizations
  • add options to show/hide hidden files and dirs in extra networks, and to not list models/files in hidden directories
  • allow whitespace in styles.csv
  • add option to reorder tabs
  • move some functionality (swap resolution and set seed to -1) to client
  • option to specify editor height for img2img
  • button to copy image resolution into img2img width/height sliders
  • switch from pyngrok to ngrok-py
  • lazy-load images in extra networks UI
  • set "Navigate image viewer with gamepad" option to false by default, by request
  • change upscalers to download models into user-specified directory (from commandline args) rather than the default models/<...>
  • allow hiding buttons in ui-config.json

Extensions:

  • add /sdapi/v1/script-info api
  • use Ruff to lint Python code
  • use ESlint to lint Javascript code
  • add/modify CFG callbacks for Self-Attention Guidance extension
  • add command and endpoint for graceful server stopping
  • add some locals (prompts/seeds/etc) from processing function into the Processing class as fields
  • 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 /sdapi/v1/refresh-loras api checkpoint post request
  • tests overhaul

Bug Fixes:

  • fix an issue preventing the program from starting if the user specifies a bad Gradio theme
  • fix broken prompts from file script
  • fix symlink scanning for extra networks
  • fix --data-dir ignored when launching via webui-user.bat COMMANDLINE_ARGS
  • allow web UI to be ran fully offline
  • fix inability to run with --freeze-settings
  • fix inability to merge checkpoint without adding metadata
  • fix extra networks' save preview image not adding infotext for jpeg/webm
  • remove blinking effect from text in hires fix and scale resolution preview
  • make links to http://<...>.git extensions work in the extension tab
  • fix bug with webui hanging at startup due to hanging git process

1.2.1

Features:

  • add an option to always refer to LoRA by filenames

Bug Fixes:

  • never refer to LoRA by an alias if multiple LoRAs have same alias or the alias is called none
  • fix upscalers disappearing after the user reloads UI
  • allow bf16 in safe unpickler (resolves problems with loading some LoRAs)
  • allow web UI to be ran fully offline
  • fix localizations not working
  • fix error for LoRAs: 'LatentDiffusion' object has no attribute 'lora_layer_mapping'

1.2.0

Features:

  • do not wait for Stable Diffusion model to load at startup
  • add filename patterns: [denoising]
  • directory hiding for extra networks: dirs starting with . will hide their cards on extra network tabs unless specifically searched for
  • LoRA: for the <...> text in prompt, use name of LoRA that is in the metadata of the file, if present, instead of filename (both can be used to activate LoRA)
  • LoRA: read infotext params from kohya-ss's extension parameters if they are present and if his extension is not active
  • LoRA: fix some LoRAs not working (ones that have 3x3 convolution layer)
  • LoRA: add an option to use old method of applying LoRAs (producing same results as with kohya-ss)
  • add version to infotext, footer and console output when starting
  • add links to wiki for filename pattern settings
  • add extended info for quicksettings setting and use multiselect input instead of a text field

Minor:

  • bump Gradio to 3.29.0
  • bump PyTorch to 2.0.1
  • --subpath option for gradio for use with reverse proxy
  • Linux/macOS: use existing virtualenv if already active (the VIRTUAL_ENV environment variable)
  • do not apply localizations if there are none (possible frontend optimization)
  • add extra None option for VAE in XYZ plot
  • print error to console when batch processing in img2img fails
  • create HTML for extra network pages only on demand
  • allow directories starting with . to still list their models for LoRA, checkpoints, etc
  • put infotext options into their own category in settings tab
  • do not show licenses page when user selects Show all pages in settings

Extensions:

  • tooltip localization support
  • add API method to get LoRA models with prompt

Bug Fixes:

  • re-add /docs endpoint
  • fix gamepad navigation
  • make the lightbox fullscreen image function properly
  • fix squished thumbnails in extras tab
  • keep "search" filter for extra networks when user refreshes the tab (previously it showed everything after you refreshed)
  • fix webui showing the same image if you configure the generation to always save results into same file
  • fix bug with upscalers not working properly
  • fix MPS on PyTorch 2.0.1, Intel Macs
  • make it so that custom context menu from contextMenu.js only disappears after user's click, ignoring non-user click events
  • prevent Reload UI button/link from reloading the page when it's not yet ready
  • fix prompts from file script failing to read contents from a drag/drop file

1.1.1

Bug Fixes:

  • fix an error that prevents running webui on PyTorch<2.0 without --disable-safe-unpickle

1.1.0

Features:

  • switch to PyTorch 2.0.0 (except for AMD GPUs)
  • visual improvements to custom code scripts
  • add filename patterns: [clip_skip], [hasprompt<>], [batch_number], [generation_number]
  • add support for saving init images in img2img, and record their hashes in infotext for reproducibility
  • automatically select current word when adjusting weight with ctrl+up/down
  • add dropdowns for X/Y/Z plot
  • add setting: Stable Diffusion/Random number generator source: makes it possible to make images generated from a given manual seed consistent across different GPUs
  • support Gradio's theme API
  • use TCMalloc on Linux by default; possible fix for memory leaks
  • add optimization option to remove negative conditioning at low sigma values #9177
  • embed model merge metadata in .safetensors file
  • extension settings backup/restore feature #9169
  • add "resize by" and "resize to" tabs to img2img
  • add option "keep original size" to textual inversion images preprocess
  • image viewer scrolling via analog stick
  • button to restore the progress from session lost / tab reload

Minor:

  • bump Gradio to 3.28.1
  • change "scale to" to sliders in Extras tab
  • add labels to tool buttons to make it possible to hide them
  • add tiled inference support for ScuNET
  • add branch support for extension installation
  • change Linux installation script to install into current directory rather than /home/username
  • sort textual inversion embeddings by name (case-insensitive)
  • allow styles.csv to be symlinked or mounted in docker
  • remove the "do not add watermark to images" option
  • make selected tab configurable with UI config
  • make the extra networks UI fixed height and scrollable
  • add disable_tls_verify arg for use with self-signed certs

Extensions:

  • add reload callback
  • add is_hr_pass field for processing

Bug Fixes:

  • fix broken batch image processing on 'Extras/Batch Process' tab
  • add "None" option to extra networks dropdowns
  • fix FileExistsError for CLIP Interrogator
  • fix /sdapi/v1/txt2img endpoint not working on Linux #9319
  • fix disappearing live previews and progressbar during slow tasks
  • fix fullscreen image view not working properly in some cases
  • prevent alwayson_scripts args param resizing script_arg list when they are inserted in it
  • fix prompt schedule for second order samplers
  • fix image mask/composite for weird resolutions #9628
  • use correct images for previews when using AND (see #9491)
  • one broken image in img2img batch won't stop all processing
  • fix image orientation bug in train/preprocess
  • fix Ngrok recreating tunnels every reload
  • fix --realesrgan-models-path and --ldsr-models-path not working
  • fix --skip-install not working
  • use SAMPLE file format in Outpainting Mk2 & Poorman
  • do not fail all LoRAs if some have failed to load when making a picture

1.0.0

  • everything