Amodal Segmentation through Out-of-Task and Out-of-Distribution Generalization with a Bayesian Model
Quick Start: Setup environment / Download models and dataset
conda env create -f environment.yml
conda activate amodal
bash download.sh
- In the case that
download.shcannot be executed properly, please identify the missing directory and rerun thewgetcommand for the corresponding zip file. If the issue persists, please refer to thedownload.shdescription below.
Run experiments
-
Table 1: change the file
Code/configs.pyto setTABLE_NUM = 1andMODEL_TYPE = 'ML'orMODEL_TYPE = 'E2E'and run the command below. -
Table 2: change the file
Code/configs.pyto setTABLE_NUM = 2andMODEL_TYPE = 'ML'orMODEL_TYPE = 'E2E'and run the command below. -
Table 3: change the file
Code/configs.pyto setTABLE_NUM = 3andMODEL_TYPE = 'ML'orMODEL_TYPE = 'E2E'and run the command below.
cd Code
python3 run_experiment.py
Optional: download.sh Description
Download models
-
Download pretrained model weights from here, unzip
Models.zipand place the folder as/Models/. -
Download RPN results used for evaluatiooon from here, unzip
RPN_results.zipand place the folder as/RPN_results/.
Download dataset
-
Download Occluded Vehicle Dataset from here, unzip
Occluded_Vehicles.zipand place the folder as/Dataset/Occluded_Vehicles/. -
Download KINS Dataset from here, unzip
kitti.zipand place the folder as/Dataset/kitti/. -
Download COCOA Dataset from here, unzip
COCO.zipand place the folder as/Dataset/COCO/. Additionally, download COCO data train2014 and val2014 and place the folders as/Dataset/COCO/train2014/and/Dataset/COCO/val2014/.