aboutsummaryrefslogtreecommitdiffstats
path: root/modules/images.py
Commit message (Collapse)AuthorAgeFilesLines
* Simplify a bunch of `len(x) > 0`/`len(x) == 0` style expressionsAarni Koskela2023-06-021-3/+3
|
* remove redundantw-e-w2023-05-311-2/+0
|
* fix 10896 pnginfo parametersw-e-w2023-05-311-2/+0
|
* rename print_error to report, use it with together with package nameAUTOMATIC2023-05-311-3/+2
|
* Merge pull request #10808 from AUTOMATIC1111/fix-disable-png-infoAUTOMATIC11112023-05-311-3/+6
|\ | | | | fix disable png info
| * fix disable png infow-e-w2023-05-281-3/+6
| |
* | Add & use modules.errors.print_error where currently printing exception info ↵Aarni Koskela2023-05-291-6/+3
|/ | | | by hand
* Merge pull request #10655 from fumitakayano/fumitakayanoAUTOMATIC11112023-05-271-0/+14
|\ | | | | Added format to specify VAE filename for generated image filenames
| * Subject:.fumitaka.yano2023-05-231-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.
* | Merge pull request #10569 from strelokhalfer/prAUTOMATIC11112023-05-271-3/+7
|\ \ | | | | | | Change 'images.zip' to pattern settings
| * | Changed 'images.zip' to generation by patternstrelokhalfer2023-05-241-3/+7
| | |
* | | Remove try/except in img metadata readcatboxanon2023-05-251-4/+1
| | |
* | | Cleaner image metadata readcatboxanon2023-05-241-2/+6
|/ /
* | use a single function for saving images with metadata both in extra networks ↵AUTOMATIC2023-05-171-29/+41
| | | | | | | | and main mode for #10395
* | Autofix Ruff W (not W605) (mostly whitespace)Aarni Koskela2023-05-111-1/+1
| |
* | Drop fonts + font-roboto deps since we only use the single regular cut of RobotoAarni Koskela2023-05-111-3/+3
| |
* | Deduplicate get_font codeAarni Koskela2023-05-111-6/+7
| |
* | fixes for B007AUTOMATIC2023-05-101-1/+1
| |
* | imports cleanup for ruffAUTOMATIC2023-05-101-1/+1
| |
* | manual fixes for ruffAUTOMATIC2023-05-101-2/+2
| |
* | autofixes from ruffAUTOMATIC2023-05-101-2/+2
|/
* Fix up string formatting/concatenation to f-strings where feasibleAarni Koskela2023-05-091-4/+4
|
* add denoising strength filename patternw-e-w2023-05-051-0/+1
|
* rework [batch_number]/[generation_number] filename patternsAUTOMATIC2023-04-291-11/+10
|
* Merge branch 'dev' into masterAUTOMATIC11112023-04-291-0/+18
|\
| * Merge branch 'dev' into Branch_AddNewFilenameGenAUTOMATIC11112023-04-291-3/+9
| |\
| | * Add self argument that is mandatory to [clip_skip] filename pattern.File_xor2023-04-161-1/+1
| | |
| | * Add filename pattern for CLIP_stop_at_last_layers.File_xor2023-04-161-0/+1
| | |
| * | Add new FilenameGenerator [hasprompt<prompt1|default><prompt2>..]tqwuliao2023-04-151-0/+17
| | |
* | | Add [batch_number] and [generation_number] filename patternsgk2023-04-071-0/+6
| |/ |/|
* | for img2img, use None as upscaler instead of erroring out if the desired ↵AUTOMATIC2023-03-261-2/+5
| | | | | | | | upscaler is not found
* | bump gradio to 3.23AUTOMATIC2023-03-251-1/+3
|/ | | | fix broken image dragging
* update `fullfn` properlyAlex "mcmonkey" Goodwin2023-03-121-0/+1
|
* add safety check in case of short extensionsAlex "mcmonkey" Goodwin2023-03-121-1/+1
| | | | so eg if a two-letter or empty extension is used, `.txt` would break, this `max` call protects that.
* relocate filename length limit to better spotAlex "mcmonkey" Goodwin2023-03-121-3/+4
|
* initial fix for filename length limits on *nix systemsAlex "mcmonkey" Goodwin2023-03-111-0/+3
|
* Add lossless webp optionmissionfloyd2023-02-251-1/+1
|
* convert resolution to int using round()w-e-w2023-02-201-2/+2
|
* Merge pull request #7691 from missionfloyd/16bit-convertAUTOMATIC11112023-02-191-0/+2
|\ | | | | Convert 16-bit greyscale to 8-bit when saving as JPEG
| * Use RGB for webpmissionfloyd2023-02-101-1/+1
| | | | | | Doesn't support greyscale (L)
| * Convert 16-bit greyscale to 8-bit when saving as JPEGmissionfloyd2023-02-091-0/+2
| |
* | reword settings for 4chan export, remove unneded try/excepts, add try/except ↵AUTOMATIC2023-02-191-15/+9
| | | | | | | | for actually saving JPG
* | use Default if ValueErrorw-e-w2023-02-051-2/+10
| |
* | configurable image downscalew-e-w2023-02-051-2/+2
|/ | | | allowing the user to configure the image downscale parameters in setting
* adds grid margins to xyz plot and prompt matrixEllangoK2023-02-051-3/+3
|
* Add prompt_hash option for file/dir name patterntechneconn2023-02-051-0/+2
|
* add margin parameter to draw_grid_annotationsAUTOMATIC2023-02-041-7/+10
|
* Reduce grid rows if larger than number of images availableglop1022023-01-291-0/+2
| | | | | | | | When a set number of grid rows is specified in settings, then it leads to situations where an entire row in the grid is empty. The most noticable example is the processing preview when the row count is set to 2, where it shows the preview just fine but with a black rectangle under it.
* handling sub grids and merging into oneEllangoK2023-01-241-1/+1
|
* make it so that PNG images with EXIF do not lose parameters in PNG info tabAUTOMATIC2023-01-171-2/+3
|