jfzhang95 / pytorch-deeplab-xception

DeepLab v3+ model in PyTorch. Support different backbones.
MIT License
2.9k stars 779 forks source link

@stonessss yes, i write test code. #217

Open ouyang11111 opened 3 years ago

ouyang11111 commented 3 years ago

@stonessss yes, i write test code.

  1. copy and overwrite. https://github.com/jaemin93/pytorch-deeplab-xception/blob/master/test.py https://github.com/jaemin93/pytorch-deeplab-xception/blob/master/dataloaders/__init__.py

  2. add test.txt(you want to test img id) in VOC path /ImageSets/Segmentation test.txt is like val, train.txt

  3. cmd python --test \ --dataset pascal \ --backbone xception \ --out_stride 16 \ --crop_size 513 \ --model /your/checkpoint.pth.tar --save_path /prediction/image/path

Originally posted by @jaemin93 in https://github.com/jfzhang95/pytorch-deeplab-xception/issues/122#issuecomment-540287499

liushuang1001 commented 2 years ago

您好 您提供的测试代码链接现无法打开,能否麻烦您再重新分享一下?拜托!!