The running order of code.
Closed this issue · 2 comments
Thank you for your great work, I'm really interested in it.
Due to my poor coding ability, there are some questions about the framework.
In your config file, we can know that you define uda part as a segmentor,
but in the model part there is a segmentor too.
Why there are two segmentors, and what's the running logit of that.
Looking forward to your reply.
Thank you for your interest in our work!
UDADecorator is the base class for adding UDA training functionality to a segmentation model. It follows the decorator coding design pattern (https://en.wikipedia.org/wiki/Decorator_pattern). It contains a regular segmentation model (e.g. EncoderDecoder) as you can see here:
A UDADecorator is built if the run config contains the config group 'uda' as you can see here:
DAFormer/mmseg/models/builder.py
Line 51 in 438603d
A very beneficial answer, thanks a lot.