Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bibekyess
Copy link

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

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