git clone https://github.com/guobaoxiao/DSAM
cd DSAM
conda env create -f environment.yaml
you can load down the COD datasets and run this to get npz for train.
python pre_npz.py
COD datasets: download the COD datasets set from here(CAMO, COD10K, NC4K), and put into 'data/'
depth datasets: download the depth datasets set, put into 'data/'. The depth image is from PopNet.
pre-weigth: download the weight of sam from here, the weight of pvt form xxx, put into 'work_dir_cod/SAM/'
DSAM: download the weight of well-trained DSAM, put into 'work_dir_cod/DSAM'
python Mytrain.py
python Mytest.py
python transformer_nzp_2_gt.py
python MSCAF_COD_evaluation/evaluation.py
If you find this project useful, please consider citing:
@inproceedings{yu2024exploring,
title={Exploring Deeper! Segment Anything Model with Depth Perception for Camouflaged Object Detection},
author={Zhenni Yu and Xiaoqin Zhang and LiZhao and Yi Bin and Guobao Xiao},
booktitle={ACM Multimedia 2024},
year={2024},
url={https://openreview.net/forum?id=d4A0Cw1gVS}
}