OpenGVLab / OpenGVLab/Ask-Anything

ModuleNotFoundError: No module named 'dataset'

Open
#254 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.4k
Forks
268
PR merge metrics
No merged PRs in 30d

Description

Traceback (most recent call last):
File "/home/zlj/Ask-Anything/video_chat2/tasks/train_qformer.py", line 13, in
from dataset import create_dataset, create_loader, create_sampler, Metaloader
ModuleNotFoundError: No module named 'dataset'
Traceback (most recent call last):
File "/home/zlj/Ask-Anything/video_chat2/tasks/train_qformer.py", line 13, in
from dataset import create_dataset, create_loader, create_sampler, Metaloader
ModuleNotFoundError: No module named 'dataset'
Traceback (most recent call last):
File "/home/zlj/Ask-Anything/video_chat2/tasks/train_qformer.py", line 13, in
from dataset import create_dataset, create_loader, create_sampler, Metaloader
ModuleNotFoundError: No module named 'dataset'
Traceback (most recent call last):
File "/home/zlj/Ask-Anything/video_chat2/tasks/train_qformer.py", line 13, in
from dataset import create_dataset, create_loader, create_sampler, Metaloader
ModuleNotFoundError: No module named 'dataset'
Traceback (most recent call last):
File "/home/zlj/Ask-Anything/video_chat2/tasks/train_qformer.py", line 13, in
from dataset import create_dataset, create_loader, create_sampler, Metaloader
ModuleNotFoundError: No module named 'dataset'
Traceback (most recent call last):
File "/home/zlj/Ask-Anything/video_chat2/tasks/train_qformer.py", line 13, in
from dataset import create_dataset, create_loader, create_sampler, Metaloader
ModuleNotFoundError: No module named 'dataset'
Traceback (most recent call last):
File "/home/zlj/Ask-Anything/video_chat2/tasks/train_qformer.py", line 13, in
from dataset import create_dataset, create_loader, create_sampler, Metaloader
ModuleNotFoundError: No module named 'dataset'
Traceback (most recent call last):
File "/home/zlj/Ask-Anything/video_chat2/tasks/train_qformer.py", line 13, in
from dataset import create_dataset, create_loader, create_sampler, Metaloader
ModuleNotFoundError: No module named 'dataset'
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 1250378) of binary: /home/zlj/miniconda3/envs/videochat2/bin/python
Traceback (most recent call last):
File "/home/zlj/miniconda3/envs/videochat2/bin/torchrun", line 8, in
sys.exit(main())
File "/home/zlj/miniconda3/envs/videochat2/lib/python3.10/site-packages/torch/distributed/elastic/multiprocessing/errors/init.py", line 346, in wrapper
return f(*args, **kwargs)
File "/home/zlj/miniconda3/envs/videochat2/lib/python3.10/site-packages/torch/distributed/run.py", line 762, in main
run(args)
File "/home/zlj/miniconda3/envs/videochat2/lib/python3.10/site-packages/torch/distributed/run.py", line 753, in run
elastic_launch(
File "/home/zlj/miniconda3/envs/videochat2/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 132, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/home/zlj/miniconda3/envs/videochat2/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 246, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:

tasks/train_qformer.py FAILED

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with tasks/train_qformer.py, especially its dataset import and the command used to launch it with torchrun. Trace how the dataset module is expected to be discovered, then verify that the training entry point gets past the import under the documented environment. Done means the reported ModuleNotFoundError no longer occurs when launching this task.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.