Minor fixes

This commit is contained in:
henryruhs 2023-06-13 18:57:19 +02:00
parent 624cf45978
commit 1670ec6378
2 changed files with 2 additions and 5 deletions

View File

@ -2,7 +2,6 @@ import sys
import importlib
import threading
from typing import Any, List
from tqdm import tqdm
import roop
@ -10,7 +9,7 @@ import roop
FRAME_PROCESSORS_MODULES = None
def load_processor_module(frame_processor: str)-> Any:
def load_frame_processor_module(frame_processor: str)-> Any:
try:
frame_processor_module = importlib.import_module(f'roop.processors.frame.{frame_processor}')
except ImportError:
@ -23,7 +22,7 @@ def get_frame_processors_modules(frame_processors):
if FRAME_PROCESSORS_MODULES is None:
FRAME_PROCESSORS_MODULES = []
for frame_processor in frame_processors:
frame_processor_module = load_processor_module(frame_processor)
frame_processor_module = load_frame_processor_module(frame_processor)
FRAME_PROCESSORS_MODULES.append(frame_processor_module)
return FRAME_PROCESSORS_MODULES

View File

@ -1,9 +1,7 @@
from typing import List
import cv2
import torch
import threading
from torchvision.transforms.functional import normalize
from codeformer.facelib.utils.face_restoration_helper import FaceRestoreHelper
from codeformer.basicsr.utils.registry import ARCH_REGISTRY