mmsegmentation icon indicating copy to clipboard operation
mmsegmentation copied to clipboard

About the MMSEG /models/decode_heads modification problem

Open duduzai2019 opened this issue 2 years ago • 1 comments

Hi, mmseg decode_heads are all wrapped up, I want to modify the solution dock network model, but don't know how to start, mmseg is not like other open source code, directly listed network model. Where should I refer to?

duduzai2019 avatar Sep 07 '22 01:09 duduzai2019

Would you like to let me know what you want to modify? Network architecture or the output of decode head?

If it is architecture, you can modify the __init__ to define your own network. If it is the output, there are two kinds of output type, one is loss scaler from forward_train and the other is seg map from forward_test and you can modify them as you like. If you would like to define and registry you own decode head, you can follow the documentation below.

https://github.com/open-mmlab/mmsegmentation/blob/master/docs/en/tutorials/customize_models.md

MeowZheng avatar Sep 08 '22 02:09 MeowZheng