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
i am rookie and encounter ValueError: need more than 0 values to unpack #3
Comments
Back-tracing the error, |
yes I place the Market1501 dataset as described in README, but still occur this the error |
Can you run the following commands and post the results, so that I can find if it's the problem of dataset path. cd PROJECT_DIR
ls -al
cd dataset
ls -al
cd dataset/market1501
ls -al
cd dataset/market1501/Market-1501-v15.09.15
ls -al |
First ,I truly appreciate your timely help! ff@ff-System-Product-Name:~/桌面/EANet-master/dataset$ ls -al ff@ff-System-Product-Name:~/桌面/EANet-master/dataset/market1501$ ls -al ff@ff-System-Product-Name:~/桌面/EANet-master/dataset/market1501/Market-1501-v159.15$ ls -al |
I find something curious.
|
very sorry ,I did not copy it well. but my path is correct . result is |
@huanghoujing I met this error too, |
@mypython3 @xjhjinhui Just like what author said before, we should place the Market1501 dataset as described in README. For example, we have to place THESE ALL("Market-1501-v15.09.15", "Market-1501-v15.09.15_ps_label", "bounding_box_train_duke_style" and "im_path_to_kpt.pkl") under the dictionary "dataset/market1501/". If not, it can't run successfully. |
@mypython3 In your provided information, it seems not the problem of dataset path. However, the code runs well on my machine, so I could not help with your case. @SWRDFK Thanks for your sharing. |
@mypython3 @xjhjinhui One thing occurs to me. Do you run the command right under the project directory? For example, you have to enter the project directory before running the following command CUDA_VISIBLE_DEVICES=0 python -m package.optim.eanet_trainer --exp_dir exp/eanet/GlobalPool/market1501 --cfg_file package/config/default.py --ow_file paper_configs/GlobalPool.txt --ow_str "cfg.dataset.train.name = 'market1501'" |
@huanghoujing yes. |
@huanghoujing I solved it.I downloaded the dataset again.maybe i meet some problem,when i downloaded the dataset. |
@huanghoujing Thanks for your excellent project!I find my mistake:when I ran the program first time because of some matters I didn't wait for it to finish,so that some pictures didn't change into jpg files. |
I am glad you have solved it. I will add some assertion code in the future. |
Traceback (most recent call last):
File "/home/ff/anaconda3/envs/python27/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/home/ff/anaconda3/envs/python27/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/ff/桌面/EANet-master/package/optim/eanet_trainer.py", line 131, in
trainer = EANetTrainer()
File "package/optim/reid_trainer.py", line 49, in init
self.init_eval()
File "package/optim/reid_trainer.py", line 109, in init_eval
self.create_test_loaders()
File "package/optim/reid_trainer.py", line 154, in create_test_loaders
'query': self.create_dataloader(mode='test', name=name, split=q_split),
File "package/optim/reid_trainer.py", line 145, in create_dataloader
dataloader = create_dataloader(deepcopy(cfg.dataloader), deepcopy(cfg.dataset), samples=samples)
File "package/data/dataloader.py", line 8, in create_dataloader
dataset = create_dataset(dataset_cfg, samples=samples)
File "package/data/create_dataset.py", line 35, in create_dataset
return __factory[cfg.name](cfg, samples=samples)
File "package/data/dataset.py", line 24, in init
self.samples = self.load_split()
File "package/data/dataset.py", line 53, in load_split
self.save_split(self.split_spec[cfg.split], save_path)
File "package/data/datasets/market1501.py", line 46, in save_split
ids, cams = zip(*[self.parse_im_path(p) for p in im_paths])
ValueError: need more than 0 values to unpack
The text was updated successfully, but these errors were encountered: