Mmdetection: The old API of register_module(module, force=False) is deprecated

Created on 9 Jul 2020  路  2Comments  路  Source: open-mmlab/mmdetection

I think I have updated mmdetection and mmcv to the latest version but the warning bellow still occurs. I don't know which function has triggered this warning.

The old API of register_module(module, force=False) is deprecated and will be removed, please use the new API register_module(name=None, force=False, module=None) instead.

Most helpful comment

Old API:

@xxx.register_module
class xxx:
    xxxx

New API:

@xxx.register_module()
class xxx:
    xxxx

All 2 comments

Old API:

@xxx.register_module
class xxx:
    xxxx

New API:

@xxx.register_module()
class xxx:
    xxxx

This warning will not affect the results.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dereyly picture dereyly  路  3Comments

tianxinhang picture tianxinhang  路  3Comments

michaelisc picture michaelisc  路  3Comments

hust-kevin picture hust-kevin  路  3Comments

Youngkl0726 picture Youngkl0726  路  3Comments