PVTv2-Seg icon indicating copy to clipboard operation
PVTv2-Seg copied to clipboard

a question of loading checkpoints

Open uuz21181522 opened this issue 2 years ago • 2 comments

Hello I try to run the dist_test.sh and use [pvt_v2_b2.pth as pretrained ckeckpoints] and [configs/sem_fpn/PVTv2/fpn_pvtv2_b2_ade20k_40k.py] but get an error: Traceback (most recent call last): File "./test.py", line 159, in Traceback (most recent call last): File "./test.py", line 159, in main() File "./test.py", line 127, in main main() File "./test.py", line 127, in main model.CLASSES = checkpoint['meta']['CLASSES'] KeyErrormodel.CLASSES = checkpoint['meta']['CLASSES']: 'meta' KeyError: 'meta'

And the model and loaded state dict do not match exactly too.

uuz21181522 avatar Nov 23 '22 07:11 uuz21181522

I have this issue too, any help?

mahmoudtarek1871997 avatar Dec 01 '22 22:12 mahmoudtarek1871997

I think that the provided pretrained checkpoints are just the pretrained backbones (without the segmentation head), I tried to eval pvt v1 tiny and it worked perfectly resulting the ~36 miou cited at the paper, correct me if i am wrong.

mahmoudtarek1871997 avatar Dec 02 '22 12:12 mahmoudtarek1871997