Ssd.pytorch: line 83, in __call__\n label_idx = self.class_to_ind[name]\nKeyError:

Created on 8 May 2019  ·  7Comments  ·  Source: amdegroot/ssd.pytorch

Most helpful comment

you can use VOC_CLASSES = [(
'feng')] instead

All 7 comments

when i use my dataset, i have the problem
KeyError: 'Traceback (most recent call last):\n File "C:\Program Files\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 138, in _worker_loop\n samples = collate_fn([dataset[i] for i in batch_indices])\n File "C:\Program Files\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 138, in \n samples = collate_fn([dataset[i] for i in batch_indices])\n File "F:\pychqarmtestdemo\ssd.pytorch-master\data\voc0712.py", line 126, in __getitem__\n im, gt, h, w = self.pull_item(index)\n File "F:\pychqarmtestdemo\ssd.pytorch-master\data\voc0712.py", line 141, in pull_item\n target = self.target_transform(target, width, height)\n File "F:\pychqarmtestdemo\ssd.pytorch-master\data\voc0712.py", line 83, in __call__\n label_idx = self.class_to_ind[name]\nKeyError: \'feng\'\n

feng is the lable name

you can use VOC_CLASSES = [(
'feng')] instead

I have the same question,do you solve it? and how?

您可以改用VOC_CLASSES = [(
'feng')]
it doesnt work

您可以改用VOC_CLASSES = [(
'feng')]
it doesnt work

您好!我遇到了同样的问题,您解决了吗?可以探讨一下!

没有()发自我的华为手机-------- 原始邮件 --------发件人: zeroorhero notifications@github.com日期: 2020年2月7日周五 早上8:49收件人: "amdegroot/ssd.pytorch" ssd.pytorch@noreply.github.com抄送: sxyxf66 13269273379@163.com, Author author@noreply.github.com主 题: Re: [amdegroot/ssd.pytorch] line 83, in __call__\n label_idx = self.class_to_ind[name]\nKeyError: (#343)

您可以改用VOC_CLASSES = [(

'feng')]

it doesnt work

您好!我遇到了同样的问题,您解决了吗?可以探讨一下!

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

没有()发自我的华为手机-------- 原始邮件 --------发件人: zeroorhero notifications@github.com日期: 2020年2月7日周五 早上8:49收件人: "amdegroot/ssd.pytorch" ssd.pytorch@noreply.github.com抄送: sxyxf66 13269273379@163.com, Author author@noreply.github.com主 题: Re: [amdegroot/ssd.pytorch] line 83, in __call__\n label_idx = self.class_to_ind[name]\nKeyError: (#343) 您可以改用VOC_CLASSES = [( 'feng')] it doesnt work 您好!我遇到了同样的问题,您解决了吗?可以探讨一下! —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

作者您好,遇到了一样的问题,请问你们解决了吗之前

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FostorHUNT picture FostorHUNT  ·  4Comments

oarriaga picture oarriaga  ·  4Comments

mikejmills picture mikejmills  ·  6Comments

bassyess picture bassyess  ·  5Comments

LAWSSSS picture LAWSSSS  ·  4Comments