Skip to content

Commit 2f46d95

Browse files
committed
fix pylint
1 parent bc5a5de commit 2f46d95

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cog_predict.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ def setup(self):
6464
self.current_version = 'v1.4'
6565

6666
def predict(
67-
self,
68-
img: Path = Input(description='Input'),
69-
version: str = Input(
70-
description='GFPGAN version. v1.3: better quality. v1.4: more details and better identity.',
71-
choices=['v1.2', 'v1.3', 'v1.4', 'RestoreFormer'],
72-
default='v1.4'),
73-
scale: float = Input(description='Rescaling factor', default=2),
67+
self,
68+
img: Path = Input(description='Input'),
69+
version: str = Input(
70+
description='GFPGAN version. v1.3: better quality. v1.4: more details and better identity.',
71+
choices=['v1.2', 'v1.3', 'v1.4', 'RestoreFormer'],
72+
default='v1.4'),
73+
scale: float = Input(description='Rescaling factor', default=2),
7474
) -> Path:
7575
weight = 0.5
7676
print(img, version, scale, weight)

0 commit comments

Comments
 (0)