Use mypy and flake8 for face swapper

This commit is contained in:
henryruhs
2025-01-14 12:40:13 +01:00
parent e3273221c9
commit 2bbba3563b
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -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
+3 -1
View File
@@ -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):
-1
View File
@@ -2,6 +2,5 @@
from src.training import train
if __name__ == '__main__':
train()