mmdetection icon indicating copy to clipboard operation
mmdetection copied to clipboard

Make projects module available for custom import of CO-DETR

Open bibekyess opened this issue 1 year ago • 1 comments

Motivation

I noticed that direct remote installation using pip install mmdet or mim install mmdet doesn't pull the projects module giving error like this:

>>> ImportError: Failed to import custom modules from {'allow_failed_imports': False, 'imports': ['projects.CO-DETR.codetr']}, the current sys.path is: 
...

In this PR, I made a small change so that the above issue will be resolved, without the need to either install git, clone the repo and install mmdet or remembering module_path to add it to system path.

Modification

The modification is very minor that it ensures complete backward-compatibility.

bibekyess avatar Aug 17 '24 06:08 bibekyess

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Aug 17 '24 06:08 CLAassistant