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 'model' #2

Open
Pefect96 opened this issue Oct 1, 2024 · 5 comments
Open

ModuleNotFoundError: No module named 'model' #2

Pefect96 opened this issue Oct 1, 2024 · 5 comments

Comments

@Pefect96
Copy link

Pefect96 commented Oct 1, 2024

When I run caption.sh,I meet the following question:

from model.llava.constants import IMAGE_TOKEN_INDEX, DEFAULT_IMAGE_TOKEN, DEFAULT_IM_START_TOKEN, DEFAULT_IM_END_TOKEN
ModuleNotFoundError: No module named 'model'.

Waiting for your reply.

@GasolSun36
Copy link
Owner

When I run caption.sh,I meet the following question:

from model.llava.constants import IMAGE_TOKEN_INDEX, DEFAULT_IMAGE_TOKEN, DEFAULT_IM_START_TOKEN, DEFAULT_IM_END_TOKEN ModuleNotFoundError: No module named 'model'.

Waiting for your reply.

Hi,
You need to download lvlm model (e.g. LLaVA-1.5) and save in the folder 'model'`.

@Pefect96
Copy link
Author

Pefect96 commented Oct 4, 2024

When I run caption.sh,I meet the following question:
from model.llava.constants import IMAGE_TOKEN_INDEX, DEFAULT_IMAGE_TOKEN, DEFAULT_IM_START_TOKEN, DEFAULT_IM_END_TOKEN ModuleNotFoundError: No module named 'model'.
Waiting for your reply.

Hi, You need to download lvlm model (e.g. LLaVA-1.5) and save in the folder 'model'`.

Thanks for your reply.
Perhaps this is not because the model is not downloaded, because I have downloaded it and saved it in my local. It is possible that the code is not indexed to the code location of model.llava. But I still haven't solved the problem.

@GasolSun36
Copy link
Owner

When I run caption.sh,I meet the following question:
from model.llava.constants import IMAGE_TOKEN_INDEX, DEFAULT_IMAGE_TOKEN, DEFAULT_IM_START_TOKEN, DEFAULT_IM_END_TOKEN ModuleNotFoundError: No module named 'model'.
Waiting for your reply.

Hi, You need to download lvlm model (e.g. LLaVA-1.5) and save in the folder 'model'`.

Thanks for your reply. Perhaps this is not because the model is not downloaded, because I have downloaded it and saved it in my local. It is possible that the code is not indexed to the code location of model.llava. But I still haven't solved the problem.

How about change the line sys.path.append('MVP/model') in MVP_llava.py to your project's absolute path?

@Pefect96
Copy link
Author

Pefect96 commented Oct 4, 2024

When I run caption.sh,I meet the following question:
from model.llava.constants import IMAGE_TOKEN_INDEX, DEFAULT_IMAGE_TOKEN, DEFAULT_IM_START_TOKEN, DEFAULT_IM_END_TOKEN ModuleNotFoundError: No module named 'model'.
Waiting for your reply.

Hi, You need to download lvlm model (e.g. LLaVA-1.5) and save in the folder 'model'`.

Thanks for your reply. Perhaps this is not because the model is not downloaded, because I have downloaded it and saved it in my local. It is possible that the code is not indexed to the code location of model.llava. But I still haven't solved the problem.

How about change the line sys.path.append('MVP/model') in MVP_llava.py to your project's absolute path?

Still failing, I feel confused.

@GasolSun36
Copy link
Owner

When I run caption.sh,I meet the following question:
from model.llava.constants import IMAGE_TOKEN_INDEX, DEFAULT_IMAGE_TOKEN, DEFAULT_IM_START_TOKEN, DEFAULT_IM_END_TOKEN ModuleNotFoundError: No module named 'model'.
Waiting for your reply.

Hi, You need to download lvlm model (e.g. LLaVA-1.5) and save in the folder 'model'`.

Thanks for your reply. Perhaps this is not because the model is not downloaded, because I have downloaded it and saved it in my local. It is possible that the code is not indexed to the code location of model.llava. But I still haven't solved the problem.

How about change the line sys.path.append('MVP/model') in MVP_llava.py to your project's absolute path?

Still failing, I feel confused.

Hi,

I think it's actually something wrong with project path. Maybe you should try some different path like put the MVP_llava.py in the main folder of the project.

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