mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2025-05-15 14:50:11 -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
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
"""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user