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

ModuleNotFoundError: No module named 'detectron2.modeling.backbone.vit' #4

Open
HenryGou opened this issue Jun 4, 2023 · 4 comments

Comments

@HenryGou
Copy link

HenryGou commented Jun 4, 2023

When I was fine-tuning on COCO, I got an error as shown in the title. Although I followed the instructions, Detectron2 may not have been installed successfully. Could you suggest something?

@wangsr126
Copy link
Owner

wangsr126 commented Jun 5, 2023

If you are able to successfully import detectron2 but facing issues with importing detectron2.modeling.backbone.vit, you may consider building Detectron2 from source as some of the latest features in the main branch may not be included in the pre-built packages. However, if you are unable to import detectron2, it would be advisable to refer to the Detectron2 repository for assistance.

@HenryGou
Copy link
Author

Thank you so much for your response, which has helped me successfully resolve the issue. Could you please provide guidance on how to train a segmentation task using my own dataset? I would greatly appreciate your assistance.

If you are able to successfully import detectron2 but facing issues with importing detectron2.modeling.backbone.vit, you may consider building Detectron2 from source as some of the latest features in the main branch may not be included in the pre-built packages. However, if you are unable to import detectron2, it would be advisable to refer to the Detectron2 repository for assistance.

@wangsr126
Copy link
Owner

We are also working on it and will release the related code and results once ready.

@HenryGou
Copy link
Author

Thanks. Wishing you great success.

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

No branches or pull requests

2 participants