Skip to content

Commit af30f0f

Browse files
committed
make style
1 parent da67ff7 commit af30f0f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

examples/research_projects/anytext/text_embedding_module.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,14 @@
33
# text -> tokenizer ->
44

55

6-
from typing import Optional
7-
6+
import cv2
7+
import numpy as np
88
import torch
99
from embedding_manager import EmbeddingManager
1010
from frozen_clip_embedder_t3 import FrozenCLIPEmbedderT3
1111
from PIL import ImageFont
1212
from recognizer import TextRecognizer, create_predictor
1313
from torch import nn
14-
from torch.nn import functional as F
15-
import numpy as np
16-
import cv2
1714

1815
from diffusers.utils import (
1916
logging,

0 commit comments

Comments
 (0)