aboutsummaryrefslogtreecommitdiffstats
path: root/modules/images.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into embed-embeddings-in-imagesDepFA2022-10-091-2/+37
|\
| * Support `Download` for txt files.aoirusann2022-10-091-2/+37
| |
* | add caption image with overlayDepFA2022-10-091-0/+46
| |
* | Add pretty image captioning functionsDepFA2022-10-091-0/+31
|/
* Prefer using `Processed.sd_model_hash` attribute when filename patternMilly2022-10-061-1/+1
|
* Added job_timestamp to ProcessedMilly2022-10-061-1/+1
| | | | So `[job_timestamp]` pattern can use in saving image UI.
* Added styles to ProcessedMilly2022-10-061-6/+1
| | | | So `[styles]` pattern can use in saving image UI.
* Removed duplicate image saving codesMilly2022-10-061-3/+4
| | | | Use `modules.images.save_image()` instead.
* Merge pull request #1550 from RnDMonkey/#1484_fix_empty_styles_patternAUTOMATIC11112022-10-041-1/+1
|\ | | | | #1484 fix empty styles pattern
| * moved no-style return outside join functionRnDMonkey2022-10-031-1/+1
| |
* | Apply prompt pattern lastMilly2022-10-041-19/+20
|/
* Merge branch 'master' into #1484_fix_empty_styles_patternAUTOMATIC11112022-10-031-1/+6
|\
| * Merge branch 'master' into savingAUTOMATIC11112022-10-021-40/+37
| |\
| * | add advanced saving for save buttonWDevelopsWebApps2022-09-281-1/+4
| | |
* | | os.path.normpath wasn't working, reverting to manual stripRnDMonkey2022-10-021-2/+2
| | |
* | | use os.path.normpath for better safety checkingRnDMonkey2022-10-021-2/+2
| | |
* | | added safety for blank directory naming patternsRnDMonkey2022-10-021-2/+2
| |/ |/|
* | Merge remote-tracking branch 'origin/master'AUTOMATIC2022-09-301-1/+11
|\ \
| * | fixed so that {prompt} can be anywhere in styleRnDMonkey2022-09-301-1/+5
| | |
| * | refined [styles] pattern and added [prompt_no_styles]RnDMonkey2022-09-301-1/+7
| | |
* | | prevent neural network resizing when it is not necessary #1109AUTOMATIC2022-09-301-8/+10
|/ /
* | repair broken highres fix #1109AUTOMATIC2022-09-301-1/+1
| |
* | remove unwanted formatting/functionality from the PRAUTOMATIC2022-09-301-25/+12
| |
* | fix the bug with broken rescaling in PRAUTOMATIC2022-09-301-3/+11
| |
* | Holy $hit.d8ahazard2022-09-291-48/+36
|/ | | | | | | | | | | | | | | | | Yep. Fix gfpgan_model_arch requirement(s). Add Upscaler base class, move from images. Add a lot of methods to Upscaler. Re-work all the child upscalers to be proper classes. Add BSRGAN scaler. Add ldsr_model_arch class, removing the dependency for another repo that just uses regular latent-diffusion stuff. Add one universal method that will always find and load new upscaler models without having to add new "setup_model" calls. Still need to add command line params, but that could probably be automated. Add a "self.scale" property to all Upscalers so the scalers themselves can do "things" in response to the requested upscaling size. Ensure LDSR doesn't get stuck in a longer loop of "upscale/downscale/upscale" as we try to reach the target upscale size. Add typehints for IDE sanity. PEP-8 improvements. Moar.
* use strftime. update hints.jstateisu2022-09-261-1/+1
|
* add [datetime] to image file name patterntateisu2022-09-261-0/+1
|
* Changed job_id to timestampEyrie2022-09-251-1/+1
|
* Added job_id pattern for directoriesEyrie2022-09-251-0/+1
|
* added [styles] filename patternRnDMonkey2022-09-241-0/+1
|
* fix for inpaint at full resolution breaking if you have an NN upscaler.AUTOMATIC2022-09-231-1/+1
|
* Option to use advanced upscalers with normal img2imgAUTOMATIC2022-09-231-3/+12
|
* Merge from masterRobin Fernandes2022-09-231-1/+2
|\
| * Fixed directory name generation process.Prof-Cheese2022-09-221-1/+2
| | | | | | | | 'Max prompt words' has been added to config and modified to be used in the directory name generation process.
* | Add option to save before color correction. Add suffix param when saving ↵Robin Fernandes2022-09-221-2/+2
|/ | | | files, used for special saves without color correction and face restoration.
* Fixed filename part sanitizingMilly2022-09-201-5/+13
| | | | | | | | The following file patterns are invalid on Windows. - Begin or end with the ASCII Space (0x20) - End with the ASCII Period (0x2E) For example, if `[prompt_spaces]` is specified as the directory name pattern, sometimes file saving may fail.
* Support reusing filename stems during batch processing in Extras tabolivier2022-09-201-10/+14
|
* fix for broken export for 4chanAUTOMATIC2022-09-171-1/+1
|
* add support for switching model checkpoints at runtimeAUTOMATIC2022-09-171-1/+1
|
* fixAUTOMATIC2022-09-171-1/+0
|
* the last PR broke saving EXiF completely for me. I don't know if it was ↵AUTOMATIC2022-09-171-10/+7
| | | | broken already or some condition changed, but it seems like the person who originally added EXIF said, saving it with PIL may not work. I switched to using piexif to add data after the file written.
* image.save parameter fixJJ2022-09-171-3/+8
| | | | | | * image.save takes exif as a parameter * piexif takes the bytes as a parameter, not the exif_bytes function itself * reduce calls to create_exif_bytes
* Replace invalid filename chars with an underscoreTwizzes2022-09-161-1/+1
| | | | ... instead of removing them altogether. This makes the prompt editing filenames [old:new:step] easier to read
* Merge remote-tracking branch 'origin/master'AUTOMATIC2022-09-151-0/+3
|\
| * exif fix for webpJJ2022-09-151-0/+3
| | | | | | | | * fix for odd error only in webp files whereby piexif.insert inserts the bytes correctly, but image.save inserts extra "Exif" in the image metadata which results in an error on reading
* | fix for failing to save 4chan downscale for large iamgesAUTOMATIC2022-09-151-7/+8
|/
* Improved directory sanitization when --hide_ui_dir_configEyeDeck2022-09-151-1/+4
| | | | | | | | Fixes an issue where it's still possible to write to arbitrary directories through careful use of \.. or /.. in directory patterns ...and fix the regex to work better reeeegex
* Update images.pyMichoko2022-09-141-9/+10
| | | | Better code
* Update images.pyMichoko2022-09-141-5/+12
| | | | Handles grids names. Code more robust and doesn't fail if mixed with other files.
* Update images.pyMichoko2022-09-141-2/+14
| | | | Better computing of images indexes in filenames