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

An error occurred in the running program #1

Open
ww5171351 opened this issue Jun 2, 2021 · 3 comments
Open

An error occurred in the running program #1

ww5171351 opened this issue Jun 2, 2021 · 3 comments

Comments

@ww5171351
Copy link

Traceback (most recent call last):
File "train.py", line 165, in
main()
File "train.py", line 161, in main
train(cfg)
File "train.py", line 31, in train
train_loader, val_loader, num_query, num_classes = make_data_loader(cfg)
File "H:\Code in the paper\CVPRW21_GPS-main\data\build.py", line 23, in make_data_loader
dataset = init_dataset(cfg.DATASETS.NAMES, root=cfg.DATASETS.ROOT_DIR)
File "H:\Code in the paper\CVPRW21_GPS-main\data\datasets_init_.py", line 23, in init_dataset
return __factory[name](*args, **kwargs)
File "H:\Code in the paper\CVPRW21_GPS-main\data\datasets\market1501.py", line 50, in init
train = self._process_dir(self.train_dir, relabel=True)
File "H:\Code in the paper\CVPRW21_GPS-main\data\datasets\market1501.py", line 91, in _process_dir
mask_path = osp.join(self.mask_dir, self.mask_path[img_id])
KeyError: 'dataset\market1501\bounding_box_train\0002_c1s1_000451_03'

Please give me some advice,mogul.

@mzx987654
Copy link

File "/home/mzx/下载/CVPRW21_GPS-main/data/build.py", line 23, in make_data_loader
dataset = init_dataset(cfg.DATASETS.NAMES, root=cfg.DATASETS.ROOT_DIR)
File "/home/mzx/下载/CVPRW21_GPS-main/data/datasets/init.py", line 23, in init_dataset
return __factory[name](*args, **kwargs)
File "/home/mzx/下载/CVPRW21_GPS-main/data/datasets/market1501.py", line 51, in init
query = self._process_dir(self.query_dir, relabel=False)
File "/home/mzx/下载/CVPRW21_GPS-main/data/datasets/market1501.py", line 91, in _process_dir
mask_path = osp.join(self.mask_dir, self.mask_path[img_id])
KeyError: '1488_c6s3_094992_00.jpg'
这个问题老哥遇到过么?

@widedh
Copy link

widedh commented Sep 13, 2023

hello, this is due to an error in the naming, there is an extra '.jpg' at the end of some images..

@Linawdjn
Copy link

windows和Linux获取路径有'\'和'区别,可能是这个原因

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

4 participants