|
1 | 1 | # ***⚡ [TmPL](): [T]()e[mpl]()ate for [P]()ytorch [L]()ightning*** |
2 | 2 |
|
3 | | - |
4 | | - |
5 | | - |
| 3 | + |
| 4 | + |
| 5 | + |
6 | 6 |  |
7 | 7 |
|
8 | 8 | [](LICENSE) |
9 | | - |
| 9 | + |
10 | 10 |
|
11 | 11 | [Lightning Docs](https://lightning.ai/docs/pytorch/stable/) • |
12 | 12 | [Installation](#installation) • |
|
15 | 15 | [Contributing](#contributing) • |
16 | 16 | [License](#license) |
17 | 17 |
|
18 | | -A template for rapid & flexible DL experimentation development, built upon [Lightning](https://lightning.ai/) & [Hydra](https://hydra.cc/) with best practice. |
| 18 | +A template for rapid & flexible DL experimentation development, powered by [Lightning](https://lightning.ai/) & [Hydra](https://hydra.cc/) following best practice. |
19 | 19 |
|
20 | | -## What's New |
21 | | - |
22 | | -***v2.0*** was released on Sep 5 '23. |
| 20 | +<div align="center"> |
| 21 | +<img src="assets/meme.png" width="256" height="256"> |
| 22 | +</div> |
23 | 23 |
|
24 | 24 | ## Installation |
25 | 25 |
|
26 | 26 | ``` |
27 | 27 | pip install -r requirements.txt |
28 | 28 | ``` |
29 | 29 |
|
30 | | -It is recommended to manually install PyTorch and Torchvision before running the installation command, referring to the official PyTorch website for [instructions](https://pytorch.org/get-started/locally/). |
31 | | - |
32 | 30 | ## Usage |
33 | 31 |
|
34 | 32 | 0. **Setup** |
35 | 33 |
|
36 | | - ```shell |
| 34 | + ```bash |
37 | 35 | export PYTHONPATH=`pwd`:$PYTHONPATH |
38 | 36 | ``` |
39 | 37 |
|
40 | 38 | 1. **Training** |
41 | 39 |
|
42 | | - ```shell |
| 40 | + ```bash |
43 | 41 | python tools/train.py [--config-name config[.yaml]] [trainer.devices=4] [data.loader.batch_size=16] |
44 | 42 | ``` |
45 | 43 |
|
46 | | - * Override the default config file with `--config-name`. |
47 | | - * You can also override any value in the loaded config from the command line, refer to the following for more infomation. |
48 | | - * https://hydra.cc/docs/tutorials/basic/your_first_app/config_file/ |
| 44 | + * Specify the configuration file using `--config-name`. |
| 45 | + * Refer to the following for detailed information on Hydra's override syntax. |
49 | 46 | * https://hydra.cc/docs/advanced/hydra-command-line-flags/ |
50 | 47 | * https://hydra.cc/docs/advanced/override_grammar/basic/ |
51 | 48 |
|
52 | 49 | 2. **Tips for Further Development** |
53 | 50 |
|
54 | | - The code is designed to be flexible and customizable to meet your specific needs. \ |
55 | | - Useful comments can be found in the source code. |
| 51 | + This framework is designed for flexibility and easy customization to meet users' specific needs. |
| 52 | + Useful comments and details on extending the framework can be found within the source code files. |
56 | 53 |
|
57 | 54 | ## Reference |
58 | 55 |
|
|
0 commit comments