aboutsummaryrefslogtreecommitdiffstats
path: root/modules/images.py
AgeCommit message (Collapse)AuthorLines
2022-10-24modify unnecessary sting assignment as it's going to get overwrittenw-e-w-2/+2
2022-10-24move "file_decoration" initialize sectionw-e-w-12/+12
into "if forced_filename is None:" no need to initialize it if it's not going to be used
2022-10-24add callback after image is savedTrung Ngo-1/+2
2022-10-21Remove redundant try/except.timntorres-5/+1
2022-10-21Revise comments.timntorres-1/+1
2022-10-21Do nothing if image file already exists.timntorres-1/+5
2022-10-14Add option to prevent empty spots in grid (2/2)Gugubo-1/+4
2022-10-14Change grid row count autodetect to prevent empty spotsGugubo-2/+3
Instead of just rounding (sometimes resulting in grids with "empty" spots), find a divisor. For example: 8 images will now result in a 4x2 grid instead of a 3x3 with one empty spot.
2022-10-14make pasting into img2img prompt workAUTOMATIC-18/+18
make image params request not use temp files
2022-10-12Add drag/drop param loading.d8ahazard-0/+20
Drop an image or generational text onto the prompt bar, it loads the info for parsing.
2022-10-09Support `Download` for txt files.aoirusann-2/+37
2022-10-06Prefer using `Processed.sd_model_hash` attribute when filename patternMilly-1/+1
2022-10-06Added job_timestamp to ProcessedMilly-1/+1
So `[job_timestamp]` pattern can use in saving image UI.
2022-10-06Added styles to ProcessedMilly-6/+1
So `[styles]` pattern can use in saving image UI.
2022-10-06Removed duplicate image saving codesMilly-3/+4
Use `modules.images.save_image()` instead.
2022-10-04Merge pull request #1550 from RnDMonkey/#1484_fix_empty_styles_patternAUTOMATIC1111-1/+1
#1484 fix empty styles pattern
2022-10-04Apply prompt pattern lastMilly-19/+20
2022-10-02moved no-style return outside join functionRnDMonkey-1/+1
2022-10-03Merge branch 'master' into #1484_fix_empty_styles_patternAUTOMATIC1111-1/+6
2022-10-02Merge branch 'master' into savingAUTOMATIC1111-40/+37
2022-10-01os.path.normpath wasn't working, reverting to manual stripRnDMonkey-2/+2
2022-10-01use os.path.normpath for better safety checkingRnDMonkey-2/+2
2022-10-01added safety for blank directory naming patternsRnDMonkey-2/+2
2022-09-30Merge remote-tracking branch 'origin/master'AUTOMATIC-1/+11
2022-09-30prevent neural network resizing when it is not necessary #1109AUTOMATIC-8/+10
2022-09-30fixed so that {prompt} can be anywhere in styleRnDMonkey-1/+5
2022-09-30refined [styles] pattern and added [prompt_no_styles]RnDMonkey-1/+7
2022-09-30repair broken highres fix #1109AUTOMATIC-1/+1
2022-09-30remove unwanted formatting/functionality from the PRAUTOMATIC-25/+12
2022-09-30fix the bug with broken rescaling in PRAUTOMATIC-3/+11
2022-09-29Holy $hit.d8ahazard-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.
2022-09-28add advanced saving for save buttonWDevelopsWebApps-1/+4
2022-09-26use strftime. update hints.jstateisu-1/+1
2022-09-26add [datetime] to image file name patterntateisu-0/+1
2022-09-25Changed job_id to timestampEyrie-1/+1
2022-09-25Added job_id pattern for directoriesEyrie-0/+1
2022-09-24added [styles] filename patternRnDMonkey-0/+1
2022-09-23fix for inpaint at full resolution breaking if you have an NN upscaler.AUTOMATIC-1/+1
2022-09-23Option to use advanced upscalers with normal img2imgAUTOMATIC-3/+12
2022-09-23Merge from masterRobin Fernandes-1/+2
2022-09-22Fixed directory name generation process.Prof-Cheese-1/+2
'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-2/+2
files, used for special saves without color correction and face restoration.
2022-09-20Fixed filename part sanitizingMilly-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.
2022-09-20Support reusing filename stems during batch processing in Extras tabolivier-10/+14
2022-09-17fix for broken export for 4chanAUTOMATIC-1/+1
2022-09-17add support for switching model checkpoints at runtimeAUTOMATIC-1/+1
2022-09-17fixAUTOMATIC-1/+0
2022-09-17the last PR broke saving EXiF completely for me. I don't know if it was ↵AUTOMATIC-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.
2022-09-17image.save parameter fixJJ-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
2022-09-16Replace invalid filename chars with an underscoreTwizzes-1/+1
... instead of removing them altogether. This makes the prompt editing filenames [old:new:step] easier to read