Skip to content

Commit

Permalink
add the usage of train_pl.py
Browse files Browse the repository at this point in the history
  • Loading branch information
maxin-cn committed Aug 15, 2024
1 parent 34dc911 commit bfed002
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,13 @@ Latte models. For example, if you want to train the Latte model on the FaceForen
torchrun --nnodes=1 --nproc_per_node=N train_with_img.py --config ./configs/ffs/ffs_img_train.yaml
```

If you are familiar with `PyTorch Lightning`, you can also use the training script [`train_pl.py`](train_pl.py) provided by [@zhang.haojie](https://github.com/zhang-haojie).
If you are familiar with `PyTorch Lightning`, you can also use the training script [`train_pl.py`](train_pl.py) provided by [@zhang.haojie](https://github.com/zhang-haojie),

```bash
python train_pl.py --config ./configs/ffs/ffs_img_train.yaml
```

This script automatically detects available GPUs and uses distributed training.

## Contact Us
**Yaohui Wang**: [[email protected]](mailto:[email protected])
Expand Down

0 comments on commit bfed002

Please sign in to comment.