forked from fabiofelix/procedural_step_recog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fabiofelix:main' into main
- Loading branch information
Showing
20 changed files
with
587 additions
and
73 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,28 @@ | ||
_BASE_: STEPGRU_BASE.yaml | ||
MODEL: | ||
OMNIGRU_CHECKPOINT_URL: 'models/M2.pt' | ||
OUTPUT_DIM: 8 | ||
YOLO_CHECKPOINT_URL: 'models/bbn_yolo_M2.pt' | ||
|
||
DATASET: | ||
TR_ANNOTATIONS_FILE: "labels/M2_Alabama+BBN_videos_M2-19.csv" | ||
VL_ANNOTATIONS_FILE: "labels/M2_Alabama+BBN_videos_M2-19.csv" | ||
TS_ANNOTATIONS_FILE: "labels/M2_Alabama+BBN_videos_M2-19.csv" | ||
|
||
OUTPUT: | ||
LOCATION: "output" | ||
|
||
TRAIN: | ||
ENABLE: False | ||
|
||
SKILLS: | ||
- NAME: M2 - Apply Tourniquet | ||
STEPS: | ||
- Place tourniquet over affected extremity 2-3 inches above wound site. | ||
- Pull tourniquet tight. | ||
- Apply strap to strap body. | ||
- Turn windless clock wise or counter clockwise until hemorrhage is controlled. | ||
- Lock windless into the windless keeper. | ||
- Pull remaining strap over the windless keeper. | ||
- Secure strap and windless keeper with keeper securing device. | ||
- Mark time on securing device strap with permanent marker. |
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,6 @@ | ||
MODEL: | ||
ARCH: omnivore_swinB_epic | ||
MODEL_NAME: Omnivore | ||
NFRAMES: 32 | ||
MEAN: [0.485, 0.456, 0.406] | ||
STD: [0.229, 0.224, 0.225] |
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,68 @@ | ||
TRAIN: | ||
ENABLE: False | ||
DATASET: epickitchens | ||
BATCH_SIZE: 64 | ||
EVAL_PERIOD: 2 | ||
CHECKPOINT_PERIOD: 1 | ||
CHECKPOINT_EPOCH_RESET: True | ||
AUTO_RESUME: True | ||
CHECKPOINT_FILE_PATH: "/home/user/data/SLOWFAST-AUDITORY/SLOWFAST_EPIC.pyth" | ||
DATA: | ||
INPUT_CHANNEL_NUM: [1, 1] | ||
AUDIO_DATA: | ||
CLIP_SECS: 1.999 | ||
NUM_FRAMES: 400 | ||
SLOWFAST: | ||
ALPHA: 4 | ||
BETA_INV: 8 | ||
FUSION_CONV_CHANNEL_RATIO: 2 | ||
FUSION_KERNEL_SZ: 7 | ||
RESNET: | ||
ZERO_INIT_FINAL_BN: True | ||
WIDTH_PER_GROUP: 64 | ||
NUM_GROUPS: 1 | ||
DEPTH: 50 | ||
TRANS_FUNC: bottleneck_transform | ||
STRIDE_1X1: False | ||
NUM_BLOCK_TEMP_KERNEL: [[3, 3], [4, 4], [6, 6], [3, 3]] | ||
FREQUENCY_STRIDES: [[1, 1], [2, 2], [2, 2], [2, 2]] | ||
FREQUENCY_DILATIONS: [[1, 1], [1, 1], [1, 1], [1, 1]] | ||
BN: | ||
USE_PRECISE_STATS: True | ||
FREEZE: True | ||
NUM_BATCHES_PRECISE: 200 | ||
SOLVER: | ||
BASE_LR: 0.001 | ||
LR_POLICY: steps_with_relative_lrs | ||
STEPS: [0, 20, 25] | ||
LRS: [1, 0.1, 0.01] | ||
MAX_EPOCH: 30 | ||
MOMENTUM: 0.9 | ||
WEIGHT_DECAY: 1e-4 | ||
WARMUP_EPOCHS: -1.0 | ||
WARMUP_START_LR: 0.01 | ||
OPTIMIZING_METHOD: sgd | ||
MODEL: | ||
NUM_CLASSES: [34, 34] | ||
ARCH: slowfast | ||
MODEL_NAME: SlowFast | ||
LOSS_FUNC: cross_entropy | ||
DROPOUT_RATE: 0.5 | ||
TEST: | ||
ENABLE: False | ||
DATASET: epickitchens | ||
BATCH_SIZE: 32 | ||
NUM_ENSEMBLE_VIEWS: 1 | ||
DATA_LOADER: | ||
NUM_WORKERS: 8 | ||
PIN_MEMORY: True | ||
EPICKITCHENS: | ||
TRAIN_PLUS_VAL: False | ||
AUDIO_DATA_FILE: "/home/user/data/BBN/new/M1/sound/files/BBN-M1-audio-windows_with_epic-structure.hdf5" | ||
ANNOTATIONS_DIR: "/home/user/data/BBN/new/M1/sound/files" | ||
NUM_GPUS: 1 | ||
NUM_SHARDS: 1 | ||
RNG_SEED: 0 | ||
OUTPUT_DIR: "/home/user/data/BBN/new/M1/sound" | ||
EXTRACT: | ||
ENABLE: True |
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,31 @@ | ||
MODEL: | ||
HIDDEN_SIZE: 1024 | ||
CONTEXT_LENGTH: 'full' | ||
USE_ACTION: True ##default true | ||
USE_OBJECTS: True ##default true | ||
USE_AUDIO: False ##default false | ||
USE_BN: False ##default false | ||
DROP_OUT: 0.5 | ||
|
||
OMNIVORE_CONFIG: 'config/OMNIVORE.yaml' | ||
SLOWFAST_CONFIG: 'config/SLOWFAST_R50.yaml' | ||
DATASET: | ||
NAME: 'Milly' | ||
LOCATION: 'videos/frames' | ||
AUDIO_LOCATION: '/sound' | ||
INCLUDE_IMAGE_AUGMENTATIONS: True | ||
INCLUDE_TIME_AUGMENTATIONS: False | ||
IMAGE_AUGMENTATION_PERCENTAGE: 0.8 | ||
DATALOADER: | ||
NUM_WORKERS: 12 | ||
PIN_MEMORY: True | ||
TRAIN: | ||
ENABLE: True | ||
USE_CROSS_VALIDATION: True ##default true | ||
USE_CLASS_WEIGHT: True ##default true | ||
NUM_GPUS: 1 | ||
BATCH_SIZE: 8 #32 | ||
OPT: "adam" #adam sgd rmsprop | ||
LR: 0.001 | ||
EPOCHS: 25 | ||
CV_TEST_TYPE: None # 10p bbn None |
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 @@ | ||
narration_id,participant_id,video_id,narration_timestamp,start_timestamp,stop_timestamp,start_frame,stop_frame,narration,verb,verb_class,noun,noun_class,all_nouns,all_noun_classes,video_fps | ||
302,M2,M2-19,00:00:00.000,00:00:00.000,00:00:00.000,374,638,Place tourniquet with over effected extremity 2-3 inches above wound site.,Place tourniquet with over effected extremity 2-3 inches above wound site.,0,Place tourniquet with over effected extremity 2-3 inches above wound site.,0,['Place tourniquet with over effected extremity 2-3 inches above wound site.'],[0],30 | ||
303,M2,M2-19,00:00:00.000,00:00:00.000,00:00:00.000,677,785,Pull tourniquet tight.,Pull tourniquet tight.,1,Pull tourniquet tight.,1,['Pull tourniquet tight.'],[1],30 | ||
304,M2,M2-19,00:00:00.000,00:00:00.000,00:00:00.000,806,884,Cinch tourniquet strap.,Cinch tourniquet strap.,2,Cinch tourniquet strap.,2,['Cinch tourniquet strap.'],[2],30 | ||
305,M2,M2-19,00:00:00.000,00:00:00.000,00:00:00.000,896,1072,Turn windless clock wise or counter clockwise until hemorrhage is controlled .,Turn windless clock wise or counter clockwise until hemorrhage is controlled .,3,Turn windless clock wise or counter clockwise until hemorrhage is controlled .,3,['Turn windless clock wise or counter clockwise until hemorrhage is controlled .'],[3],30 | ||
306,M2,M2-19,00:00:00.000,00:00:00.000,00:00:00.000,1187,1247,Cinch tourniquet strap.,Cinch tourniquet strap.,2,Cinch tourniquet strap.,2,['Cinch tourniquet strap.'],[2],30 | ||
307,M2,M2-19,00:00:00.000,00:00:00.000,00:00:00.000,1254,1371,Lock windless into the windless keeper.,Lock windless into the windless keeper.,4,Lock windless into the windless keeper.,4,['Lock windless into the windless keeper.'],[4],30 | ||
308,M2,M2-19,00:00:00.000,00:00:00.000,00:00:00.000,1454,1503,Mark time on securing device strap with permanent marker.,Mark time on securing device strap with permanent marker.,7,Mark time on securing device strap with permanent marker.,7,['Mark time on securing device strap with permanent marker.'],[7],30 |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,20 @@ | ||
precision recall f1-score support | ||
|
||
Step 1 1.00 1.00 1.00 10 | ||
Step 2 0.38 1.00 0.56 5 | ||
Step 3 0.50 0.14 0.22 7 | ||
Step 4 0.75 0.86 0.80 7 | ||
Step 5 0.33 1.00 0.50 5 | ||
Step 6 0.00 0.00 0.00 0 | ||
Step 7 0.00 0.00 0.00 0 | ||
Step 8 0.60 1.00 0.75 3 | ||
No step 0.97 0.63 0.76 46 | ||
|
||
accuracy 0.71 83 | ||
macro avg 0.50 0.63 0.51 83 | ||
weighted avg 0.83 0.71 0.72 83 | ||
|
||
|
||
Categorical accuracy: 0.71 | ||
Weighted accuracy: 0.80 | ||
Balanced accuracy: 0.80 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
Empty file.
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.