Replies: 1 comment
-
你好,Registry 实现 MODEL = Registry('model')
@MODEL()
class ToyModel(nn.Module):
pass
@MODEL.register_module()
class ToyModel(nn.Module):
pass |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
mmengine 中的注册registry 装饰器为什么要设计成每次手动 register_module() 的形式,为什么不在registry类中添加__call__()函数来解决每次手动注册的问题
Why is the registry decorator in mmengine designed to register_module() manually each time, and why not add call() function to the registry class to solve the problem of manual registration each time
Beta Was this translation helpful? Give feedback.
All reactions