83 Commits (999929bea4e66384e6cf8da1e2cf833d1fa41053)

Author SHA1 Message Date
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
Eyrie 40166dbf08 Added job_id pattern for directories 3 years ago
RnDMonkey a2bea2f97a added [styles] filename pattern 3 years ago
AUTOMATIC c8c662901b fix for inpaint at full resolution breaking if you have an NN upscaler. 3 years ago
AUTOMATIC 1a0353675d Option to use advanced upscalers with normal img2img 3 years ago
Robin Fernandes 03738668c0 Merge from master 3 years ago
Prof-Cheese ae32b8a53f Fixed directory name generation process.
'Max prompt words' has been added to config and modified to be used in the directory name generation process.
3 years ago
Robin Fernandes 25eb1e3d90 Add option to save before color correction. Add suffix param when saving files, used for special saves without color correction and face restoration. 3 years ago
Milly a8a75ec43a Fixed filename part sanitizing
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.
3 years ago
olivier 5fe2c75da0 Support reusing filename stems during batch processing in Extras tab 3 years ago
AUTOMATIC 2f18823e69 fix for broken export for 4chan 3 years ago
AUTOMATIC 247f58a5e7 add support for switching model checkpoints at runtime 3 years ago
AUTOMATIC 1fc1c537c7 fix 3 years ago
AUTOMATIC 3c665b8dd6 the last PR broke saving EXiF completely for me. I don't know if it was 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. 3 years ago
JJ 4f1f348b6a image.save parameter fix
* 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
3 years ago
Twizzes deea9f4d70 Replace invalid filename chars with an underscore
... instead of removing them altogether.
This makes the prompt editing filenames [old🆕step] easier to read
3 years ago
AUTOMATIC cdaab233c4 Merge remote-tracking branch 'origin/master' 3 years ago
AUTOMATIC 6d2eb339d6 fix for failing to save 4chan downscale for large iamges 3 years ago
JJ 9611008445 exif fix for webp
* 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
3 years ago