semantic-segmentation icon indicating copy to clipboard operation
semantic-segmentation copied to clipboard

Any ImageNet pretrained weights?

Open CauchyComplete opened this issue 3 years ago • 5 comments

Thanks for this awesome repo! Are there any ImageNet pretrained weights? Thanks

CauchyComplete avatar May 20 '22 03:05 CauchyComplete

Take a look at this. All the weights provided there are trained on imagenet.

sithu31296 avatar May 20 '22 12:05 sithu31296

Thanks. Then no ImageNet weights for BiSeNet v2? Plus, could you tell me how to combine encoders with heads?

CauchyComplete avatar May 22 '22 13:05 CauchyComplete

Yes. BiSeNetv2 doesn't use a separate backbone model. So, no ImageNet weights for it. For custom model creation, please see the sample from here. Basically, you need to know the output channels of an encoder since a head class needs at least 3 parameters (channel dims, head dim, num_classes).

sithu31296 avatar May 22 '22 14:05 sithu31296

Thank you :D I have more questions.

  1. Do we have to normalize the inputs when using ImageNet pretrained models?
  2. When I use BiSeNet (either v1 or v2), this error appears: AttributeError: 'tuple' object has no attribute 'size'. Seems that the model outputs three types of outputs. Shall I just ignore the second and third elements of the output?

CauchyComplete avatar May 24 '22 09:05 CauchyComplete

是的。BiSeNetv2 不使用单独的主干模型。因此,没有图像网络的权重。有关自定义模型的创建,请参阅此处的示例。基本上,您需要知道编码器的输出通道,因为 head 类至少需要 3 个参数(通道暗淡、磁头调暗num_classes)。

你好,camvid数据集使用时损失出现nan,cityscapes没有,博主知道啥情况吗

scl666 avatar Oct 09 '22 09:10 scl666