Question about the import of BACKBONES/MODELS for registry #1296
ryanxingql
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I notice that some models import BACKBONES by referring to the
mmedit
module, like this:https://github.com/open-mmlab/mmediting/blob/14f1ffc7740aff1769a37ad093c8a13f64da9448/mmedit/models/backbones/sr_backbones/rdn.py#L5
However, other models import MODELS using the relative import, like this:
https://github.com/open-mmlab/mmediting/blob/14f1ffc7740aff1769a37ad093c8a13f64da9448/mmedit/models/restorers/basicvsr.py#L10
Is the relative import a better way to import BACKBONES/MODELS?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions