Skip to content

Commit f63783c

Browse files
authored
Remove unnecessary imports
Image, gzip, Resize, CenterCrop and ToTensor are never used torch is imported on lines 4 and 15 os is imported on lines 10 and 618
1 parent cc2b861 commit f63783c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

deep_daze/clip.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
import urllib
1212
import warnings
1313
from typing import Union, List
14-
15-
import torch
16-
from PIL import Image
17-
from torchvision.transforms import Compose, Resize, CenterCrop, ToTensor, Normalize
14+
from torchvision.transforms import Compose, Normalize
1815
from tqdm import tqdm
1916

2017
_MODELS = {
@@ -613,9 +610,7 @@ def build_model(state_dict: dict):
613610
model.load_state_dict(state_dict)
614611
return model.eval()
615612

616-
import gzip
617613
import html
618-
import os
619614
from functools import lru_cache
620615

621616
import ftfy

0 commit comments

Comments
 (0)