Yuval Aboulafia
3bf5591efe
fix F541 f-string without any placeholders
3 years ago
AUTOMATIC1111
fac92610d2
Merge pull request #5753 from calvinballing/master
...
Fix various typos
3 years ago
AUTOMATIC
9441c28c94
add an option for img2img background color
3 years ago
MMaker
b7c478c3eb
fix: Modify font size when unable to fit in plot
...
This prevents scenarios where text without line breaks will start overlapping with each other when generating X/Y plots. This is most evident when generating X/Y plots with checkpoints, as most don't contain spaces and sometimes include extra information such as the epoch, making it extra long.
3 years ago
Jim Hays
c0355caefe
Fix various typos
3 years ago
AUTOMATIC1111
89237852f4
Merge pull request #5119 from 0xb8/master
...
Atomically rename saved image to avoid race condition with other processes
3 years ago
AUTOMATIC
506d529d19
rework #5012 to also work for pictures dragged into the prompt and also add Clip skip + ENSD to parameters
3 years ago
cat
185ab3cbd1
Atomically rename saved image to avoid race condition with other processes.
3 years ago
AUTOMATIC1111
ca8c764af8
Merge pull request #4986 from mcmonkey4eva/add-model-name
...
add model_name pattern for saving
3 years ago
AUTOMATIC
b006382784
serve images from where they are saved instead of a temporary directory
...
add an option to choose a different temporary directory in the UI
add an option to cleanup the selected temporary directory at startup
3 years ago
Alex "mcmonkey" Goodwin
ffcbbcf385
add filename santization
...
Probably redundant, considering the model name *is* a filename, but I suppose better safe than sorry.
3 years ago
Alex "mcmonkey" Goodwin
6001684be3
add model_name pattern for saving
3 years ago
AUTOMATIC
cdc8020d13
change StableDiffusionProcessing to internally use sampler name instead of sampler index
3 years ago
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