Skip to content

Commit

Permalink
Use mypy and flake8 for face swapper
Browse files Browse the repository at this point in the history
  • Loading branch information
henryruhs committed Jan 14, 2025
1 parent 13f29eb commit d00c0e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
- run: pip install flake8
- run: pip install flake8-import-order
- run: pip install mypy
- run: flake8 arcface_converter
- run: mypy arcface_converter
- run: flake8 arcface_converter face_swapper
- run: mypy arcface_converter face_swapper
4 changes: 3 additions & 1 deletion face_swapper/src/discriminator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from typing import List

import numpy
import torch.nn as nn

from .typing import DiscriminatorOutputs, List, Tensor
from .typing import DiscriminatorOutputs, Tensor


class NLayerDiscriminator(nn.Module):
Expand Down
1 change: 0 additions & 1 deletion face_swapper/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

from src.training import train


if __name__ == '__main__':
train()

0 comments on commit d00c0e2

Please sign in to comment.