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

ValueError: num_val exceeds total identities 0 #73

Open
raviks789 opened this issue Nov 15, 2018 · 1 comment
Open

ValueError: num_val exceeds total identities 0 #73

raviks789 opened this issue Nov 15, 2018 · 1 comment

Comments

@raviks789
Copy link

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
Copy link

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.

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

2 participants