Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
Real-ESRGAN_pytorch
Commits
468f84fd
Commit
468f84fd
authored
Apr 16, 2025
by
chenzk
Browse files
Update url.md
parent
0d4eab47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
README.md
README.md
+6
-6
No files found.
README.md
View file @
468f84fd
...
...
@@ -70,9 +70,9 @@ python setup.py develop
### 准备数据集
所需数据集为: DF2K(DIV2K和Flickr2K) + OST,仅需要
**HR**
图片.
[
DIV2K
](
http://
113.200.138.88:18080/aidatasets/project-dependency/div2k/-/blob/master/DIV2K_train_HR.zip
)
[
DIV2K
](
http
s
://
huggingface.co/datasets/goodfellowliu/DIV2K
)
[
Flickr2K
](
http://
113.200.138.88:18080/aidatasets/project-dependency/flickr2k/-/blob/master
/Flickr2K
.tar
)
[
Flickr2K
](
http
s
://
huggingface.co/datasets/goodfellowliu
/Flickr2K
)
[
OST
](
https://openmmlab.oss-cn-hangzhou.aliyuncs.com/datasets/OST_dataset.zip
)
...
...
@@ -150,7 +150,7 @@ python scripts/generate_meta_info.py --input datasets/DF2K/DF2K_HR,datasets/DF
2.
[
训练Real-ESRGAN
](
#训练Real-ESRGAN
)
#### 训练Real-ESRNet
1.
下载预训练模型
[
ESRGAN
](
http://
113.200.138.88:18080/aimodels/findsource-dependency/real-esrgan_pytorch/-/blob/main/ESRGAN_SRx4_DF2KOST_official-ff704c30
.pth
)
,将模型放到
`experiments/pretrained_models`
目录下。
1.
下载预训练模型
[
ESRGAN
](
http
s
://
github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus
.pth
)
,将模型放到
`experiments/pretrained_models`
目录下。
2.
相应地修改
`options/train_realesrnet_x4plus.yml`
中的内容:
```
yml
...
...
@@ -205,7 +205,7 @@ train:
#### 动态生成降级图像
只需要高分辨率图像,在训练过程中,使用
`Real-ESRGAN`
描述的降级模型生成低质量图像。
1.
下载预训练模型
[
RealESRGAN_x4plus.pth
](
http://
113.200.138.88:18080/aimodels/findsource-dependency/real-esrgan_pytorch/-/blob/main
/RealESRGAN_x4plus.pth
)
、
[
RealESRGAN_x4plus_netD.pth
](
http://
113.200.138.88:18080/aimodels/findsource-dependency/real-esrgan_pytorch/-/blob/main
/RealESRGAN_x4plus_
netD
.pth
)
到
`experiments/pretrained_models`
目录下;
1.
下载预训练模型
[
RealESRGAN_x4plus.pth
](
http
s
://
github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0
/RealESRGAN_x4plus.pth
)
、
[
RealESRGAN_x4plus_netD.pth
](
http
s
://
github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4
/RealESRGAN_x4plus_
anime_6B
.pth
)
到
`experiments/pretrained_models`
目录下
,请根据源github说明文档地址下载
;
2.
修改选项文件
[
options/finetune_realesrgan_x4plus.yml
](
options/finetune_realesrgan_x4plus.yml
)
,特别是
`datasets`
部分:
...
...
@@ -235,7 +235,7 @@ train:
python scripts/generate_meta_info_pairdata.py
--input
datasets/DF2K/DIV2K_train_HR_sub datasets/DF2K/DIV2K_train_LR_bicubic_X4_sub
--meta_info
datasets/DF2K/meta_info/meta_info_DIV2K_sub_pair.txt
```
2.
下载
所需
预训练模型
[
RealESRGAN_x4plus.pth
](
http://
113.200.138.88:18080/aimodels/findsource-dependency/real-esrgan_pytorch/-/blob/main
/RealESRGAN_x4plus.pth
)
、
[
RealESRGAN_x4plus_netD.pth
](
http://
113.200.138.88:18080/aimodels/findsource-dependency/real-esrgan_pytorch/-/blob/main
/RealESRGAN_x4plus_
netD
.pth
)
到
`experiments/pretrained_models`
目录下
。
2.
下载预训练模型
[
RealESRGAN_x4plus.pth
](
http
s
://
github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0
/RealESRGAN_x4plus.pth
)
、
[
RealESRGAN_x4plus_netD.pth
](
http
s
://
github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4
/RealESRGAN_x4plus_
anime_6B
.pth
)
到
`experiments/pretrained_models`
目录下
,请根据源github说明文档地址下载;
3.
微调准备
...
...
@@ -270,7 +270,7 @@ bash run_train_multi.sh
```
## 推理
下载预训练模型
[
RealESRGAN_x4plus.pth
](
http://
113.200.138.88:18080/aimodels/findsource-dependency/real-esrgan_pytorch/-/blob/main
/RealESRGAN_x4plus.pth
)
,将其放入
`weights`
文件夹下,测试结果默认保存在
`results`
文件夹下。
下载预训练模型
[
RealESRGAN_x4plus.pth
](
http
s
://
github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0
/RealESRGAN_x4plus.pth
)
,将其放入
`weights`
文件夹下,测试结果默认保存在
`results`
文件夹下。
```
bash
# 执行推理
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment