jhj0517
commited on
Commit
·
b9a973f
1
Parent(s):
1e3934e
Move File location
Browse files
modules/image_restoration/real_esrgan/real_esrgan_inferencer.py
CHANGED
|
@@ -1,16 +1,14 @@
|
|
| 1 |
import os.path
|
| 2 |
import gradio as gr
|
| 3 |
import torch
|
| 4 |
-
from
|
| 5 |
-
import numpy as np
|
| 6 |
-
from typing import Optional, Literal, List, Dict, Tuple, Union
|
| 7 |
from realesrgan.utils import RealESRGANer
|
| 8 |
from realesrgan.archs.srvgg_arch import SRVGGNetCompact
|
| 9 |
|
| 10 |
from modules.utils.paths import *
|
| 11 |
from .model_downloader import download_resrgan_model, MODELS_REALESRGAN_URL, MODELS_REALESRGAN_SCALABILITY
|
| 12 |
from modules.utils.image_helper import save_image
|
| 13 |
-
from .rrdb_net import RRDBNet
|
| 14 |
|
| 15 |
|
| 16 |
class RealESRGANInferencer:
|
|
|
|
| 1 |
import os.path
|
| 2 |
import gradio as gr
|
| 3 |
import torch
|
| 4 |
+
from typing import Optional, Literal
|
|
|
|
|
|
|
| 5 |
from realesrgan.utils import RealESRGANer
|
| 6 |
from realesrgan.archs.srvgg_arch import SRVGGNetCompact
|
| 7 |
|
| 8 |
from modules.utils.paths import *
|
| 9 |
from .model_downloader import download_resrgan_model, MODELS_REALESRGAN_URL, MODELS_REALESRGAN_SCALABILITY
|
| 10 |
from modules.utils.image_helper import save_image
|
| 11 |
+
from modules.image_restoration.real_esrgan.wrapper.rrdb_net import RRDBNet
|
| 12 |
|
| 13 |
|
| 14 |
class RealESRGANInferencer:
|
modules/image_restoration/real_esrgan/wrapper/__init__.py
ADDED
|
File without changes
|
modules/image_restoration/real_esrgan/{rrdb_net.py → wrapper/rrdb_net.py}
RENAMED
|
File without changes
|