Skip to content

Make projects module available for custom import of CO-DETR#11913

Open
bibekyess wants to merge 1 commit intoopen-mmlab:mainfrom
bibekyess:i11082-custom-import-projects
Open

Make projects module available for custom import of CO-DETR#11913
bibekyess wants to merge 1 commit intoopen-mmlab:mainfrom
bibekyess:i11082-custom-import-projects

Conversation

@bibekyess
Copy link
Copy Markdown

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.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Aug 17, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants