Usage: vis.py [OPTIONS]
Quick visualization script
Options:
-r, --result_path DIRECTORY Filepath to a folder of json results (or a
folder of folders of json results)
-o, --output_path DIRECTORY Filepath where visualizations should be stored
--help Show this message and exit.
Example run:
python vis.py -r /data/benjamin.pikus/TA1-activity-recognition-self-eval_results/results -o output_res
Usage: vis_across_novelty.py [OPTIONS]
Options:
-h, --help show this help message and exit
--result-root-path RESULT_ROOT_PATH
Path to root directory where results are stored
--algorithms ALGORITHMS [ALGORITHMS ...]
Name of the algorithm that would be included in the
plots
--novelty-levels NOVELTY_LEVELS [NOVELTY_LEVELS ...]
Novelty levels used in plots
--timestamps TIMESTAMPS [TIMESTAMPS ...]
Timestamps used in plots
--metrics METRICS [METRICS ...]
Metrics used in plots
--row-subplot ROW_SUBPLOT
Row for subplots
--col-subplot COL_SUBPLOT
Column for subplots
--in-plot IN_PLOT [IN_PLOT ...]
Values combined in a plot
--output-path OUTPUT_PATH
Filepath where visualizations should be stored
Example run
python vis_across_novelty.py --result-root-path /data/SAIL-ON/TA1-activity-recognition-self-eval/activity-recognition/results/raw_results/ \
--algorithms gae_kl_nd fixed_x3d adaptive_x3d \
--novelty-levels class temporal \
--timestamps early in-middle late \
--metrics m1 m2 m2.1 no_cdt --row-subplot metrics \
--col-subplot novelty_levels \
--in-plot algorithms timestamps --output-path two_levels.png
Usage: vis_tsne.py [OPTIONS]
-h, --help show this help message and exit
--known-csv KNOWN_CSV
Path to csv file with known video names
--unknown-class-csv UNKNOWN_CLASS_CSV
Path to csv file with unknown video names for class novelty
--unknown-spatial-csv UNKNOWN_SPATIAL_CSV
Path to csv file with unknown video names for spatial novelty
--unknown-temporal-csv UNKNOWN_TEMPORAL_CSV
Path to csv file with unknown video names for temporal novelty
--class-features CLASS_FEATURES
Path to pickle file with class novelty features
--spatial-features SPATIAL_FEATURES
Path to pickle file with spatial novelty features
--temporal-features TEMPORAL_FEATURES
Path to pickle file with temporal novelty features
--plot-classwise Flag to plot class wise value in TSNE
--output-path OUTPUT_PATH
Path to Visualization
Example run
python vis_tsne.py --known-csv ~/data/TA1-activity-recognition-training/TA2_splits/ucf101_train_knowns_revised.csv \
--unknown-class-csv ~/data/TA1-activity-recognition-training/TA2_splits/ucf101_train_unknowns_revised.csv \
--unknown-spatial-csv ~/data/TA1-activity-recognition-training/TA2_splits/ucf101_train_spatial_unkowns_updated.csv \
--unknown-temporal-csv ~/data/TA1-activity-recognition-training/TA2_splits/ucf101_train_temporal_unkowns.csv \
--class-features /data/SAIL-ON/TA1-activity-recognition-self-eval/activity-recognition/features/class/x3d_features.pkl \
--spatial-features /data/SAIL-ON/TA1-activity-recognition-self-eval/activity-recognition/features/spatial/x3d_features.pkl \
--temporal-features /data/SAIL-ON/TA1-activity-recognition-self-eval/activity-recognition/features/temporal/x3d_features.pkl \
--output-path test_tsne.png