101 Commits (e5b4e3f820cd09e751f1d168ab05d606d078a0d9)

Author SHA1 Message Date
timntorres 8792be5007 Add PNG info to pngs only if option is enabled. 3 years ago
Yaiol 539c0f51e4 Update images.py
Filename tags [height] and [width] are wrongly referencing to process size instead of resulting image size. Making all upscale files named wrongly.
3 years ago
AUTOMATIC 0cd7460253 add script callback for before image save and change callback for after image save to use a class with parameters 3 years ago
w-e-w 757264c453 default_time_format if format is blank 3 years ago
Milly 146856f66d images: allow nested bracket in filename pattern 3 years ago
w-e-w 91c1e1e6a9 fix default filename pattern 3 years ago
AUTOMATIC1111 16416e42b5
Merge branch 'master' into on-image-saved-callback 3 years ago
w-e-w 0c0028a9d3 UnknownTimeZoneError 3 years ago
AUTOMATIC 8da1bd48bf add an option to skip adding number to filenames when saving.
rework filename pattern function go through the pattern once and not calculate any of replacements until they are actually encountered in the pattern.
3 years ago
w-e-w eb007e5884 use the same datetime object for [date] and [datetime] 3 years ago
w-e-w 5a981310e6 replace_datetime() can now accept a datetime parameter 3 years ago
w-e-w 8f6af4ed65 remove lowercasing file_decoration as it is not needed anymore 3 years ago
w-e-w 00952fb4a8 add sanitize_filename() to datetime 3 years ago
w-e-w 480d8e7646 replace "srt.replace()" in apply_filename_pattern() with equivalent re.sub()
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
3 years ago
w-e-w 37dd6deafb filename pattern [datetime], extended customizable Format and Time Zone
format:
[datetime]
[datetime<Format>]
[datetime<Format><Time Zone>]
3 years ago
w-e-w 7d4a4db9ea modify unnecessary sting assignment as it's going to get overwritten 3 years ago
w-e-w c5d90628a4 move "file_decoration" initialize section
into "if forced_filename is None:"
no need to initialize it if it's not going to be used
3 years ago
Trung Ngo 734986dde3 add callback after image is saved 3 years ago
timntorres 2273e752fb Remove redundant try/except. 3 years ago
timntorres 4ff274e1e3 Revise comments. 3 years ago
timntorres 6014fb8afb Do nothing if image file already exists. 3 years ago
Gugubo 5f87dd1ee0 Add option to prevent empty spots in grid (2/2) 3 years ago
Gugubo 2fb9891af3 Change grid row count autodetect to prevent empty spots
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.
3 years ago
AUTOMATIC 0aec19d783 make pasting into img2img prompt work
make image params request not use temp files
3 years ago
d8ahazard 54e0051bdd Add drag/drop param loading.
Drop an image or generational text onto the prompt bar, it loads the info for parsing.
3 years ago
aoirusann 14192c5b20 Support `Download` for txt files. 3 years ago
Milly 405c8171d1 Prefer using `Processed.sd_model_hash` attribute when filename pattern 3 years ago
Milly 1cc36d170a Added job_timestamp to Processed
So `[job_timestamp]` pattern can use in saving image UI.
3 years ago
Milly 070b7d60cf Added styles to Processed
So `[styles]` pattern can use in saving image UI.
3 years ago
Milly 0bb458f0ca Removed duplicate image saving codes
Use `modules.images.save_image()` instead.
3 years ago
AUTOMATIC1111 e6cbef785a
Merge pull request #1550 from RnDMonkey/#1484_fix_empty_styles_pattern
#1484 fix empty styles pattern
3 years ago
Milly eec1b39bd5 Apply prompt pattern last 3 years ago
RnDMonkey 36ea4ac0f5 moved no-style return outside join function 3 years ago
AUTOMATIC1111 3fac3764b3
Merge branch 'master' into #1484_fix_empty_styles_pattern 3 years ago
AUTOMATIC1111 a9d7eb722f
Merge branch 'master' into saving 3 years ago
RnDMonkey 32edf1732f os.path.normpath wasn't working, reverting to manual strip 3 years ago
RnDMonkey 70f5267047 use os.path.normpath for better safety checking 3 years ago
RnDMonkey 3cf1a96006 added safety for blank directory naming patterns 3 years ago
AUTOMATIC 3a876b16a9 Merge remote-tracking branch 'origin/master' 3 years ago
AUTOMATIC 980cd1697a prevent neural network resizing when it is not necessary #1109 3 years ago
RnDMonkey 5c0c778a65 fixed so that {prompt} can be anywhere in style 3 years ago
RnDMonkey ff4df06c57 refined [styles] pattern and added [prompt_no_styles] 3 years ago
AUTOMATIC 9a54077d4d repair broken highres fix #1109 3 years ago
AUTOMATIC d1f098540a remove unwanted formatting/functionality from the PR 3 years ago
AUTOMATIC a5e7b371d6 fix the bug with broken rescaling in PR 3 years ago
d8ahazard 0dce0df1ee Holy $hit.
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.
3 years ago
WDevelopsWebApps 03ee67bfd3 add advanced saving for save button 3 years ago
tateisu 78d6aef302 use strftime. update hints.js 3 years ago
tateisu b39f06cea7 add [datetime] to image file name pattern 3 years ago
Eyrie 1877a3767e Changed job_id to timestamp 3 years ago