diff options
Diffstat (limited to 'text_recognizer/network')
4 files changed, 4 insertions, 4 deletions
diff --git a/text_recognizer/network/convnext/convnext.py b/text_recognizer/network/convnext/convnext.py index 8eea9df..9d2b3ec 100644 --- a/text_recognizer/network/convnext/convnext.py +++ b/text_recognizer/network/convnext/convnext.py @@ -4,9 +4,9 @@ from typing import Optional, Sequence import torch from torch import Tensor, nn -from .transformer import Transformer from .downsample import Downsample from .norm import LayerNorm +from .transformer import Transformer class GRN(nn.Module): diff --git a/text_recognizer/network/transformer/embedding/l2_norm.py b/text_recognizer/network/transformer/embedding/l2_norm.py index 0e48bca..f5ec4ba 100644 --- a/text_recognizer/network/transformer/embedding/l2_norm.py +++ b/text_recognizer/network/transformer/embedding/l2_norm.py @@ -1,5 +1,5 @@ -from einops import rearrange import torch.nn.functional as F +from einops import rearrange from torch import Tensor diff --git a/text_recognizer/network/transformer/embedding/rotary.py b/text_recognizer/network/transformer/embedding/rotary.py index 2254f81..7e88264 100644 --- a/text_recognizer/network/transformer/embedding/rotary.py +++ b/text_recognizer/network/transformer/embedding/rotary.py @@ -1,6 +1,6 @@ import torch -from torch import nn, einsum from einops import rearrange +from torch import einsum, nn class RotaryEmbedding(nn.Module): diff --git a/text_recognizer/network/transformer/embedding/token.py b/text_recognizer/network/transformer/embedding/token.py index 838f514..bf5149e 100644 --- a/text_recognizer/network/transformer/embedding/token.py +++ b/text_recognizer/network/transformer/embedding/token.py @@ -1,4 +1,4 @@ -from torch import nn, Tensor +from torch import Tensor, nn from .l2_norm import l2_norm |