Spaces:
Runtime error
Runtime error
add pretrained model for stage II.
Browse files- docs/train.md +4 -2
- docs/train_CN.md +4 -2
docs/train.md
CHANGED
|
@@ -15,17 +15,19 @@
|
|
| 15 |
- After VQGAN training, you can pre-calculate code sequence for the training dataset to speed up the later training stages:
|
| 16 |
> python scripts/generate_latent_gt.py
|
| 17 |
|
| 18 |
-
- If you don't require training your own VQGAN, you can find pre-trained VQGAN and the corresponding code sequence in the folder of Releases v0.1.0: https://github.com/sczhou/CodeFormer/releases/tag/v0.1.0
|
| 19 |
|
| 20 |
### 🚀 Stage II - CodeFormer (w=0)
|
| 21 |
- Training Code Sequence Prediction Module:
|
| 22 |
> python -m torch.distributed.launch --nproc_per_node=8 --master_port=4322 basicsr/train.py -opt options/CodeFormer_stage2.yml --launcher pytorch
|
| 23 |
|
|
|
|
|
|
|
| 24 |
### 🛸 Stage III - CodeFormer (w=1)
|
| 25 |
- Training Controllable Module:
|
| 26 |
> python -m torch.distributed.launch --nproc_per_node=8 --master_port=4323 basicsr/train.py -opt options/CodeFormer_stage3.yml --launcher pytorch
|
| 27 |
|
| 28 |
-
- Pre-trained CodeFormer can be found in the folder of Releases v0.1.0: https://github.com/sczhou/CodeFormer/releases/tag/v0.1.0
|
| 29 |
|
| 30 |
---
|
| 31 |
|
|
|
|
| 15 |
- After VQGAN training, you can pre-calculate code sequence for the training dataset to speed up the later training stages:
|
| 16 |
> python scripts/generate_latent_gt.py
|
| 17 |
|
| 18 |
+
- If you don't require training your own VQGAN, you can find pre-trained VQGAN (`vqgan_code1024.pth`) and the corresponding code sequence (`latent_gt_code1024.pth`) in the folder of Releases v0.1.0: https://github.com/sczhou/CodeFormer/releases/tag/v0.1.0
|
| 19 |
|
| 20 |
### 🚀 Stage II - CodeFormer (w=0)
|
| 21 |
- Training Code Sequence Prediction Module:
|
| 22 |
> python -m torch.distributed.launch --nproc_per_node=8 --master_port=4322 basicsr/train.py -opt options/CodeFormer_stage2.yml --launcher pytorch
|
| 23 |
|
| 24 |
+
- Pre-trained CodeFormer of stage II (`codeformer_stage2.pth`) can be found in the folder of Releases v0.1.0: https://github.com/sczhou/CodeFormer/releases/tag/v0.1.0
|
| 25 |
+
|
| 26 |
### 🛸 Stage III - CodeFormer (w=1)
|
| 27 |
- Training Controllable Module:
|
| 28 |
> python -m torch.distributed.launch --nproc_per_node=8 --master_port=4323 basicsr/train.py -opt options/CodeFormer_stage3.yml --launcher pytorch
|
| 29 |
|
| 30 |
+
- Pre-trained CodeFormer (`codeformer.pth`) can be found in the folder of Releases v0.1.0: https://github.com/sczhou/CodeFormer/releases/tag/v0.1.0
|
| 31 |
|
| 32 |
---
|
| 33 |
|
docs/train_CN.md
CHANGED
|
@@ -15,17 +15,19 @@
|
|
| 15 |
- 训练完VQGAN后,可以通过下面代码预先获得训练数据集的密码本序列,从而加速后面阶段的训练过程:
|
| 16 |
> python scripts/generate_latent_gt.py
|
| 17 |
|
| 18 |
-
- 如果你不需要训练自己的VQGAN,可以在Release v0.1.0文档中找到预训练的VQGAN
|
| 19 |
|
| 20 |
### 🚀 阶段 II - CodeFormer (w=0)
|
| 21 |
- 训练密码本训练预测模块:
|
| 22 |
> python -m torch.distributed.launch --nproc_per_node=8 --master_port=4322 basicsr/train.py -opt options/CodeFormer_stage2.yml --launcher pytorch
|
| 23 |
|
|
|
|
|
|
|
| 24 |
### 🛸 阶段 III - CodeFormer (w=1)
|
| 25 |
- 训练可调模块:
|
| 26 |
> python -m torch.distributed.launch --nproc_per_node=8 --master_port=4323 basicsr/train.py -opt options/CodeFormer_stage3.yml --launcher pytorch
|
| 27 |
|
| 28 |
-
- 预训练CodeFormer
|
| 29 |
|
| 30 |
---
|
| 31 |
|
|
|
|
| 15 |
- 训练完VQGAN后,可以通过下面代码预先获得训练数据集的密码本序列,从而加速后面阶段的训练过程:
|
| 16 |
> python scripts/generate_latent_gt.py
|
| 17 |
|
| 18 |
+
- 如果你不需要训练自己的VQGAN,可以在Release v0.1.0文档中找到预训练的VQGAN (`vqgan_code1024.pth`)和对应的密码本序列 (`latent_gt_code1024.pth`): https://github.com/sczhou/CodeFormer/releases/tag/v0.1.0
|
| 19 |
|
| 20 |
### 🚀 阶段 II - CodeFormer (w=0)
|
| 21 |
- 训练密码本训练预测模块:
|
| 22 |
> python -m torch.distributed.launch --nproc_per_node=8 --master_port=4322 basicsr/train.py -opt options/CodeFormer_stage2.yml --launcher pytorch
|
| 23 |
|
| 24 |
+
- 预训练CodeFormer第二阶段模型 (`codeformer_stage2.pth`)可以在Releases v0.1.0文档里下载: https://github.com/sczhou/CodeFormer/releases/tag/v0.1.0
|
| 25 |
+
|
| 26 |
### 🛸 阶段 III - CodeFormer (w=1)
|
| 27 |
- 训练可调模块:
|
| 28 |
> python -m torch.distributed.launch --nproc_per_node=8 --master_port=4323 basicsr/train.py -opt options/CodeFormer_stage3.yml --launcher pytorch
|
| 29 |
|
| 30 |
+
- 预训练CodeFormer模型 (`codeformer.pth`)可以在Releases v0.1.0文档里下载: https://github.com/sczhou/CodeFormer/releases/tag/v0.1.0
|
| 31 |
|
| 32 |
---
|
| 33 |
|