aboutsummaryrefslogtreecommitdiffstats
path: root/modules/extras.py
Commit message (Collapse)AuthorAgeFilesLines
* fix(api): don't save extras output to diskPhilpax2022-12-241-8/+9
|
* Merge pull request #5747 from yuvalabou/singleton-comparisonAUTOMATIC11112022-12-241-1/+1
|\ | | | | Format singleton comparisons
| * Correct singleton comparisonsYuval Aboulafia2022-12-141-1/+1
| |
* | Merge pull request #5814 from timntorres/5802-save-upscaler-to-filenameAUTOMATIC11112022-12-241-1/+7
|\ \ | |/ |/| Add option to save upscaler to filename suffix in extras tab.
| * Add option to include upscaler name in filename.timntorres2022-12-171-2/+3
| |
| * Add upscaler name as a suffix.timntorres2022-12-171-1/+6
| |
* | extras.py: use as little RAM as possible, misc fixesMackerel2022-12-041-18/+19
|/ | | | | | maximum of 2 models loaded at once. delete unneeded model before next step. fix 'teritary' -> 'tertiary'. gracefully fail when "add difference" is selected without a tertiary model
* make it possible to merge inpainting model with non-inpainting oneAUTOMATIC2022-12-041-2/+25
|
* rework #5012 to also work for pictures dragged into the prompt and also add ↵AUTOMATIC2022-11-271-35/+5
| | | | Clip skip + ENSD to parameters
* Merge pull request #5012 from Nandaka/masterAUTOMATIC11112022-11-271-0/+14
|\ | | | | Support NAI style exif in PNG Info for Send... buttons
| * Support NAI exif for PNG InfoNandaka2022-11-241-0/+14
| |
* | add safetensors support for model merging #4869AUTOMATIC2022-11-271-12/+14
|/
* extras - skip unnecessary second hash of imageChris OBryan2022-11-031-2/+3
| | | | | | There is no need to re-hash the input image each iteration of the loop. This also reverts PR #4026 as it was determined the cache hits it avoids were actually valid.
* Extend extras image cache with upscale_first argDepFA2022-10-311-1/+1
|
* skip filenames starting with . for img2img and extras batch modesAUTOMATIC2022-10-291-1/+1
|
* extras: upscaler blending should not be considered in cache keyChris OBryan2022-10-281-1/+1
|
* extras-tweaks: autoformat changed linesChris OBryan2022-10-281-15/+15
|
* extras: Make image cache LRUChris OBryan2022-10-281-29/+38
| | | | | | | | | This changes the extras image cache into a Least-Recently-Used cache. This allows more experimentation with different upscalers without missing the cache. Max cache size is increased to 5 and is cleared on source image update.
* extras: Rework image cacheChris OBryan2022-10-281-20/+32
| | | | | Bit of a refactor to the image cache to make it easier to extend. Also takes into account the entire image instead of just a cropped portion.
* extras: Add option to run upscaling before face fixingChris OBryan2022-10-281-50/+95
| | | | | | Face restoration can look much better if ran after upscaling, as it allows the restoration to fix upscaling artifacts. This patch adds an option to choose which order to run upscaling/face fixing in.
* sort file list in alphabetical ordering in extraswinterspringsummer2022-10-211-1/+1
|
* Fixed path issue while extras batch processingwinterspringsummer2022-10-211-3/+3
|
* Added try except to extras batch from directorywinterspringsummer2022-10-211-4/+7
|
* Fixed path issue while extras batch processingwinterspringsummer2022-10-211-4/+8
|
* additional fix for difference model mergingAUTOMATIC2022-10-181-1/+1
|
* fix for add difference model mergingAUTOMATIC2022-10-181-2/+5
|
* extras extend cache key with new upscale to optionsDepFA2022-10-181-1/+2
|
* fix bug for latest model merge RAM improvementAUTOMATIC2022-10-171-0/+1
|
* improve performance of 3-way merge on machines with not enough ram, by only ↵MrCheeze2022-10-171-10/+17
| | | | accessing two of the models at a time
* honor --hide-ui-dir-config option for #2807AUTOMATIC2022-10-161-0/+2
|
* added extras batch work from directorywinterspringsummer2022-10-161-5/+18
|
* change checkpoint merger to work in a more obvious wayAUTOMATIC2022-10-141-19/+5
| | | | remove sigmoid and inverse sigmoid because they just did the same thing as weighed sum only with changed multiplier
* should fix the issue with missing layers in chechpoint mergerAUTOMATIC2022-10-141-1/+6
|
* add an ability to merge three checkpointsAUTOMATIC2022-10-141-8/+21
|
* Simplify crop logicJustin Maier2022-10-101-11/+3
|
* Add "Scale to" option to ExtrasJustin Maier2022-10-101-5/+23
|
* fix missing png info when Extras Batch ProcessArtem Zagidulin2022-10-091-1/+1
|
* additional changes for saving pnginfo for #1803AUTOMATIC2022-10-091-0/+4
|
* make main model loading and model merger use the same codeAUTOMATIC2022-10-091-3/+3
|
* Merge branch 'master' into fix-vramJairo Correa2022-09-301-3/+8
|\
| * fix model checkpoint merger tab failing to save modelAUTOMATIC2022-09-301-1/+3
| |
| * remove unwanted formatting/functionality from the PRAUTOMATIC2022-09-301-17/+18
| |
| * Merge remote-tracking branch 'upstream/master' into ModelLoaderd8ahazard2022-09-301-23/+31
| |\
| | * Add custom name and try-exceptsafentisAuth2022-09-291-1/+2
| | |
| * | Holy $hit.d8ahazard2022-09-291-18/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Merge remote-tracking branch 'upstream/master' into ModelLoaderd8ahazard2022-09-271-0/+57
| |\ \
| * | | Re-implement universal model loadingd8ahazard2022-09-261-0/+2
| | | |
* | | | Fix memory leak and reduce memory usageJairo Correa2022-09-291-0/+2
| |_|/ |/| |
* | | update lists of models after merging them in checkpoints tabAUTOMATIC2022-09-281-10/+17
| | | | | | | | | | | | support saving as half
* | | correctly list and display model names for #1261AUTOMATIC2022-09-281-15/+8
| | |