forked from ashleve/lightning-hydra-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from Purg/dev/r18-training-rehydration
Dev/r18 training rehydration
- Loading branch information
Showing
9 changed files
with
318 additions
and
140 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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,111 @@ | ||
# @package _global_ | ||
|
||
# to execute this experiment run: | ||
# python train.py experiment=example | ||
topic: "medical" | ||
task: "r18" | ||
feature_version: 6 | ||
|
||
defaults: | ||
- override /data: ptg | ||
- override /model: ptg | ||
- override /callbacks: default | ||
- override /trainer: gpu | ||
- override /paths: default | ||
- override /logger: aim | ||
|
||
# all parameters below will be merged with parameters from default configurations set above | ||
|
||
tags: ["r18", "ms_tcn", "debug"] | ||
|
||
seed: 12345 | ||
|
||
trainer: | ||
min_epochs: 50 | ||
max_epochs: 500 | ||
log_every_n_steps: 1 | ||
|
||
|
||
model: | ||
compile: false | ||
|
||
net: | ||
dim: 297 # length of feature vector when top_k_objects=1 | ||
#dim: 506 # length of feature vector when top_k_objects=2 | ||
|
||
# LIVE HZ | ||
IMAGE_HZ: 30 # zed bags | ||
#IMAGE_HZ: 15 # BBN hololens live | ||
OBJECT_DET_HZ: 15 | ||
POSE_HZ: 4 | ||
|
||
# GENERATE TRAINING DATA | ||
data_gen: | ||
top_k_objects: 1 | ||
pose_repeat_rate: 7.5 # ${IMAGE_HZ} / ${POSE_HZ} | ||
|
||
data_type: "pro" | ||
dataset_kwcoco: "/data/PTG/medical/training/yolo_object_detector/detect/r18_all/r18_all_all_obj_results_with_dets_and_pose.mscoco.json" | ||
train_vid_ids: [1, 2, 4, 5, 6, 8, 9, 11, 12, 14, 15, 16, 17, 19, 20, 21, | ||
22, 23, 24, 26, 28, 29, 30, 31, 33, 34, 35, 36, 37, 38, 39, 40, | ||
42, 43, 44, 45, 46, 48, 49, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, | ||
61, 62, 63, 64, 65, 66, 67, 68, 69, 70] | ||
val_vid_ids: [3, 7, 10, 18, 27, 32, 41] | ||
test_vid_ids: [50, 13, 47, 25] | ||
names_black_gloves: [] | ||
names_blue_gloves: [] | ||
#data_type: "lab" | ||
#dataset_kwcoco: "/data/PTG/medical/training/yolo_object_detector/detect/r18_all_bbn_lab_data/r18_all_bbn_lab_data_all_obj_results.mscoco.json" | ||
#train_vid_ids: [1, 2, 3, 4, 5, 6, 7, 8] | ||
#val_vid_ids: [9] | ||
#test_vid_ids: [10] | ||
#names_black_gloves: [] | ||
#names_blue_gloves: [] | ||
|
||
filter_black_gloves: false | ||
filter_blue_gloves: false | ||
|
||
activity_config_fn: "/home/local/KHQ/hannah.defazio/angel_system/config/activity_labels/medical/r18.yaml" | ||
|
||
# This matches the folder name created in the data generator | ||
exp_ext: "_NEW_ORDER_fix_overlap_gt" # anything unique about this run that isn't already in ``exp_name`` | ||
exp_name: "${task}_${data_gen.data_type}_data_top_${data_gen.top_k_objects}_objs_feat_v${feature_version}_pose_rate_${data_gen.pose_repeat_rate}${data_gen.exp_ext}" | ||
|
||
# TRAINING | ||
data: | ||
num_classes: 6 # activities: includes background | ||
batch_size: 512 | ||
num_workers: 12 | ||
epoch_length: 20000 | ||
window_size: 25 | ||
sample_rate: 2 # ${IMAGE_HZ} / ${OBJECT_DET_HZ} | ||
|
||
# AUGMENTATIONS | ||
all_transforms: | ||
train_order: [] #["MoveCenterPts", "NormalizePixelPts"] | ||
test_order: [] #["NormalizePixelPts"] | ||
MoveCenterPts: | ||
feat_version: ${feature_version} | ||
num_obj_classes: 6 # not including background, includes hands | ||
top_k_objects: ${data_gen.top_k_objects} | ||
NormalizeFromCenter: | ||
feat_version: ${feature_version} | ||
num_obj_classes: 6 # not including background, includes hands | ||
top_k_objects: ${data_gen.top_k_objects} | ||
NormalizePixelPts: | ||
feat_version: ${feature_version} | ||
num_obj_classes: 6 # not including background, includes hands | ||
top_k_objects: ${data_gen.top_k_objects} | ||
|
||
exp_name: ${data_gen.exp_name}_win_${data.window_size}_obj_sample_${data.sample_rate} | ||
|
||
paths: | ||
data_dir: "/data/PTG/medical/training/activity_classifier/TCN_data/${task}/${data_gen.exp_name}" | ||
root_dir: "/data/PTG/medical/training/activity_classifier/TCN_HPL/" | ||
|
||
logger: | ||
aim: | ||
experiment: ${exp_name} | ||
capture_terminal_logs: true | ||
|
||
task_name: ${exp_name} |
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.