Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Mapleshade20/archive
* fix for the broken run_git calls * Use fixed size for sub-quadratic chunking on MPS Even if this causes chunks to be much smaller, performance isn't significantly impacted. This will usually reduce memory usage but should also help with poor performance when free memory is low. * Make sub-quadratic the default for MPS * `torch.empty` can create issues; use `torch.zeros` For MPS, using a tensor created with `torch.empty()` can cause `torch.baddbmm()` to include NaNs in the tensor it returns, even though `beta=0`. However, with a tensor of shape [1,1,1], there should be a negligible performance difference between `torch.empty()` and `torch.zeros()` anyway, so it's better to just use `torch.zeros()` for this and avoid unnecessarily creating issues. * `git checkout` with commit hash * Change the repositories origin URLs when necessary * Mac k-diffusion workarounds are no longer needed * Remove duplicate code for torchsde randn * Fix DDIM and PLMS samplers on MPS * fix broken XYZ plot seeds add new callback for scripts to be used before processing * Fix typo in launch_utils.py existance -> existence * fix 2 for git code botched by previous PRs * also use setup callback for the refiner instead of before_process * add res(dpmdd 2m sde heun) and reorder the sampler list * Fix MHA updown err and support ex-bias for no-bias layer * repair DDIM/PLMS/UniPC batches * make on_before_component/on_after_component possible earlier * Put frequently used sampler back * remove "if bias exist" check * revert to applying mask before denoising for k-diffusion, like it was before * repair /docs page * Fix typo in shared_options.py unperdictable -> unpredictable * further repair the /docs page to not break styles with the attempted fix * return seed controls UI to how it was before * fix API always using -1 as seed * hires prompt timeline: merge to latests, slightly simplify diff * add second_order to samplers that mistakenly didn't have it * separate Extra options * Update hash for SD XL Repo * revert changed inpainting mask conditioning calculation after AUTOMATIC1111#12311 * when refreshing cards in extra networks UI, do not discard user's custom resolution * correctly add Eta DDIM to infotext when it's 1.0 and do not add it when it's 0.0. * get XYZ plot to work with recent changes to refined specified in fields of p rather than in settings * fix processing error that happens if batch_size is not a multiple of how many prompts/negative prompts there are AUTOMATIC1111#12509 * Add extra img2img noise * Add NoCrypt/miku gradio theme * update changelog file * Add PR refs to changelog * Use the new SD VAE override setting * Update CHANGELOG.md * full module with ex_bias * store patches for Lora in a specialized module * lint * RNG: Make all elements of shape `int`s * Fix inpaint upload for alpha masks, create reusable function * CSS: Remove forced visible overflow for Gradio group child divs * Remove wrong scale * RAM optimization round 2 * send weights to target device instead of CPU memory * Revert "send weights to target device instead of CPU memory" This reverts commit 0815c45. * send weights to target device instead of CPU memory * auto add data-dir to gradio-allowed-path * return empty list if extensions_dir not exist * Add extra noise callback * resolve the issue with loading fp16 checkpoints while using --no-half * Attempt to resolve NaN issue with unstable VAEs in fp32 mk2 * Fix img2img background color not being used * Add option for faster live interrupt * Make image viewer actually fit the whole page * fix issues with model refresh * remove unused import * image hash * negative_prompt full_prompt hash * fix model override logic do not need extra logic to unload refine model * Make results column sticky * Gallery: Set preview to True, allow custom height * Exit out of hires fix if interrupted earlier * fix typo `txt2txt` -> `txt2img` * run python unbuffered so output shows up in docker logs * xformers update * more grammar fixes * refactor: Update ui.js * api support get image from url * second appearance * revert xformers back to 0.0.20 * do not assign to vae_dict * possible fix for dictionary changed size during iteration * implement undo hijack for SDXL * switch to PNG when images too large * fix xyz swap axes make csv_string_to_list_strip function * Fix SD VAE switch error after model reuse * Add resize-handler extension * catch error when loading config_states and save config_states with indent * assert key created_at exist in config_states * no need to use OrderedDict * make it obvious that a config_status is corrupted also format HTML removing unnecessary text blocks * make live preview display work independently from progress bar * make live previews play nice with window/slider resizes * make mobile built-in extension actually do something * Store base_vae and loaded_vae_file in sd_model * Change to access sd_model attribute with dot * fix for small images in live previews not being scaled up * Change where VAE state are stored in model * fix potential ssrf attack in AUTOMATIC1111#12663 * Update torch for Navi 31 (7900 XT/XTX) Navi 3 needs at least 5.5 which is only on the nightly chain, previous versions are no longer online (torch==2.1.0.dev-20230614+rocm5.5 torchvision==0.16.0.dev-20230614+rocm5.5 torchaudio==2.1.0.dev-20230614+rocm5.5). so switch to nightly rocm5.6 without explicit versions this time * Fix for consistency with shared.opts.sd_vae of UI * add settings for http/https URLs in source images in api * prevent API options from being changed via API * make resize handle available to extensions * also prevent changing API options via override_settings * feat: replace threading.Lock() to FIFOLock Signed-off-by: AnyISalIn <[email protected]> * ditch --always-batch-cond-uncond in favor of an UI setting * add citation * citation mk2 * forbid Full live preview method for medvram and add a setting to undo the forbidding * add RNG source to XYZ * Reset columns on resize handle dblclick * Make Gradio temp directory if it doesn't exist Gradio normally creates the temp directory in `pil_to_temp_file()` (https://github.com/gradio-app/gradio/blob/861d752a83da0f95e9f79173069b69eababeed39/gradio/components/base.py#L313) but since the Gradio implementation of `pil_to_temp_file()` is replaced with `save_pil_to_file()`, the Gradio temp directory should also be created by `save_pil_to_file()` when necessary. * remove unneeded example_inputs from gradio config * attemped solution to the uncommon hanging problem that is seemingly caused by live previews working on the tensor as denoising * Fix resize handle overflowing in Safari * Expand the hit area of resize handle * actual solution to the uncommon hanging problem that is seemingly caused by multiple progress requests working on same tensor * Prevent text selection and cursor changes * dump current stack traces when exiting with SIGINT * Update README.md with Intel install instructions * for live previews, only hide gallery after at least one live previews pic has been received fix blinking for live previews fix a clientside live previews exception that happens when you kill serverside during sampling match the size of live preview image to gallery image * Limit mouse detection to primary button only * make it possible to localize tooltips and placeholders * Replace tabs with spaces * fix broken generate button if not using live previews * eslint * Fix double click event not firing * Improve integration, fix for new gradio * use an atomic operation to replace the cache with the new version * add --medvram-sdxl * add type annotations for extra fields of shared.sd_model * fix endless progress requests * Removed the old code * lint * set devices.dtype_unet correctly * tell RealESRGANer which device to run on, could be cuda, M1, or other GPU * 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 * update changelog * draw extra network buttons above description * Fixing and improving integration * remove console.log * bump gradio version * add infotext for use_old_scheduling option * update changelog * update info about gradio in changelog file * Zoom and Pan: Resize handler * fix incorrect save/display of new values in Defaults page in settings * 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 * update gradio to 3.41.2 * update changelog * fix for Reload UI function: if you reload UI on one tab, other opened tabs will no longer stop working * Merge pull request AUTOMATIC1111#12795 from catboxanon/prevent-duplicate-resize-handler-mk2 Prevent duplicate resize handler * Merge pull request AUTOMATIC1111#12797 from Madrawn/vae_resolve_bug Small typo: vae resolve bug * Merge pull request AUTOMATIC1111#12792 from catboxanon/image-cropper-hide Hide broken image crop tool * Merge pull request AUTOMATIC1111#12780 from catboxanon/xyz-hide-samplers Don't show hidden samplers in dropdown for XYZ script * fix style editing dialog breaking if it's opened in both img2img and txt2img tabs * update changelog * lint * hide --gradio-auth and --api-auth values from /internal/sysinfo report * update changelog * Merge pull request AUTOMATIC1111#12814 from AUTOMATIC1111/non-local-condition non-local condition * Merge pull request AUTOMATIC1111#12819 from catboxanon/fix/rng-infotext Add missing infotext for RNG in options * always show NV as RNG source in infotext * Merge pull request AUTOMATIC1111#12842 from dhwz/dev remove xformers Python version check * Merge pull request AUTOMATIC1111#12837 from bluelovers/pr/file-metadata-break-001 style: file-metadata word-break * Merge pull request AUTOMATIC1111#12818 from catboxanon/sgm Add option to align with sgm repo's sampling implementation * Merge pull request AUTOMATIC1111#12834 from catboxanon/fix/notification-tab-switch Fix notification not playing when built-in webui tab is inactive * Merge pull request AUTOMATIC1111#12832 from catboxanon/fix/skip-install-extensions Honor `--skip-install` for extension installers * Merge pull request AUTOMATIC1111#12833 from catboxanon/fix/dont-print-blank-stdout Don't print blank stdout in extension installers * revert SGM noise multiplier change for img2img because it breaks hires fix * Merge pull request AUTOMATIC1111#12856 from catboxanon/extra-noise-noisy-latent Add noisy latent to `ExtraNoiseParams` for callback * Merge pull request AUTOMATIC1111#12855 from dhwz/dev don't print empty lines * Merge pull request AUTOMATIC1111#12854 from catboxanon/fix/quicksettings-dropdown-unfocus Do not change quicksettings dropdown option when value returned is `None` * Merge pull request AUTOMATIC1111#12839 from ibrainventures/patch-1 [RC 1.6.0 - zoom is partly hidden] Update style.css * get progressbar to display correctly in extensions tab * Merge pull request AUTOMATIC1111#12838 from bluelovers/pr/file-metadata-path-001 display file metadata `path` , `ss_output_name` * go back to single path for filenames in extra networks metadata dialog * Merge pull request AUTOMATIC1111#12851 from bluelovers/pr/extension-time-001 chore: change extension time format * update changelog * keep order in list of checkpoints when loading model that doesn't have a checksum * Merge pull request AUTOMATIC1111#12864 from AUTOMATIC1111/extension-time-format-time-zone patch Extension time format in systme time zone * Merge pull request AUTOMATIC1111#12865 from AUTOMATIC1111/another-convert-to-system-time-zone extension update time, convert to system time zone * add an option to choose how to combine hires fix and refiner * fix inpainting models in txt2img creating black pictures * add information about Restore faces and Tiling into the changelog * add --dump-sysinfo, a cmd arg to dump limited sysinfo file at startup * update bug report template to include sysinfo and not include all other fields that are already covered by sysinfo * fix an issue where VAE would remain in fp16 after an auto-switch to fp32 * fix an issue where using hires fix with refiner on first pass with medvram would cause an exception when generating * Merge pull request AUTOMATIC1111#12876 from ljleb/fix-re Fix generation params regex --------- Signed-off-by: AnyISalIn <[email protected]> Co-authored-by: AUTOMATIC1111 <[email protected]> Co-authored-by: brkirch <[email protected]> Co-authored-by: Ikko Eltociear Ashimine <[email protected]> Co-authored-by: Kohaku-Blueleaf <[email protected]> Co-authored-by: whitebell <[email protected]> Co-authored-by: Robert Barron <[email protected]> Co-authored-by: w-e-w <[email protected]> Co-authored-by: catboxanon <[email protected]> Co-authored-by: NoCrypt <[email protected]> Co-authored-by: Cade Schlaefli <[email protected]> Co-authored-by: S-Del <[email protected]> Co-authored-by: Dan <[email protected]> Co-authored-by: XDOneDude <[email protected]> Co-authored-by: bluelovers <[email protected]> Co-authored-by: SpenserCai <[email protected]> Co-authored-by: Uminosachi <[email protected]> Co-authored-by: akiba <[email protected]> Co-authored-by: fraz0815 <[email protected]> Co-authored-by: AnyISalIn <[email protected]> Co-authored-by: MMP0 <[email protected]> Co-authored-by: Ravi Panchumarthy <[email protected]> Co-authored-by: Danil Boldyrev <[email protected]> Co-authored-by: yajun <[email protected]>
- Loading branch information