mirror of
https://github.com/facefusion/facefusion-labs.git
synced 2026-05-22 23:59:40 +02:00
Simplify Batch type
This commit is contained in:
@@ -5,6 +5,8 @@ from numpy.typing import NDArray
|
||||
from torch import Tensor
|
||||
from torch.nn import Module
|
||||
|
||||
Batch : TypeAlias = Tuple[Tensor, Tensor, Tensor]
|
||||
|
||||
ImagePathList : TypeAlias = List[str]
|
||||
ImagePathSet : TypeAlias = Dict[str, ImagePathList]
|
||||
|
||||
@@ -22,8 +24,6 @@ VisionFrame : TypeAlias = NDArray[Any]
|
||||
LossTensor : TypeAlias = Tensor
|
||||
VisionTensor : TypeAlias = Tensor
|
||||
|
||||
Batch : TypeAlias = Tuple[VisionTensor, VisionTensor, Tensor]
|
||||
|
||||
GeneratorLossSet : TypeAlias = Dict[str, Tensor]
|
||||
DiscriminatorLossSet : TypeAlias = Dict[str, Tensor]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user