├── .gitignore ├── LICENSE ├── README.md ├── assets ├── HF2_VAD_ICCV21_CR.pdf ├── HF2_VAD_ICCV21_Supp_CR.pdf └── fig2-CR.png ├── cfgs ├── cfg.yaml ├── finetune_cfg.yaml └── ml_memAE_sc_cfg.yaml ├── data ├── avenue │ └── ground_truth_demo │ │ └── gt_label.json ├── ped2 │ └── ground_truth_demo │ │ └── gt_label.json └── shanghaitech │ └── ground_truth_demo │ └── gt_label.json ├── datasets ├── __init__.py └── dataset.py ├── eval.py ├── finetune.py ├── losses ├── __init__.py └── loss.py ├── ml_memAE_sc_eval.py ├── ml_memAE_sc_train.py ├── models ├── __init__.py ├── basic_modules.py ├── mem_cvae.py ├── ml_memAE_sc.py └── vunet.py ├── pre_process ├── __init__.py ├── assets │ └── latest_version_cascade_rcnn_r101_fpn_1x.py ├── extract_bboxes.py ├── extract_flows.py ├── extract_samples.py ├── flownet_networks │ ├── FlowNetC.py │ ├── FlowNetFusion.py │ ├── FlowNetS.py │ ├── FlowNetSD.py │ ├── __init__.py │ ├── channelnorm_package │ │ ├── __init__.py │ │ ├── channelnorm.py │ │ ├── channelnorm_cuda.cc │ │ ├── channelnorm_kernel.cu │ │ ├── channelnorm_kernel.cuh │ │ └── setup.py │ ├── correlation_package │ │ ├── __init__.py │ │ ├── correlation.py │ │ ├── correlation_cuda.cc │ │ ├── correlation_cuda_kernel.cu │ │ ├── correlation_cuda_kernel.cuh │ │ └── setup.py │ ├── flownet2_models.py │ ├── resample2d_package │ │ ├── __init__.py │ │ ├── resample2d.py │ │ ├── resample2d_cuda.cc │ │ ├── resample2d_kernel.cu │ │ ├── resample2d_kernel.cuh │ │ └── setup.py │ └── submodules.py ├── install_custom_layers.sh ├── mmdet_utils.py └── readme.md ├── train.py └── utils ├── __init__.py ├── cfg_utils.py ├── eval_utils.py ├── flow_utils.py ├── initialization_utils.py ├── model_utils.py └── vis_utils.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/README.md -------------------------------------------------------------------------------- /assets/HF2_VAD_ICCV21_CR.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/assets/HF2_VAD_ICCV21_CR.pdf -------------------------------------------------------------------------------- /assets/HF2_VAD_ICCV21_Supp_CR.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/assets/HF2_VAD_ICCV21_Supp_CR.pdf -------------------------------------------------------------------------------- /assets/fig2-CR.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/assets/fig2-CR.png -------------------------------------------------------------------------------- /cfgs/cfg.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/cfgs/cfg.yaml -------------------------------------------------------------------------------- /cfgs/finetune_cfg.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/cfgs/finetune_cfg.yaml -------------------------------------------------------------------------------- /cfgs/ml_memAE_sc_cfg.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/cfgs/ml_memAE_sc_cfg.yaml -------------------------------------------------------------------------------- /data/avenue/ground_truth_demo/gt_label.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/data/avenue/ground_truth_demo/gt_label.json -------------------------------------------------------------------------------- /data/ped2/ground_truth_demo/gt_label.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/data/ped2/ground_truth_demo/gt_label.json -------------------------------------------------------------------------------- /data/shanghaitech/ground_truth_demo/gt_label.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/data/shanghaitech/ground_truth_demo/gt_label.json -------------------------------------------------------------------------------- /datasets/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /datasets/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/datasets/dataset.py -------------------------------------------------------------------------------- /eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/eval.py -------------------------------------------------------------------------------- /finetune.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/finetune.py -------------------------------------------------------------------------------- /losses/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /losses/loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/losses/loss.py -------------------------------------------------------------------------------- /ml_memAE_sc_eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/ml_memAE_sc_eval.py -------------------------------------------------------------------------------- /ml_memAE_sc_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/ml_memAE_sc_train.py -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/basic_modules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/models/basic_modules.py -------------------------------------------------------------------------------- /models/mem_cvae.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/models/mem_cvae.py -------------------------------------------------------------------------------- /models/ml_memAE_sc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/models/ml_memAE_sc.py -------------------------------------------------------------------------------- /models/vunet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/models/vunet.py -------------------------------------------------------------------------------- /pre_process/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pre_process/assets/latest_version_cascade_rcnn_r101_fpn_1x.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/assets/latest_version_cascade_rcnn_r101_fpn_1x.py -------------------------------------------------------------------------------- /pre_process/extract_bboxes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/extract_bboxes.py -------------------------------------------------------------------------------- /pre_process/extract_flows.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/extract_flows.py -------------------------------------------------------------------------------- /pre_process/extract_samples.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/extract_samples.py -------------------------------------------------------------------------------- /pre_process/flownet_networks/FlowNetC.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/FlowNetC.py -------------------------------------------------------------------------------- /pre_process/flownet_networks/FlowNetFusion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/FlowNetFusion.py -------------------------------------------------------------------------------- /pre_process/flownet_networks/FlowNetS.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/FlowNetS.py -------------------------------------------------------------------------------- /pre_process/flownet_networks/FlowNetSD.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/FlowNetSD.py -------------------------------------------------------------------------------- /pre_process/flownet_networks/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pre_process/flownet_networks/channelnorm_package/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pre_process/flownet_networks/channelnorm_package/channelnorm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/channelnorm_package/channelnorm.py -------------------------------------------------------------------------------- /pre_process/flownet_networks/channelnorm_package/channelnorm_cuda.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/channelnorm_package/channelnorm_cuda.cc -------------------------------------------------------------------------------- /pre_process/flownet_networks/channelnorm_package/channelnorm_kernel.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/channelnorm_package/channelnorm_kernel.cu -------------------------------------------------------------------------------- /pre_process/flownet_networks/channelnorm_package/channelnorm_kernel.cuh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/channelnorm_package/channelnorm_kernel.cuh -------------------------------------------------------------------------------- /pre_process/flownet_networks/channelnorm_package/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/channelnorm_package/setup.py -------------------------------------------------------------------------------- /pre_process/flownet_networks/correlation_package/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pre_process/flownet_networks/correlation_package/correlation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/correlation_package/correlation.py -------------------------------------------------------------------------------- /pre_process/flownet_networks/correlation_package/correlation_cuda.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/correlation_package/correlation_cuda.cc -------------------------------------------------------------------------------- /pre_process/flownet_networks/correlation_package/correlation_cuda_kernel.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/correlation_package/correlation_cuda_kernel.cu -------------------------------------------------------------------------------- /pre_process/flownet_networks/correlation_package/correlation_cuda_kernel.cuh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/correlation_package/correlation_cuda_kernel.cuh -------------------------------------------------------------------------------- /pre_process/flownet_networks/correlation_package/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/correlation_package/setup.py -------------------------------------------------------------------------------- /pre_process/flownet_networks/flownet2_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/flownet2_models.py -------------------------------------------------------------------------------- /pre_process/flownet_networks/resample2d_package/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pre_process/flownet_networks/resample2d_package/resample2d.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/resample2d_package/resample2d.py -------------------------------------------------------------------------------- /pre_process/flownet_networks/resample2d_package/resample2d_cuda.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/resample2d_package/resample2d_cuda.cc -------------------------------------------------------------------------------- /pre_process/flownet_networks/resample2d_package/resample2d_kernel.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/resample2d_package/resample2d_kernel.cu -------------------------------------------------------------------------------- /pre_process/flownet_networks/resample2d_package/resample2d_kernel.cuh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/resample2d_package/resample2d_kernel.cuh -------------------------------------------------------------------------------- /pre_process/flownet_networks/resample2d_package/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/resample2d_package/setup.py -------------------------------------------------------------------------------- /pre_process/flownet_networks/submodules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/flownet_networks/submodules.py -------------------------------------------------------------------------------- /pre_process/install_custom_layers.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/install_custom_layers.sh -------------------------------------------------------------------------------- /pre_process/mmdet_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/mmdet_utils.py -------------------------------------------------------------------------------- /pre_process/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/pre_process/readme.md -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/train.py -------------------------------------------------------------------------------- /utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /utils/cfg_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/utils/cfg_utils.py -------------------------------------------------------------------------------- /utils/eval_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/utils/eval_utils.py -------------------------------------------------------------------------------- /utils/flow_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/utils/flow_utils.py -------------------------------------------------------------------------------- /utils/initialization_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/utils/initialization_utils.py -------------------------------------------------------------------------------- /utils/model_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/utils/model_utils.py -------------------------------------------------------------------------------- /utils/vis_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiUzHiAn/hf2vad/HEAD/utils/vis_utils.py --------------------------------------------------------------------------------