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

Accessing data issue from root folder #3676

Open
anamce opened this issue May 21, 2024 · 0 comments
Open

Accessing data issue from root folder #3676

anamce opened this issue May 21, 2024 · 0 comments

Comments

@anamce
Copy link

anamce commented May 21, 2024

After configuring out all the env and dataset registry ,and running this command python tools/train.py configs/swin/swin-tiny-patch4-window7-in1k-pre_upernet_8xb2-160k_woodscape-512x512.py I get this error "File "/home/manzoor/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmengine/registry/registry.py", line 570, in build return self.build_func(cfg, *args, **kwargs, registry=self) File "/home/manzoor/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmengine/registry/build_functions.py", line 121, in build_from_cfg obj = obj_cls(**args) # type: ignore File "/home/manzoor/anaconda3/envs/openmmlab/mmsegmentation/mmseg/datasets/woodscape.py", line 24, in init super().init( File "/home/manzoor/anaconda3/envs/openmmlab/mmsegmentation/mmseg/datasets/basesegdataset.py", line 142, in init self.full_init() File "/home/manzoor/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmengine/dataset/base_dataset.py", line 298, in full_init self.data_list = self.load_data_list() File "/home/manzoor/anaconda3/envs/openmmlab/mmsegmentation/mmseg/datasets/basesegdataset.py", line 256, in load_data_list for img in fileio.list_dir_or_file( File "/home/manzoor/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmengine/fileio/io.py", line 760, in list_dir_or_file yield from backend.list_dir_or_file(dir_path, list_dir, list_file, suffix, File "/home/manzoor/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmengine/fileio/backends/local_backend.py", line 527, in _list_dir_or_file for entry in os.scandir(dir_path): FileNotFoundError: [Errno 2] No such file or directory: 'home/manzoor/anaconda3/envs/openmmlab/mmsegmentation/data/Woodscape-dataset/images/train_images'" even my data folder has the correct root path and access tried different absolute and relavent path methods nothing works can you please guide me?

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

1 participant