yehengchen / Object-Detection-and-Tracking

Object Detection and Multi-Object Tracking
MIT License
1.82k stars 753 forks source link

图像分割 #94

Closed JsZengAircas closed 3 years ago

JsZengAircas commented 3 years ago

我想请问下您之前利用mmsegmentation做图像分割做出来的结果有五类是nan,能告诉我您是怎么解决的吗?谢谢

yehengchen commented 3 years ago

我想请问下您之前利用mmsegmentation做图像分割做出来的结果有五类是nan,能告诉我您是怎么解决的吗?谢谢

把标注mask的灰度值和label对应上就行了

JsZengAircas commented 3 years ago

非常感谢您的解答!但是我不是很确定您是怎么对应的,是通过设置CLASSES和PALETTE的值吗?我使用的数据是灰度图,值只有0和255,分类只分以下两类。 CLASSES = ('builing', 'BG') PALETTE = [[255, 255, 255], [0, 0, 0]] 但是训练结果building总是100%,BG总是nan,如果您有啥解决思路?麻烦您帮助我下,非常感谢

yehengchen commented 3 years ago

灰度图对应的两个类别灰度值是[0]和[1]吗?出现nan也有可能你把ignore index指向的BG

------------------ 原始邮件 ------------------ 发件人: "yehengchen/Object-Detection-and-Tracking" @.>; 发送时间: 2021年3月25日(星期四) 下午4:15 @.>; @.>;"State @.>; 主题: Re: [yehengchen/Object-Detection-and-Tracking] 图像分割 (#94)

非常感谢您的解答!但是我不是很确定您是怎么对应的,是通过设置CLASSES和PALETTE的值吗?我使用的数据是灰度图,值只有0和255,分类只分以下两类。 CLASSES = ('builing', 'BG') PALETTE = [[255, 255, 255], [0, 0, 0]] 但是训练结果building总是100%,BG总是nan,如果您有啥解决思路?麻烦您帮助我下,非常感谢

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

JsZengAircas commented 3 years ago

灰度图对应的两个类别灰度值是[0]和[1]吗?出现nan也有可能你把ignore index指向的BG ------------------ 原始邮件 ------------------ 发件人: "yehengchen/Object-Detection-and-Tracking" @.>; 发送时间: 2021年3月25日(星期四) 下午4:15 @.>; @.>;"State @.>; 主题: Re: [yehengchen/Object-Detection-and-Tracking] 图像分割 (#94) 非常感谢您的解答!但是我不是很确定您是怎么对应的,是通过设置CLASSES和PALETTE的值吗?我使用的数据是灰度图,值只有0和255,分类只分以下两类。 CLASSES = ('builing', 'BG') PALETTE = [[255, 255, 255], [0, 0, 0]] 但是训练结果building总是100%,BG总是nan,如果您有啥解决思路?麻烦您帮助我下,非常感谢 — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

非常感谢,我已经顺利解决了这个问题!感谢您的及时回复

Lenleooo commented 9 months ago

请教一下,您是如何解决的?我的训练图片是单通道的灰度图,也是一直出现nan。谢谢您!