-
Notifications
You must be signed in to change notification settings - Fork 22
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
Module Not Found Error #42
Comments
I am stuck on the same sort of thing. Don't you also think its strange that the two sub-modules are actually the same segment-anything-road repository but they are just named differently. |
@aiEnthusiast2024 Hey mate I have solved this issue. The way I got the imports working is by going into the file that's causing the issue. For me its sam/segment_anything/predictor.py and changing the import path |
@Nodemana Hey! Thanks for your reply. Yes, after I posted that message, I was able to get past that issue by changing the path to the module as well. |
Thanks for helping out! Will try to clean the code further and make a requirement.txt. But if you are interested, feel free to create a PR too, |
No worries, I'll do one now. EDIT: I would really like to do this pull request but I am a little confused because the line that needs changing is actually apart of the submodule segment-anything-road not this repo. So I should make the pull request there??? |
Hi! Has someone else had this issue before? I have cloned the main repo. Due to a time-out error, I had to clone the git submodules (sam and segment_anything modules) separately and then a "git submodule init" followed by a "git submodule update --recursive" command.
When I run the inference script, I'm getting the following error:
" from segment_anything.modeling import Sam
ModuleNotFoundError: No module named 'segment_anything'
"
Any help in solving this issue is appreciated. Thank you!
The text was updated successfully, but these errors were encountered: