Removed duplicate definition model_path

This commit is contained in:
Milly
2022-10-07 03:36:08 +09:00
committed by AUTOMATIC1111
parent a65a45272e
commit 0609ce06c0
7 changed files with 4 additions and 15 deletions

View File

@@ -8,14 +8,12 @@ from basicsr.utils.download_util import load_file_from_url
from realesrgan import RealESRGANer
from modules.upscaler import Upscaler, UpscalerData
from modules.paths import models_path
from modules.shared import cmd_opts, opts
class UpscalerRealESRGAN(Upscaler):
def __init__(self, path):
self.name = "RealESRGAN"
self.model_path = os.path.join(models_path, self.name)
self.user_path = path
super().__init__()
try: