aboutsummaryrefslogtreecommitdiffstats
path: root/modules/images.py
AgeCommit message (Collapse)AuthorLines
2023-07-19bugfix: model name was added together with directory name to infotext and to ↵AUTOMATIC1111-1/+1
[model_name] filename pattern
2023-07-14Added [none] filename token.Marcus Adams-2/+3
2023-07-13Merge pull request #11748 from huaizong/fix/x/resize-less-than-two-pixel-errorAUTOMATIC1111-4/+6
fix: check fill size none zero when resize (fixes #11425)
2023-07-12fix: check fill size none zero when resize (fixes #11425)王怀宗-4/+6
2023-07-08Merge pull request #11468 from NoCrypt/grid-colors-optionsAUTOMATIC1111-6/+8
Add options to change colors in grid
2023-07-08lint fix for #11492AUTOMATIC1111-1/+1
2023-07-08Merge pull request #11596 from akx/use-read-infoAUTOMATIC1111-5/+12
postprocessing: use read_info_from_image
2023-07-08Merge pull request #11492 from semjon00/devAUTOMATIC1111-3/+9
Fix throwing exception when trying to resize image with I;16 mode
2023-07-08fix problem with extra network saving images as previews losing generation infoAUTOMATIC1111-2/+12
add a description for save_image_with_geninfo
2023-07-05Fix throwing exception when trying to resize image with I;16 modesemjon00-3/+9
2023-07-03read_info_from_image: don't mutate info in passed-in imageAarni Koskela-1/+1
2023-07-03read_info_from_image: add typeAarni Koskela-1/+3
2023-07-03read_info_from_image: add `photoshop` to ignoredAarni Koskela-3/+8
2023-06-28Fix lintNoCrypt-1/+1
2023-06-28RevisionNoCrypt-4/+9
2023-06-28Add options to change colors in gridNoCrypt-8/+5
2023-06-27Merge branch 'dev' into 10141-gradio-user-exifAUTOMATIC1111-15/+29
2023-06-15Add a user pattern to the filename generatorJared Deckard-0/+1
2023-06-02Simplify a bunch of `len(x) > 0`/`len(x) == 0` style expressionsAarni Koskela-3/+3
2023-06-02Merge pull request #10905 from AUTOMATIC1111/fix-10896-pnginfo-parametersAUTOMATIC1111-4/+0
fix 10896 pnginfo parameters
2023-06-01remove redundantw-e-w-2/+0
2023-06-01fix 10896 pnginfo parametersw-e-w-2/+0
2023-05-31Merge pull request #10808 from AUTOMATIC1111/fix-disable-png-infoAUTOMATIC1111-3/+6
fix disable png info
2023-05-31rename print_error to report, use it with together with package nameAUTOMATIC-3/+2
2023-05-31Merge pull request #10808 from AUTOMATIC1111/fix-disable-png-infoAUTOMATIC1111-3/+6
fix disable png info
2023-05-29Add & use modules.errors.print_error where currently printing exception info ↵Aarni Koskela-6/+3
by hand
2023-05-29fix disable png infow-e-w-3/+6
2023-05-27Merge pull request #10655 from fumitakayano/fumitakayanoAUTOMATIC1111-0/+14
Added format to specify VAE filename for generated image filenames
2023-05-27Merge pull request #10569 from strelokhalfer/prAUTOMATIC1111-3/+7
Change 'images.zip' to pattern settings
2023-05-25Remove try/except in img metadata readcatboxanon-4/+1
2023-05-24Cleaner image metadata readcatboxanon-2/+6
2023-05-24Changed 'images.zip' to generation by patternstrelokhalfer-3/+7
2023-05-23Subject:.fumitaka.yano-0/+14
Improvements to handle VAE filenames in generated image filenames Body:. 1) Added new line 24 to import sd_vae module. 2) Added new method get_vae_filename at lines 340-349 to obtain the VAE filename to be used for image generation and further process it to extract only the filename by splitting it with a dot symbol. 3) Added a new lambda function 'vae_filename' at line 373 to handle VAE filenames. Reason:. A function was needed to get the VAE filename and handle it in the program. Test:. We tested whether we could use this new functionality to get the expected file names. The correct behaviour was confirmed for the following commonly distributed VAE files. vae-ft-mse-840000-ema-pruned.safetensors -> vae-ft-mse-840000-ema-pruned anything-v4.0.vae.pt -> anything-v4.0 ruff response:. There were no problems with the code I added. There was a minor configuration error in a line I did not modify, but I did not modify it as it was not relevant to this modification. Logged. images.py:426:56: F841 [*] Local variable `_` is assigned to but never used images.py:432:43: F841 [*] Local variable `_` is assigned to but never used Impact:. This change makes it easier to retrieve the VAE filename used for image generation and use it in the programme.
2023-05-17use a single function for saving images with metadata both in extra networks ↵AUTOMATIC-29/+41
and main mode for #10395
2023-05-11Autofix Ruff W (not W605) (mostly whitespace)Aarni Koskela-1/+1
2023-05-11Drop fonts + font-roboto deps since we only use the single regular cut of RobotoAarni Koskela-3/+3
2023-05-11Deduplicate get_font codeAarni Koskela-6/+7
2023-05-10fixes for B007AUTOMATIC-1/+1
2023-05-10imports cleanup for ruffAUTOMATIC-1/+1
2023-05-10manual fixes for ruffAUTOMATIC-2/+2
2023-05-10autofixes from ruffAUTOMATIC-2/+2
2023-05-09Fix up string formatting/concatenation to f-strings where feasibleAarni Koskela-4/+4
2023-05-06add denoising strength filename patternw-e-w-0/+1
2023-04-29rework [batch_number]/[generation_number] filename patternsAUTOMATIC-11/+10
2023-04-29Merge branch 'dev' into masterAUTOMATIC1111-0/+18
2023-04-29Merge branch 'dev' into Branch_AddNewFilenameGenAUTOMATIC1111-3/+9
2023-04-16Add self argument that is mandatory to [clip_skip] filename pattern.File_xor-1/+1
2023-04-16Add filename pattern for CLIP_stop_at_last_layers.File_xor-0/+1
2023-04-15Add new FilenameGenerator [hasprompt<prompt1|default><prompt2>..]tqwuliao-0/+17
2023-04-07Add [batch_number] and [generation_number] filename patternsgk-0/+6