Open CauchyComplete opened 2 years ago
Take a look at this. All the weights provided there are trained on imagenet.
Thanks. Then no ImageNet weights for BiSeNet v2? Plus, could you tell me how to combine encoders with heads?
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).
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?
Thanks for this awesome repo! Are there any ImageNet pretrained weights? Thanks