You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,14 +31,32 @@ pip install -e .
31
31
## Codebase description
32
32
All files related to the model are stored in the `IMPA` folder.
33
33
34
-
*`checkpoint.py`: implements the util class for handling saving and loading checkpoints.
34
+
*`checkpoint.py`: implements the util class for saving and loading checkpoints.
35
35
*`main_hydra.py`: calls the `Solver` class and implements training supported by [hydra](https://hydra.cc/docs/1.3/intro/).
36
36
*`model.py`: implements the neural network modules and initialization function.
37
37
*`solver.py`: contains the `Solver` class implementing the model setup, data loading and training loop.
38
38
*`utils.py`: contains helper functions.
39
39
*`eval/eval.py`: contains the evaluation script used during training by the `Solver` class.
40
40
*`dataset/data_loader.py`: implements `torch` dataset and data loader wrappers around the image data.
41
41
*`dataset/data_utils.py`: implements utilfunctions for the data loader.
42
+
43
+
## Set up
44
+
45
+
Setting up the repository requires creating a project folder.
46
+
47
+
```
48
+
cd IMPA
49
+
mkdir project_folder
50
+
```
51
+
52
+
One can also create the project folder elsewhere, e.g. a directory with larger storage capacity, and create a symlink from the IMPA directory to the chosen project folder location:
53
+
54
+
```
55
+
cd IMPA
56
+
ln -s path/to/storage/folder/ project_folder
57
+
```
58
+
59
+
Subsequently, download the data (and the model checkpoints) [here](https://zenodo.org/record/8307629). Unzip and move the dataset folder to `IMPA/project folder`. The checkpoints should be at `IMPA/checkpoints`.
42
60
43
61
## Train the models
44
62
@@ -57,8 +75,10 @@ sbatch training_config.sbatch
57
75
58
76
And the script will be submitted automatically.
59
77
60
-
To train the model with the provided yaml files, adapt the `.yaml` files to the experimental setup (*i.e.* add path strings referencing the used directories).
78
+
To train the model with the provided yaml files, adapt the `.yaml` files to the experimental setup (*i.e.* add path strings referencing the used directories).
61
79
80
+
## Tutorials
81
+
Tutorials are available in the `IMPA/tutorials` folder as notebooks.
62
82
63
83
## Dataset and checkpoints
64
84
Model checkpoints and pre-processed data are made available [here](https://zenodo.org/record/8307629).
0 commit comments