- YACS (Yet Another Configuration System)
- Torch
- Opencv-python
- Clone this repository:
git clone https://github.com/ngocphucck/IR-pose-classification
cd IR-pose-classification
- Install dependencies: Please type the command
pip install -r requirements.txt
.
-
Firstly, you have to prepare your annotations. I recommend that you organize your labelling file into 2 files:
train.json
andval.json
with the formimage_path: label
. -
After that, you can define some parameters in your method. There are 2 options for you to do that:
- Change parameters in
defaults.py
. - Another way is to be more flexible. You'll create YAML configuration files; typically, you'll make one for each experiment. But, when actually implementing, you need to merge this
.yaml
file withdefaults.py.
The following code makes this action:
cfg = get_cfg('path_to_file') cfg.merge_from_file("experiment.yaml") cfg.freeze()
- Change parameters in
-
Train a model:
cd tools
python train.py
Backbones | Loss functions | Optimizers | Augmentations |
|
|
|
|
- Multiple backbones
- Data augmentations
- Multiple loss functions
- Experiment managment
- Edge devices deployment
- UI demo/Docker resource
- Distributed computing