lsh1994 / keras-segmentation

Get started with Semantic Segmentation based on Keras, including FCN32/FCN8/SegNet/U-Net
166 stars 55 forks source link

getSegmentationArr 读取 #3

Closed ShaneShen closed 5 years ago

ShaneShen commented 5 years ago

for c in range(nClasses): seg_labels[:, :, c] = (seg == c).astype(int) 你好,我刚刚接触语义分割。我在getSegmentationArr函数下面看到的这段代码,我的理解是 c 是从0开始循环的,这样的话是不是背景也作为需要FCN网络来训练的一部分呢?

lsh1994 commented 5 years ago

for c in range(nClasses): seg_labels[:, :, c] = (seg == c).astype(int) 你好,我刚刚接触语义分割。我在getSegmentationArr函数下面看到的这段代码,我的理解是 c 是从0开始循环的,这样的话是不是背景也作为需要FCN网络来训练的一部分呢?

背景也是一种标记