Skip to content

Commit

Permalink
Merge pull request #37 from Purg/dev/vectorizer-structure
Browse files Browse the repository at this point in the history
Dev/vectorizer structure
  • Loading branch information
Purg authored Oct 30, 2024
2 parents 0a800a0 + 548560d commit 7714835
Show file tree
Hide file tree
Showing 9 changed files with 413 additions and 308 deletions.
11 changes: 9 additions & 2 deletions configs/data/ptg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,22 @@ _target_: tcn_hpl.data.ptg_datamodule.PTGDataModule
train_dataset:
_target_: tcn_hpl.data.tcn_dataset.TCNDataset
window_size: 15
feature_version: 1
vectorizer:
_target_: tcn_hpl.data.vectorize.classic.Classic
feat_version: 6
top_k: 1
num_classes: 7
background_idx: 0
hand_left_idx: 5
hand_right_idx: 6
transform:
_target_: torchvision.transforms.Compose
transforms: []

val_dataset:
_target_: tcn_hpl.data.tcn_dataset.TCNDataset
window_size: ${data.train_dataset.window_size}
feature_version: ${data.train_dataset.feature_version}
vectorizer: ${data.train_dataset.vectorizer}
transform:
_target_: torchvision.transforms.Compose
transforms: []
Expand Down
23 changes: 18 additions & 5 deletions configs/experiment/m2/feat_v6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@ defaults:
# all parameters below will be merged with parameters from default configurations set above
# this allows you to overwrite only specified parameters

# Set this value influences:
# Change this name to something descriptive and unique for this experiment.
# This will differentiate the run logs and output to be separate from other
# experiments that may have been run under the configured
# Setting this value influences:
# - the name of the directory under `${paths.root_dir}/logs/` in which training
# run files are stored.
# Default is "train" set in the "configs/train.yaml" file.
#task_name:

# simply provide checkpoint path to resume training
#ckpt_path: null

tags: ["m2", "ms_tcn", "debug"]

seed: 12345
Expand Down Expand Up @@ -61,7 +67,14 @@ data:

train_dataset:
window_size: 25
feature_version: 6
vectorizer:
_target_: tcn_hpl.data.vectorize.classic.Classic
feat_version: 6
top_k: 1
num_classes: 7
background_idx: 0
hand_left_idx: 5
hand_right_idx: 6
transform:
transforms: [] # no transforms
# - _target_: tcn_hpl.data.components.augmentations.MoveCenterPts
Expand Down Expand Up @@ -93,14 +106,14 @@ data:

paths:
# root_dir: "/data/PTG/medical/training/activity_classifier/TCN_HPL/"
root_dir: "/home/local/KHQ/paul.tunison/data/darpa-ptg/tcn_training_example/training_root"
root_dir: "/home/local/KHQ/paul.tunison/data/darpa-ptg/train-TCN-M2_bbn_hololens/training_root"

# Convenience variable to where your train/val/test split COCO file datasets
# are stored.
coco_file_root: "/home/local/KHQ/paul.tunison/data/darpa-ptg/tcn_training_example"
coco_file_root: "/home/local/KHQ/paul.tunison/data/darpa-ptg/train-TCN-M2_bbn_hololens"

#exp_name: "tcn_training_revive"
#logger:
# aim:
# experiment: ${exp_name}
# experiment: ${task_name}
# capture_terminal_logs: true
Loading

0 comments on commit 7714835

Please sign in to comment.