YOLOP icon indicating copy to clipboard operation
YOLOP copied to clipboard

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

Open HunterShinobiTitan opened this issue 1 year ago • 3 comments

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

HunterShinobiTitan avatar Sep 17 '23 09:09 HunterShinobiTitan

Hi you, you can teach me how to label data

chelsea456 avatar Sep 21 '23 16:09 chelsea456

Hi you, you can teach me how to label data

I used BDD100k data is already labeled

HunterShinobiTitan avatar Sep 22 '23 12:09 HunterShinobiTitan