mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Merge branch 'development' into development
This commit is contained in:
commit
9903ce60f0
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,7 +1,7 @@
|
|||||||
# ignore default image save location and model symbolic link
|
# ignore default image save location and model symbolic link
|
||||||
outputs/
|
outputs/
|
||||||
models/ldm/stable-diffusion-v1/model.ckpt
|
models/ldm/stable-diffusion-v1/model.ckpt
|
||||||
ldm/restoration/codeformer/weights
|
ldm/dream/restoration/codeformer/weights
|
||||||
|
|
||||||
# ignore the Anaconda/Miniconda installer used while building Docker image
|
# ignore the Anaconda/Miniconda installer used while building Docker image
|
||||||
anaconda.sh
|
anaconda.sh
|
||||||
|
@ -573,14 +573,14 @@ class Args(object):
|
|||||||
'-G',
|
'-G',
|
||||||
'--gfpgan_strength',
|
'--gfpgan_strength',
|
||||||
type=float,
|
type=float,
|
||||||
help='The strength at which to apply the GFPGAN model to the result, in order to improve faces.',
|
help='The strength at which to apply the face restoration to the result.',
|
||||||
default=0.0,
|
default=0.0,
|
||||||
)
|
)
|
||||||
postprocessing_group.add_argument(
|
postprocessing_group.add_argument(
|
||||||
'-cf',
|
'-cf',
|
||||||
'--codeformer_fidelity',
|
'--codeformer_fidelity',
|
||||||
type=float,
|
type=float,
|
||||||
help='Takes values between 0 and 1. 0 produces high quality but low accuracy. 1 produces high accuracy but low quality.',
|
help='Used along with CodeFormer. Takes values between 0 and 1. 0 produces high quality but low accuracy. 1 produces high accuracy but low quality.',
|
||||||
default=0.75
|
default=0.75
|
||||||
)
|
)
|
||||||
postprocessing_group.add_argument(
|
postprocessing_group.add_argument(
|
||||||
|
1
ldm/dream/restoration/__init__.py
Normal file
1
ldm/dream/restoration/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
from .base import Restoration
|
@ -27,7 +27,7 @@ class Restoration():
|
|||||||
return CodeFormerRestoration()
|
return CodeFormerRestoration()
|
||||||
|
|
||||||
# Upscale Models
|
# Upscale Models
|
||||||
def load_ersgan(self):
|
def load_esrgan(self):
|
||||||
from ldm.dream.restoration.realesrgan import ESRGAN
|
from ldm.dream.restoration.realesrgan import ESRGAN
|
||||||
esrgan = ESRGAN(self.esrgan_bg_tile)
|
esrgan = ESRGAN(self.esrgan_bg_tile)
|
||||||
print('>> ESRGAN Initialized')
|
print('>> ESRGAN Initialized')
|
||||||
|
@ -54,7 +54,7 @@ def main():
|
|||||||
else:
|
else:
|
||||||
print('>> Face restoration disabled')
|
print('>> Face restoration disabled')
|
||||||
if opt.esrgan:
|
if opt.esrgan:
|
||||||
esrgan = restoration.load_ersgan()
|
esrgan = restoration.load_esrgan()
|
||||||
else:
|
else:
|
||||||
print('>> Upscaling disabled')
|
print('>> Upscaling disabled')
|
||||||
except (ModuleNotFoundError, ImportError):
|
except (ModuleNotFoundError, ImportError):
|
||||||
|
Loading…
Reference in New Issue
Block a user