aboutsummaryrefslogtreecommitdiffstats
path: root/modules/codeformer_model.py
AgeCommit message (Collapse)AuthorLines
2023-12-30Verify architecture for loaded Spandrel modelsAarni Koskela-0/+1
2023-12-30Unify CodeFormer and GFPGAN restoration backends, use Spandrel for GFPGANAarni Koskela-118/+40
2023-12-30Use Spandrel for upscaling and face restoration architectures (aside from ↵Aarni Koskela-93/+102
GFPGAN and LDSR)
2023-07-08added torch.mps.empty_cache() to torch_gc()AUTOMATIC1111-1/+1
changed a bunch of places that use torch.cuda.empty_cache() to use torch_gc() instead
2023-06-27Merge pull request #11046 from akx/ded-codeAUTOMATIC1111-4/+0
Remove a bunch of unused/vestigial code
2023-06-13Use os.makedirs(..., exist_ok=True)Aarni Koskela-3/+1
2023-06-05Remove a bunch of unused/vestigial codeAarni Koskela-4/+0
As found by Vulture and some eyes
2023-05-31rename print_error to report, use it with together with package nameAUTOMATIC-4/+3
2023-05-29Add & use modules.errors.print_error where currently printing exception info ↵Aarni Koskela-6/+4
by hand
2023-05-10fixes for B007AUTOMATIC-1/+1
2023-05-10imports cleanup for ruffAUTOMATIC-3/+1
2023-02-24Filter out temporary files that will be generated if the download fails.Tpinion-1/+1
2023-01-27clean up unused script_path importsMax Audron-1/+1
2022-11-12Set device for facelib/facexlib and gfpganbrkirch-0/+3
* FaceXLib/FaceLib doesn't pass the device argument to RetinaFace but instead chooses one itself and sets it to a global - in order to use a device other than its internally chosen default it is necessary to manually replace the default value * The GFPGAN constructor needs the device argument to work with MPS or a CUDA device ID that differs from the default
2022-10-04send all three of GFPGAN's and codeformer's models to CPU memory instead of ↵AUTOMATIC-2/+10
just one for #1283
2022-09-30fix for broken codeformer in PRAUTOMATIC-1/+1
2022-09-26Cleanup existing directories, fixesd8ahazard-11/+4
2022-09-26Re-implement universal model loadingd8ahazard-10/+25
2022-09-14Removed stray references to shared.device_codeformer.Elias Oenal-4/+2
2022-09-14fix for codeformer switching torch devices on metal systems.Elias Oenal-2/+2
2022-09-12 Codeformer face restoration not working: AttributeError: module ↵AUTOMATIC-3/+3
'modules.shared' has no attribute 'device_codeformer' #348
2022-09-12Merge pull request #294 from EliasOenal/masterAUTOMATIC1111-3/+5
Fixes for mps/Metal: use of seeds, img2img, CodeFormer
2022-09-12 Instance of CUDA out of memory on a low-res batch, even with ↵AUTOMATIC-14/+18
--opt-split-attention-v1 (found cause) #255
2022-09-12Refactored Metal/mps fixes.Elias Oenal-15/+6
2022-09-11CodeFormer does not support mps/metal backend, implemented fallback to cpu ↵Elias Oenal-4/+15
backend.
2022-09-10undo CodeFormer's upscaling of images with dimensions less than 512.AUTOMATIC-0/+8
2022-09-07a little bit of rework for extras tabAUTOMATIC-3/+7
2022-09-07codeformer supportAUTOMATIC-0/+108