We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When we run
torchrun --nproc_per_node 1 --standalone -m tools.caption.caption_llava meta_info_fmin1.csv --dp-size 1 --tp-size 1 --model-path llava-v1.6-mistral-7b --prompt video
a error occurs:
cannot import name 'IMG_EXTENSIONS' from 'tools.caption.utils'
We found that the error is an package import error that happened in tools/caption/caption_llava.py
from .utils import IMG_EXTENSIONS, PROMPTS, VID_EXTENSIONS, Timer, VideoTextDataset, collate_fn
“IMG_EXTENSIONS” and "VID_EXTENSIONS" should be imported from ../datasets/utils.py
The correct revision in caption_llava.py is shown
from .utils import PROMPTS, Timer, VideoTextDataset, collate_fn from ..datasets.utils import IMG_EXTENSIONS, VID_EXTENSIONS
That had been verified on my machine.
The text was updated successfully, but these errors were encountered:
This bug solved at my fork
https://github.com/eastoc/Open-Sora/blob/main/tools/caption/caption_llava.py
Sorry, something went wrong.
This issue is stale because it has been open for 7 days with no activity.
fixed.
No branches or pull requests
When we run
a error occurs:
We found that the error is an package import error that happened in tools/caption/caption_llava.py
“IMG_EXTENSIONS” and "VID_EXTENSIONS" should be imported from ../datasets/utils.py
The correct revision in caption_llava.py is shown
That had been verified on my machine.
The text was updated successfully, but these errors were encountered: