mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2025-05-15 14:50:11 -07:00
fix pylint
This commit is contained in:
parent
bc5a5deb95
commit
2f46d95254
@ -64,13 +64,13 @@ class Predictor(BasePredictor):
|
|||||||
self.current_version = 'v1.4'
|
self.current_version = 'v1.4'
|
||||||
|
|
||||||
def predict(
|
def predict(
|
||||||
self,
|
self,
|
||||||
img: Path = Input(description='Input'),
|
img: Path = Input(description='Input'),
|
||||||
version: str = Input(
|
version: str = Input(
|
||||||
description='GFPGAN version. v1.3: better quality. v1.4: more details and better identity.',
|
description='GFPGAN version. v1.3: better quality. v1.4: more details and better identity.',
|
||||||
choices=['v1.2', 'v1.3', 'v1.4', 'RestoreFormer'],
|
choices=['v1.2', 'v1.3', 'v1.4', 'RestoreFormer'],
|
||||||
default='v1.4'),
|
default='v1.4'),
|
||||||
scale: float = Input(description='Rescaling factor', default=2),
|
scale: float = Input(description='Rescaling factor', default=2),
|
||||||
) -> Path:
|
) -> Path:
|
||||||
weight = 0.5
|
weight = 0.5
|
||||||
print(img, version, scale, weight)
|
print(img, version, scale, weight)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user