Deeplab训练时候unexpected label

先说一些有意义的答案:

https://groups.google.com/forum/#!topic/caffe-users/CLF4IZ2Tkqk

You probably need to save your labels as 1 Channel png images. Where the labels are encoded with a 0-based index --> in case of voc12 you would needs 21 labels correspoding to the interval [0..20] 

Please be noted that 'NUM_LABELS' used in the shscript is used to generate a prototxt file. You can look at the generatedprototxt in config folder. You will find that 'num_output' in the last fullyconnected layer is the number of class. Becasue the output of last fullyconnected layer is passed to loss layer. You really should check your image,maybe you have more label values that you specified.

On my system, the same error I find because of the reading of *.png image(opencv auto insert filtered the png's edge)

So I just change all the label *.png image to *.bmp format, then all gone right.

真正的问题在于我们生成label图像时候是否使用了cmap,不使用就不会有这个问题。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值