YangZhang4065 / AdaptationSeg

Curriculum Domain Adaptation for Semantic Segmentation of Urban Scenes, ICCV 2017
129 stars 28 forks source link

Problem while calling create_vgg16_FCN in FCN_da.py #21

Open mishpri0209 opened 3 years ago

mishpri0209 commented 3 years ago

Hi @YangZhang4065 , Im using create_vgg16_FCN to create FCN model , but on calling the function i'm facing following error :

Negative dimension size caused by subtracting 2 from 1 for '{{node max_pooling2d_21/MaxPool}} = MaxPoolT=DT_FLOAT, data_format="NHWC", explicit_paddings=[], ksize=[1, 2, 2, 1], padding="VALID", strides=[1, 2, 2, 1]' with input shapes: [?,1,160,128].

I have used padding ='same' on maxpooling in create_vgg16_FCN function , then above error does not comes , but while loading the pretrained weights from Synthia_FCA , i facing incompatible dimensions issue .

Kindly let me know If m missing something .