mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2025-05-16 07:10:24 -07:00
add codespell
This commit is contained in:
parent
e5adc0dd06
commit
69bcfff4ef
3
.github/workflows/pylint.yml
vendored
3
.github/workflows/pylint.yml
vendored
@ -20,10 +20,11 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install flake8 yapf isort
|
pip install codespell flake8 isort yapf
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: |
|
run: |
|
||||||
|
codespell
|
||||||
flake8 .
|
flake8 .
|
||||||
isort --check-only --diff gfpgan/ scripts/ inference_gfpgan.py setup.py
|
isort --check-only --diff gfpgan/ scripts/ inference_gfpgan.py setup.py
|
||||||
yapf -r -d gfpgan/ scripts/ inference_gfpgan.py setup.py
|
yapf -r -d gfpgan/ scripts/ inference_gfpgan.py setup.py
|
||||||
|
@ -24,6 +24,12 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: yapf
|
- id: yapf
|
||||||
|
|
||||||
|
# codespell
|
||||||
|
- repo: https://github.com/codespell-project/codespell
|
||||||
|
rev: v2.1.0
|
||||||
|
hooks:
|
||||||
|
- id: codespell
|
||||||
|
|
||||||
# pre-commit-hooks
|
# pre-commit-hooks
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v3.2.0
|
rev: v3.2.0
|
||||||
|
@ -20,7 +20,7 @@ class StyleGAN2GeneratorSFT(StyleGAN2Generator):
|
|||||||
StyleGAN2. Default: 2.
|
StyleGAN2. Default: 2.
|
||||||
resample_kernel (list[int]): A list indicating the 1D resample kernel
|
resample_kernel (list[int]): A list indicating the 1D resample kernel
|
||||||
magnitude. A cross production will be applied to extent 1D resample
|
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.
|
lr_mlp (float): Learning rate multiplier for mlp layers. Default: 0.01.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -20,3 +20,8 @@ known_first_party = gfpgan
|
|||||||
known_third_party = basicsr,cv2,facexlib,numpy,torch,torchvision,tqdm
|
known_third_party = basicsr,cv2,facexlib,numpy,torch,torchvision,tqdm
|
||||||
no_lines_before = STDLIB,LOCALFOLDER
|
no_lines_before = STDLIB,LOCALFOLDER
|
||||||
default_section = THIRDPARTY
|
default_section = THIRDPARTY
|
||||||
|
|
||||||
|
[codespell]
|
||||||
|
skip = .git,./docs/build
|
||||||
|
count =
|
||||||
|
quiet-level = 3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user