aboutsummaryrefslogtreecommitdiffstats
path: root/modules/images.py
Commit message (Collapse)AuthorAgeFilesLines
* Add PNG info to pngs only if option is enabled.timntorres2022-11-011-2/+3
|
* Update images.pyYaiol2022-10-281-4/+5
| | | | Filename tags [height] and [width] are wrongly referencing to process size instead of resulting image size. Making all upscale files named wrongly.
* add script callback for before image save and change callback for after ↵AUTOMATIC2022-10-261-18/+24
| | | | image save to use a class with parameters
* default_time_format if format is blankw-e-w2022-10-261-1/+1
|
* images: allow nested bracket in filename patternMilly2022-10-261-7/+4
|
* fix default filename patternw-e-w2022-10-251-1/+3
|
* Merge branch 'master' into on-image-saved-callbackAUTOMATIC11112022-10-251-62/+134
|\
| * UnknownTimeZoneErrorw-e-w2022-10-241-1/+4
| |
| * add an option to skip adding number to filenames when saving.AUTOMATIC2022-10-241-120/+130
| | | | | | | | rework filename pattern function go through the pattern once and not calculate any of replacements until they are actually encountered in the pattern.
| * use the same datetime object for [date] and [datetime]w-e-w2022-10-241-2/+3
| |
| * replace_datetime() can now accept a datetime parameterw-e-w2022-10-241-5/+11
| |
| * remove lowercasing file_decoration as it is not needed anymorew-e-w2022-10-241-1/+1
| |
| * add sanitize_filename() to datetimew-e-w2022-10-241-0/+1
| |
| * replace "srt.replace()" in apply_filename_pattern() with equivalent re.sub()w-e-w2022-10-241-18/+17
| | | | | | | | | | | | | | | | | | | | | | the file_decoration passed into apply_filename_pattern() is formatted to lowercase to increase compatibility the use of case sensitive srt.replace() but because the newly implemented "time format" is case sensitive the lowercasing the file_decoration will cause time format to be broken in order to resolve this issue I decided to replace every srt.replace() and in if "str" in x to regular expression (case insensitive) equivalent
| * filename pattern [datetime], extended customizable Format and Time Zonew-e-w2022-10-241-1/+53
| | | | | | | | | | | | | | format: [datetime] [datetime<Format>] [datetime<Format><Time Zone>]
| * modify unnecessary sting assignment as it's going to get overwrittenw-e-w2022-10-241-2/+2
| |
| * move "file_decoration" initialize sectionw-e-w2022-10-241-12/+12
| | | | | | | | | | into "if forced_filename is None:" no need to initialize it if it's not going to be used
* | add callback after image is savedTrung Ngo2022-10-241-1/+2
|/
* Remove redundant try/except.timntorres2022-10-211-5/+1
|
* Revise comments.timntorres2022-10-211-1/+1
|
* Do nothing if image file already exists.timntorres2022-10-211-1/+5
|
* Add option to prevent empty spots in grid (2/2)Gugubo2022-10-141-1/+4
|
* Change grid row count autodetect to prevent empty spotsGugubo2022-10-141-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.
* make pasting into img2img prompt workAUTOMATIC2022-10-141-18/+18
| | | | make image params request not use temp files
* Add drag/drop param loading.d8ahazard2022-10-121-0/+20
| | | | Drop an image or generational text onto the prompt bar, it loads the info for parsing.
* Support `Download` for txt files.aoirusann2022-10-091-2/+37
|
* 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
|