1
0
mirror of https://github.com/TencentARC/GFPGAN.git synced 2025-05-15 14:50:11 -07:00

add codespell

This commit is contained in:
Xintao 2021-09-27 15:50:44 +08:00
parent e5adc0dd06
commit 69bcfff4ef
4 changed files with 14 additions and 2 deletions

View File

@ -20,10 +20,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 yapf isort
pip install codespell flake8 isort yapf
- name: Lint
run: |
codespell
flake8 .
isort --check-only --diff gfpgan/ scripts/ inference_gfpgan.py setup.py
yapf -r -d gfpgan/ scripts/ inference_gfpgan.py setup.py

View File

@ -24,6 +24,12 @@ repos:
hooks:
- id: yapf
# codespell
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
# pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0

View File

@ -20,7 +20,7 @@ class StyleGAN2GeneratorSFT(StyleGAN2Generator):
StyleGAN2. Default: 2.
resample_kernel (list[int]): A list indicating the 1D resample kernel
magnitude. A cross production will be applied to extent 1D resample
kenrel to 2D resample kernel. Default: [1, 3, 3, 1].
kernel to 2D resample kernel. Default: [1, 3, 3, 1].
lr_mlp (float): Learning rate multiplier for mlp layers. Default: 0.01.
"""

View File

@ -20,3 +20,8 @@ known_first_party = gfpgan
known_third_party = basicsr,cv2,facexlib,numpy,torch,torchvision,tqdm
no_lines_before = STDLIB,LOCALFOLDER
default_section = THIRDPARTY
[codespell]
skip = .git,./docs/build
count =
quiet-level = 3