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.
* pose estimation integration to TCN * pose generator * version 6 features * ptg data generator * ptg datagenerator with poses and offset vectors * resplit data * top-n objects confs for vector generation * clean and organize pose estimation into a single script * pose generation in one script, union of datasets, selection by gids or vids * step visualization, ptg model change, pose data generation in one script, new loss function * ptg feat v6 with temporal features --------- Co-authored-by: Peri Akiva <[email protected]>
- Loading branch information
Showing
30 changed files
with
2,317 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# @package _global_ | ||
|
||
# to execute this experiment run: | ||
# python train.py experiment=example | ||
|
||
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 | ||
# this allows you to overwrite only specified parameters | ||
# exp_name: "p_m2_tqt_data_test_feat_v6_with_pose" #[_v2_aug_False] | ||
exp_name: "p_m2_tqt_data_test_feat_v6_with_pose_v2_aug_False_reshuffle_True" #[_v2_aug_False] | ||
# exp_name: "p_m2_tqt_data_test_feat_v6_with_pose_v2_aug_False_reshuffle_False" #[_v2_aug_False] | ||
# exp_name: "p_m2_tqt_data_test_feat_v6_with_pose_v2_aug_True_reshuffle_True" #[_v2_aug_False] | ||
# exp_name: "p_m2_tqt_data_test_feat_v6_with_pose_v2_aug_True_reshuffle_False" #[_v2_aug_False] | ||
|
||
|
||
tags: ["m2", "ms_tcn"] | ||
|
||
seed: 12345 | ||
|
||
trainer: | ||
min_epochs: 50 | ||
max_epochs: 500 | ||
|
||
|
||
model: | ||
compile: false | ||
|
||
net: | ||
dim: 182 # length of feature vector | ||
|
||
data: | ||
num_classes: 9 # activities: includes background | ||
batch_size: 512 | ||
num_workers: 0 | ||
epoch_length: 20000 | ||
window_size: 30 | ||
sample_rate: 1 | ||
|
||
all_transforms: | ||
train_order: [] #["MoveCenterPts", "NormalizePixelPts"] | ||
test_order: [] #["NormalizePixelPts"] | ||
|
||
MoveCenterPts: | ||
feat_version: 6 | ||
num_obj_classes: 9 # not including background | ||
NormalizeFromCenter: | ||
feat_version: 6 | ||
NormalizePixelPts: | ||
feat_version: 6 | ||
num_obj_classes: 9 # not including background | ||
|
||
paths: | ||
data_dir: "/data/PTG/TCN_data/m2/p_m2_tqt_data_test_feat_v6_with_pose_v2_aug_False_reshuffle_True" #[_v2_aug_False] | ||
# data_dir: "/data/PTG/TCN_data/m2/p_m2_tqt_data_test_feat_v6_with_pose_v2_aug_False_reshuffle_False" #[_v2_aug_False] | ||
# data_dir: "/data/PTG/TCN_data/m2/p_m2_tqt_data_test_feat_v6_with_pose_v2_aug_True_reshuffle_True" #[_v2_aug_False] | ||
# data_dir: "/data/PTG/TCN_data/m2/p_m2_tqt_data_test_feat_v6_with_pose_v2_aug_True_reshuffle_False" #[_v2_aug_False] | ||
|
||
# root_dir: "/data/PTG/medical/training/activity_classifier/TCN_HPL" | ||
root_dir: "/data/users/peri.akiva/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# @package _global_ | ||
|
||
# to execute this experiment run: | ||
# python train.py experiment=example | ||
|
||
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 | ||
# this allows you to overwrite only specified parameters | ||
exp_name: "p_m2_tqt_data_test_feat_v6_no_pose" #[p_m2_tqt_data_test_feat_v6] | ||
|
||
tags: ["m2", "ms_tcn"] | ||
|
||
seed: 12345 | ||
|
||
trainer: | ||
min_epochs: 50 | ||
max_epochs: 400 | ||
|
||
|
||
model: | ||
compile: false | ||
|
||
net: | ||
dim: 288 # length of feature vector | ||
|
||
data: | ||
num_classes: 9 # activities: includes background | ||
batch_size: 256 | ||
num_workers: 0 | ||
epoch_length: 20000 | ||
window_size: 30 | ||
#sample_rate: 2 | ||
|
||
all_transforms: | ||
train_order: [] #["MoveCenterPts", "NormalizePixelPts"] | ||
test_order: [] #["NormalizePixelPts"] | ||
|
||
MoveCenterPts: | ||
feat_version: 5 | ||
num_obj_classes: 12 # not including background | ||
NormalizeFromCenter: | ||
feat_version: 5 | ||
NormalizePixelPts: | ||
feat_version: 5 | ||
num_obj_classes: 12 # not including background | ||
|
||
paths: | ||
data_dir: "/data/PTG/TCN_data/m2/p_m2_tqt_data_test_feat_v6_no_pose" #[p_m2_tqt_data_test_feat_v6] | ||
# root_dir: "/data/PTG/medical/training/activity_classifier/TCN_HPL" | ||
root_dir: "/data/users/peri.akiva/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# @package _global_ | ||
|
||
# to execute this experiment run: | ||
# python train.py experiment=example | ||
|
||
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 | ||
# this allows you to overwrite only specified parameters | ||
exp_name: "p_m2_tqt_data_test_feat_v6_only_hands_joints_v2" #[p_m2_tqt_data_test_feat_v6] | ||
|
||
tags: ["m2", "ms_tcn"] | ||
|
||
seed: 12345 | ||
|
||
trainer: | ||
min_epochs: 50 | ||
max_epochs: 400 | ||
|
||
|
||
model: | ||
compile: false | ||
|
||
net: | ||
dim: 332 # length of feature vector | ||
|
||
data: | ||
num_classes: 9 # activities: includes background | ||
batch_size: 256 | ||
num_workers: 0 | ||
epoch_length: 20000 | ||
window_size: 30 | ||
#sample_rate: 2 | ||
|
||
all_transforms: | ||
train_order: [] #["MoveCenterPts", "NormalizePixelPts"] | ||
test_order: [] #["NormalizePixelPts"] | ||
|
||
MoveCenterPts: | ||
feat_version: 6 | ||
num_obj_classes: 12 # not including background | ||
NormalizeFromCenter: | ||
feat_version: 6 | ||
NormalizePixelPts: | ||
feat_version: 6 | ||
num_obj_classes: 12 # not including background | ||
|
||
paths: | ||
data_dir: "/data/PTG/TCN_data/m2/p_m2_tqt_data_test_feat_v6_only_hands_joints" #[p_m2_tqt_data_test_feat_v6] | ||
# root_dir: "/data/PTG/medical/training/activity_classifier/TCN_HPL" | ||
root_dir: "/data/users/peri.akiva/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# @package _global_ | ||
|
||
# to execute this experiment run: | ||
# python train.py experiment=example | ||
|
||
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 | ||
# this allows you to overwrite only specified parameters | ||
exp_name: "p_m2_tqt_data_test_feat_v6_only_objects_joints" #[p_m2_tqt_data_test_feat_v6] | ||
|
||
tags: ["m2", "ms_tcn"] | ||
|
||
seed: 12345 | ||
|
||
trainer: | ||
min_epochs: 50 | ||
max_epochs: 400 | ||
|
||
|
||
model: | ||
compile: false | ||
|
||
net: | ||
dim: 310 # length of feature vector | ||
|
||
data: | ||
num_classes: 9 # activities: includes background | ||
batch_size: 256 | ||
num_workers: 0 | ||
epoch_length: 20000 | ||
window_size: 30 | ||
#sample_rate: 2 | ||
|
||
all_transforms: | ||
train_order: [] #["MoveCenterPts", "NormalizePixelPts"] | ||
test_order: [] #["NormalizePixelPts"] | ||
|
||
MoveCenterPts: | ||
feat_version: 6 | ||
num_obj_classes: 12 # not including background | ||
NormalizeFromCenter: | ||
feat_version: 6 | ||
NormalizePixelPts: | ||
feat_version: 6 | ||
num_obj_classes: 12 # not including background | ||
|
||
paths: | ||
data_dir: "/data/PTG/TCN_data/m2/p_m2_tqt_data_test_feat_v6_only_objects_joints" #[p_m2_tqt_data_test_feat_v6] | ||
# root_dir: "/data/PTG/medical/training/activity_classifier/TCN_HPL" | ||
root_dir: "/data/users/peri.akiva/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
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
Oops, something went wrong.