add Real-ESRGAN training codes

This commit is contained in:
Xintao
2021-07-24 18:56:20 +08:00
parent 85bd346714
commit 9baeba566b
10 changed files with 999 additions and 4 deletions

10
archs/__init__.py Normal file
View File

@@ -0,0 +1,10 @@
import importlib
from basicsr.utils import scandir
from os import path as osp
# automatically scan and import arch modules for registry
# scan all the files that end with '_arch.py' under the archs folder
arch_folder = osp.dirname(osp.abspath(__file__))
arch_filenames = [osp.splitext(osp.basename(v))[0] for v in scandir(arch_folder) if v.endswith('_arch.py')]
# import all the arch modules
_arch_modules = [importlib.import_module(f'archs.{file_name}') for file_name in arch_filenames]