This is a personal template repository for PyTorch projects. A hand-written digit recognition model is included as example.
| Path | Description |
|---|---|
/commands/... |
Command scripts. |
/data/... |
Data loader script and downloaded dataset. |
/models/... |
Model definitions. |
/notebooks/... |
Analysis notebook templates. |
/main.py |
Entry point script. |
/environment.yml |
Conda environment definition. |
-
Open
environment.ymland edit the environment name in the first line. -
Create conda environment from
environment.ymland activate it:conda env create -f environment.yml conda activate <YOUR_ENVIRONMENT_NAME>
-
Execute
main.pyand wait for it to finish:python main.py train
-
Open
/path/to/log/statistics.ipynb(the actual path is available in the output of last command), run it, and view the results.
Execute python main.py --help to get an overview of available commands.