design pattern in building models
Hi, I found something interesting in your implementation details in building models.
In the top base_model.py, you defined the validation function to call two different functions depending on distributed training. https://github.com/XPixelGroup/BasicSR/blob/033cd6896d898fdd3dcda32e3102a792efa1b8f4/basicsr/models/base_model.py#L36-L48 However, you didn't implement the actual functions dist_valdation and nondist_validation in the base_model, instead you implemented them in the models that inherits the base model. https://github.com/XPixelGroup/BasicSR/blob/033cd6896d898fdd3dcda32e3102a792efa1b8f4/basicsr/models/sr_model.py#L180-L187
I am just wondering if there are any specific reasons for this. Also, I am just wondering if this is a specific design patter.
Thanks in advance!