Cysu / open-reid

Open source person re-identification library in python
https://cysu.github.io/open-reid/
MIT License
1.33k stars 349 forks source link

ValueError: num_val exceeds total identities 0 #73

Open raviks789 opened 5 years ago

raviks789 commented 5 years ago

Hi,

I keep getting the below error when I try to run triplet_loss.py. The script is run as following:

_python examples/triplet_loss.py -d dukemtmc -b 64 -j 2 -a resnet50 --combine-trainval --lr .0003 --logs-dir logs/triplet-loss/dukemtmc-resnet50_

Traceback (most recent call last): File "examples/triplet_loss.py", line 220, in main(parser.parse_args()) File "examples/triplet_loss.py", line 92, in main args.combine_trainval) File "examples/triplet_loss.py", line 29, in get_data dataset = datasets.create(name, root, split_id=split_id) File "/media/newhome/open_reid_sample/examples/reid/datasets/init.py", line 45, in create return factory[name](root, *args, **kwargs) File "/media/newhome/open_reid_sample/examples/reid/datasets/dukemtmc.py", line 23, in init__ self.load(num_val) File "/media/newhome/open_reid_sample/examples/reid/utils/data/dataset.py", line 54, in load .format(num)) ValueError: num_val exceeds total identities 0

Some one kindly help me out here.

bhosalems commented 2 years ago

Delete splis.json if you already had run the code once with some other errors, in my case it retained the previous files which were empty.