aboutsummaryrefslogtreecommitdiff
path: root/modules/images.py
AgeCommit message (Collapse)Author
2022-10-04Merge pull request #1550 from RnDMonkey/#1484_fix_empty_styles_patternAUTOMATIC1111
#1484 fix empty styles pattern
2022-10-04Apply prompt pattern lastMilly
2022-10-02moved no-style return outside join functionRnDMonkey
2022-10-03Merge branch 'master' into #1484_fix_empty_styles_patternAUTOMATIC1111
2022-10-02Merge branch 'master' into savingAUTOMATIC1111
2022-10-01os.path.normpath wasn't working, reverting to manual stripRnDMonkey
2022-10-01use os.path.normpath for better safety checkingRnDMonkey
2022-10-01added safety for blank directory naming patternsRnDMonkey
2022-09-30Merge remote-tracking branch 'origin/master'AUTOMATIC
2022-09-30prevent neural network resizing when it is not necessary #1109AUTOMATIC
2022-09-30fixed so that {prompt} can be anywhere in styleRnDMonkey
2022-09-30refined [styles] pattern and added [prompt_no_styles]RnDMonkey
2022-09-30repair broken highres fix #1109AUTOMATIC
2022-09-30remove unwanted formatting/functionality from the PRAUTOMATIC
2022-09-30fix the bug with broken rescaling in PRAUTOMATIC
2022-09-29Holy $hit.d8ahazard
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.
2022-09-28add advanced saving for save buttonWDevelopsWebApps
2022-09-26use strftime. update hints.jstateisu
2022-09-26add [datetime] to image file name patterntateisu
2022-09-25Changed job_id to timestampEyrie
2022-09-25Added job_id pattern for directoriesEyrie
2022-09-24added [styles] filename patternRnDMonkey
2022-09-23fix for inpaint at full resolution breaking if you have an NN upscaler.AUTOMATIC
2022-09-23Option to use advanced upscalers with normal img2imgAUTOMATIC
2022-09-23Merge from masterRobin Fernandes
2022-09-22Fixed directory name generation process.Prof-Cheese
'Max prompt words' has been added to config and modified to be used in the directory name generation process.
2022-09-22Add option to save before color correction. Add suffix param when saving ↵Robin Fernandes
files, used for special saves without color correction and face restoration.
2022-09-20Fixed filename part sanitizingMilly
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.
2022-09-20Support reusing filename stems during batch processing in Extras tabolivier
2022-09-17fix for broken export for 4chanAUTOMATIC
2022-09-17add support for switching model checkpoints at runtimeAUTOMATIC
2022-09-17fixAUTOMATIC
2022-09-17the last PR broke saving EXiF completely for me. I don't know if it was ↵AUTOMATIC
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.
2022-09-17image.save parameter fixJJ
* 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
2022-09-16Replace invalid filename chars with an underscoreTwizzes
... instead of removing them altogether. This makes the prompt editing filenames [old:new:step] easier to read
2022-09-15Merge remote-tracking branch 'origin/master'AUTOMATIC
2022-09-15fix for failing to save 4chan downscale for large iamgesAUTOMATIC
2022-09-15exif fix for webpJJ
* 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
2022-09-15Improved directory sanitization when --hide_ui_dir_configEyeDeck
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
2022-09-14Update images.pyMichoko
Better code
2022-09-14Update images.pyMichoko
Handles grids names. Code more robust and doesn't fail if mixed with other files.
2022-09-14Update images.pyMichoko
Better computing of images indexes in filenames
2022-09-14updates for exif comments #446AUTOMATIC
2022-09-14format exif stringJJ
* UserComment needs an ID code at the start of the tag area. This is provided by piexif.helper.UserComment, otherwise an "Warning Invalid EXIF text encoding for UserComment" is thrown upon reading the exif data
2022-09-14prevent extras from saving in dirJustAnOkapi
Extras have none of the vars used in dir names, so they cant be saved into dirs. +grid code cleanup
2022-09-14add webp to file formats with exif savedJJ
2022-09-13revert the breaking change in font sneaked in by the person who did EXIF #407AUTOMATIC
2022-09-13add support for reading saved jpeg commentsAUTOMATIC
2022-09-13save the exif data upon image writeJJ
2022-09-13add metadata to jpg and non-png image filesJJ
* needs a piexif module install * dumps the info in an Exif "UserComment" * update to webui.bat