isht7 / pytorch-deeplab-resnet

DeepLab resnet v2 model in pytorch
MIT License
602 stars 116 forks source link

error in convert_deeplab_resnet.py #1

Closed yghlc closed 7 years ago

yghlc commented 7 years ago

Dear all, I used convert_deeplab_resnet.py to convert caffemodel, but following error. I don't know what's going on. [libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 24:16: Message type "caffe.LayerParameter" has no field named "interp_param". WARNING: Logging before InitGoogleLogging() is written to STDERR F0514 16:39:28.816993 17207 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: data/test.prototxt *** Check failure stack trace: *** I have caffe installed, but I'm not sure whether it's a correct version. Thank you for your attention!

I'm not familiar with caffe. Would anyone like to share the pytorch model file (.pth) converted from caffemodel, thank you!

isht7 commented 7 years ago

Hi, this is happening because you are not using deeplab's version of caffe. You need to install caffe available here(deeplab-public-ver2). I will share converted .pth files with you in a few hours.

isht7 commented 7 years ago

Find the output .pth file of convert_deeplab_resnet.py here.

yghlc commented 7 years ago

@isht7 many thanks for your help!