Semantic-Segment-Anything
Semantic-Segment-Anything copied to clipboard
Can I use my own dataset
Hello, thank you for your work !
I want to use SSA on custom categories and datasets. I saw you mentioned that users can customize in terms of the segmentor's architecture and the interested categories. But can I use my own datasets ? I've made some attempts. But I don't understand what is "semantic_branch_processor", I try to use one of it directly.But an error will be reported —— ValueError: You have to specify the task_input. Found None. And I guess it has something to do with the fact that I didn't set the "semantic_branch_processor" correctly. I want to know how to set up "semantic_branch_processor" if I want to use my own dataset.
Thank you very much for any reply.
Appendix
command:
python scripts/main_ssa.py --ckpt_path ./ckp/sam_vit_h_4b8939.pth --save_img --world_size 1 --dataset VOC2012 --data_dir /media/guo/DATA/chen/lraspp/data/VOCdevkit/VOC2012/JPEGImages --gt_path /media/guo/DATA/chen/lraspp/data/VOCdevkit/VOC2012/Annotations --out_dir output_VOC2012
Complete error reporting:
Traceback (most recent call last):
File "scripts/main_ssa_try.py", line 269, in
Were you able to figure it out?