sczhou commited on
Commit
c021434
·
1 Parent(s): aeb20c8

release training codes and config files.

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. docs/train.md +3 -3
  3. docs/train_CN.md +3 -3
README.md CHANGED
@@ -143,7 +143,7 @@ python inference_colorization.py --input_path [image folder]|[image path]
143
  python inference_inpainting.py --input_path [image folder]|[image path]
144
  ```
145
  #### Training:
146
- You can find training commands in training documents: [English](docs/train.md) **|** [简体中文](docs/train_CN.md).
147
 
148
  ### Citation
149
  If our work is useful for your research, please consider citing:
 
143
  python inference_inpainting.py --input_path [image folder]|[image path]
144
  ```
145
  #### Training:
146
+ The training commands can be found in the documents: [English](docs/train.md) **|** [简体中文](docs/train_CN.md).
147
 
148
  ### Citation
149
  If our work is useful for your research, please consider citing:
docs/train.md CHANGED
@@ -8,7 +8,7 @@
8
 
9
  ## Training
10
 
11
- #### 👾 Stage I - VQGAN
12
  - Training VQGAN:
13
  > python -m torch.distributed.launch --nproc_per_node=8 --master_port=4321 basicsr/train.py -opt options/VQGAN_512_ds32_nearest_stage1.yml --launcher pytorch
14
 
@@ -17,11 +17,11 @@
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
 
 
8
 
9
  ## Training
10
 
11
+ ### 👾 Stage I - VQGAN
12
  - Training VQGAN:
13
  > python -m torch.distributed.launch --nproc_per_node=8 --master_port=4321 basicsr/train.py -opt options/VQGAN_512_ds32_nearest_stage1.yml --launcher pytorch
14
 
 
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
 
docs/train_CN.md CHANGED
@@ -8,7 +8,7 @@
8
 
9
  ## 训练
10
 
11
- #### 👾 阶段 I - VQGAN
12
  - 训练VQGAN:
13
  > python -m torch.distributed.launch --nproc_per_node=8 --master_port=4321 basicsr/train.py -opt options/VQGAN_512_ds32_nearest_stage1.yml --launcher pytorch
14
 
@@ -17,11 +17,11 @@
17
 
18
  - 如果你不需要训练自己的VQGAN,可以在Release v0.1.0文档中找到预训练的VQGAN和对应的密码本序列: 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
- #### 🛸 阶段 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
 
 
8
 
9
  ## 训练
10
 
11
+ ### 👾 阶段 I - VQGAN
12
  - 训练VQGAN:
13
  > python -m torch.distributed.launch --nproc_per_node=8 --master_port=4321 basicsr/train.py -opt options/VQGAN_512_ds32_nearest_stage1.yml --launcher pytorch
14
 
 
17
 
18
  - 如果你不需要训练自己的VQGAN,可以在Release v0.1.0文档中找到预训练的VQGAN和对应的密码本序列: 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
+ ### 🛸 阶段 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