Skip to content

Commit

Permalink
release training codes and config files.
Browse files Browse the repository at this point in the history
  • Loading branch information
sczhou committed Apr 19, 2023
1 parent aeb20c8 commit c021434
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ python inference_colorization.py --input_path [image folder]|[image path]
python inference_inpainting.py --input_path [image folder]|[image path]
```
#### Training:
You can find training commands in training documents: [English](docs/train.md) **|** [简体中文](docs/train_CN.md).
The training commands can be found in the documents: [English](docs/train.md) **|** [简体中文](docs/train_CN.md).

### Citation
If our work is useful for your research, please consider citing:
Expand Down
6 changes: 3 additions & 3 deletions docs/train.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Training

#### 👾 Stage I - VQGAN
### 👾 Stage I - VQGAN
- Training VQGAN:
> 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
Expand All @@ -17,11 +17,11 @@
- 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

#### 🚀 Stage II - CodeFormer (w=0)
### 🚀 Stage II - CodeFormer (w=0)
- Training Code Sequence Prediction Module:
> python -m torch.distributed.launch --nproc_per_node=8 --master_port=4322 basicsr/train.py -opt options/CodeFormer_stage2.yml --launcher pytorch
#### 🛸 Stage III - CodeFormer (w=1)
### 🛸 Stage III - CodeFormer (w=1)
- Training Controllable Module:
> python -m torch.distributed.launch --nproc_per_node=8 --master_port=4323 basicsr/train.py -opt options/CodeFormer_stage3.yml --launcher pytorch
Expand Down
6 changes: 3 additions & 3 deletions docs/train_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## 训练

#### 👾 阶段 I - VQGAN
### 👾 阶段 I - VQGAN
- 训练VQGAN:
> 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
Expand All @@ -17,11 +17,11 @@
- 如果你不需要训练自己的VQGAN,可以在Release v0.1.0文档中找到预训练的VQGAN和对应的密码本序列: https://github.com/sczhou/CodeFormer/releases/tag/v0.1.0

#### 🚀 阶段 II - CodeFormer (w=0)
### 🚀 阶段 II - CodeFormer (w=0)
- 训练密码本训练预测模块:
> python -m torch.distributed.launch --nproc_per_node=8 --master_port=4322 basicsr/train.py -opt options/CodeFormer_stage2.yml --launcher pytorch
#### 🛸 阶段 III - CodeFormer (w=1)
### 🛸 阶段 III - CodeFormer (w=1)
- 训练可调模块:
> python -m torch.distributed.launch --nproc_per_node=8 --master_port=4323 basicsr/train.py -opt options/CodeFormer_stage3.yml --launcher pytorch
Expand Down

0 comments on commit c021434

Please sign in to comment.