mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-04-20 11:51:09 -07:00
imports cleanup for ruff
This commit is contained in:
parent
96d6ca4199
commit
f741a98bac
48 changed files with 42 additions and 114 deletions
|
|
@ -33,11 +33,9 @@ def setup_model(dirname):
|
|||
try:
|
||||
from torchvision.transforms.functional import normalize
|
||||
from modules.codeformer.codeformer_arch import CodeFormer
|
||||
from basicsr.utils.download_util import load_file_from_url
|
||||
from basicsr.utils import imwrite, img2tensor, tensor2img
|
||||
from basicsr.utils import img2tensor, tensor2img
|
||||
from facelib.utils.face_restoration_helper import FaceRestoreHelper
|
||||
from facelib.detection.retinaface import retinaface
|
||||
from modules.shared import cmd_opts
|
||||
|
||||
net_class = CodeFormer
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue