generated from ruhyadi/lightning-hydra-template
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
253 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
- experiment=model2 | ||
- experiment=model3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
_target_: src.datamodules.kitti_datamodule.KITTIDataModule | ||
|
||
dataset_path: ${paths.data_dir} # data_dir is specified in config.yaml | ||
train_sets: ${paths.data_dir}/train.txt | ||
val_sets: ${paths.data_dir}/val.txt | ||
test_sets: ${paths.data_dir}/test.txt | ||
train_sets: ${paths.data_dir}/train_80.txt | ||
val_sets: ${paths.data_dir}/val_80.txt | ||
test_sets: ${paths.data_dir}/test_80.txt | ||
batch_size: 128 | ||
num_worker: 32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
_target_: src.datamodules.kitti_datamodule.KITTIDataModule3 | ||
|
||
dataset_path: ${paths.data_dir} # data_dir is specified in config.yaml | ||
train_sets: ${paths.data_dir}/train_80.txt | ||
val_sets: ${paths.data_dir}/val_80.txt | ||
test_sets: ${paths.data_dir}/test_80.txt | ||
batch_size: 128 | ||
num_worker: 32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
_target_: src.datamodules.components.kitti_dataset.KITTIDataset3 | ||
|
||
dataset_path: ${paths.data_dir} | ||
dataset_sets: ${paths.data_dir}/train_80.txt | ||
bins: 2 | ||
overlap: 0.1 | ||
image_size: 224 | ||
categories: | ||
- "car" | ||
- "pedestrian" | ||
- "cyclist" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# @package _global_ | ||
|
||
# to execute this experiment run: | ||
# python train.py experiment=example | ||
|
||
defaults: | ||
- override /datamodule: kitti_datamodule3.yaml | ||
- override /model: regressor3.yaml | ||
- override /callbacks: default.yaml | ||
- override /logger: wandb.yaml | ||
- override /trainer: dgx.yaml | ||
|
||
# all parameters below will be merged with parameters from default configurations set above | ||
# this allows you to overwrite only specified parameters | ||
|
||
seed: 420 | ||
|
||
trainer: | ||
min_epochs: 1 | ||
max_epochs: 10 | ||
gpus: [0,1,2,3] | ||
strategy: ddp | ||
|
||
datamodule: | ||
train_sets: ${paths.data_dir}/train_80.txt | ||
val_sets: ${paths.data_dir}/val_80.txt | ||
|
||
wandb: | ||
name: "model3" | ||
|
||
# name of the run determines folder name in logs | ||
name: "model3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
_target_: src.models.regressor.RegressorModel3 | ||
|
||
net: | ||
_target_: src.models.components.base.RegressorNet | ||
backbone: | ||
_target_: torchvision.models.resnet18 # change model on this | ||
pretrained: True | ||
bins: 2 | ||
|
||
lr: 0.001 | ||
momentum: 0.9 | ||
w: 0.4 | ||
alpha: 0.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.