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

label_det_gt = f'{names[int(cls)]}' KeyError: 11 #193

Open
HunterShinobiTitan opened this issue Sep 17, 2023 · 3 comments
Open

label_det_gt = f'{names[int(cls)]}' KeyError: 11 #193

HunterShinobiTitan opened this issue Sep 17, 2023 · 3 comments

Comments

@HunterShinobiTitan
Copy link

When I run train.py:

Epoch: [1][3480/3500] Time 3268.846s (1639.564s) Speed 0.0 samples/s Data 3268.648s (1639.355s) Loss 0.32530 (0.28520)
0%| | 0/500 [00:00<?, ?it/s]C:\Users\Pacz\anaconda3\Lib\site-packages\torch\functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ..\aten\src\ATen\native\TensorShape.cpp:3484.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
9 0.01
2 0.01
2 0.01
8 0.01
8 0.01
4 0.01
3 0.01
2 0.01
5 0.01
5 0.01
1 0.01
8 0.01
8 0.01
8 0.01
1 0.01
3 0.01
9 0.01
8 0.01
9 0.01
3 0.01
4 0.01
6 0.01
5 0.01
4 0.01
8 0.01
1 0.01
0 0.01
1 0.01
2 0.01
3 0.01
4 0.01
8 0.01
5 0.01
5 0.01
3 0.01
5 0.01
7 0.01
7 0.01
8 0.01
9 0.01
8 0.01
1 0.01
6 0.01
1 0.01
2 0.01
2 0.01
4 0.01
7 0.01
5 0.01
9 0.01
3 0.01
5 0.01
8 0.01
4 0.01
3 0.01
6 0.01
1 0.01
8 0.01
9 0.01
0 0.01
8 0.01
7 0.01
4 0.01
2 0.01
8 0.01
3 0.01
9 0.01
1 0.01
2 0.01
4 0.01
9 0.01
7 0.01
2 0.01
8 0.01
4 0.01
9 0.01
1 0.01
5 0.01
6 0.01
3 0.01
1 0.01
3 0.01
8 0.01
1 0.01
7 0.01
0 0.01
3 0.01
1 0.01
6 0.01
2 0.01
7 0.01
1 0.01
3 0.01
5 0.01
4 0.01
4 0.01
5 0.01
9 0.01
1 0.01
1 0.01
0 0.01
2 0.01
9 0.01
4 0.01
5 0.01
8 0.01
3 0.01
7 0.01
6 0.01
7 0.01
4 0.01
8 0.01
5 0.01
3 0.01
1 0.01
3 0.01
4 0.01
1 0.01
1 0.01
4 0.01
8 0.01
1 0.01
2 0.01
1 0.01
4 0.01
8 0.01
8 0.01
9 0.01
9 0.01
8 0.02
8 0.02
1 0.02
2 0.02
9 0.02
0 0.02
1 0.02
0 0.02
9 0.02
8 0.02
9 0.02
6 0.02
7 0.02
8 0.02
5 0.02
2 0.02
2 0.02
0 0.02
8 0.02
3 0.02
0 0.02
5 0.02
1 0.02
7 0.02
4 0.02
7 0.02
8 0.02
5 0.02
3 0.02
1 0.02
9 0.02
5 0.02
2 0.02
2 0.02
9 0.02
9 0.02
7 0.02
6 0.02
8 0.02
3 0.02
8 0.02
8 0.02
9 0.02
3 0.02
4 0.02
3 0.02
9 0.02
5 0.02
8 0.02
5 0.02
0 0.02
3 0.02
6 0.02
1 0.02
1 0.02
2 0.02
7 0.02
0 0.02
9 0.02
8 0.02
5 0.02
9 0.02
1 0.02
8 0.02
8 0.02
2 0.02
4 0.02
3 0.02
3 0.02
0 0.02
8 0.02
6 0.02
7 0.02
2 0.02
4 0.02
1 0.02
9 0.02
9 0.02
9 0.02
6 0.02
5 0.02
1 0.02
0 0.02
6 0.02
4 0.02
4 0.02
1 0.02
2 0.02
8 0.02
2 0.02
6 0.02
4 0.02
4 0.02
9 0.02
1 0.02
1 0.02
0 0.02
6 0.02
2 0.02
1 0.02
5 0.02
4 0.02
7 0.02
1 0.02
6 0.02
7 0.02
9 0.02
2 0.02
3 0.02
4 0.02
1 0.02
0 0.02
7 0.02
1 0.02
7 0.02
5 0.02
3 0.02
2 0.03
3 0.03
0 0.03
1 0.03
9 0.03
6 0.03
1 0.03
1 0.03
5 0.03
3 0.03
7 0.03
4 0.03
2 0.03
9 0.03
6 0.03
2 0.03
0 0.03
9 0.03
9 0.03
9 0.03
5 0.03
1 0.03
8 0.03
7 0.03
6 0.03
8 0.03
0 0.03
7 0.03
7 0.03
9 0.03
1 0.03
3 0.03
8 0.03
9 0.03
3 0.03
0 0.03
2 0.03
3 0.03
2 0.04
2 0.04
7 0.04
9 0.04
3 0.04
2 0.04
2 0.04
5 0.04
7 0.04
5 0.04
9 0.04
0 0.04
3 0.04
3 0.05
3 0.05
1 0.06
0%| | 0/500 [00:02<?, ?it/s]
Traceback (most recent call last):
File "C:\YOLOP\tools\train.py", line 395, in
main()
File "C:\YOLOP\tools\train.py", line 330, in main
da_segment_results,ll_segment_results,detect_results, total_loss,maps, times = validate(
^^^^^^^^^
File "C:\YOLOP\lib\core\function.py", line 313, in validate
label_det_gt = f'{names[int(cls)]}'
~~~~~^^^^^^^^^^
KeyError: 11

@chelsea456
Copy link

Hi you, you can teach me how to label data

@HunterShinobiTitan
Copy link
Author

Hi you, you can teach me how to label data

I used BDD100k data is already labeled

@xulinjie522
Copy link

Hello, has your problem been solved? I'm also having the same issue。

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

3 participants