Spatial-Temporal-Re-identification: Can't evaluate KeyError: 'query_f'`
I am running the python evaluate_st.py --name market1501 but I receive the following error
Traceback (most recent call last): File "evaluate_st.py", line 149, in <module> query_feature = result['query_f'] KeyError: 'query_f'
when I print the result I get this
`{‘header’: b’MATLAB 5.0 MAT-file Platform: posix, Created on: Thu Jun 6 22:53:34 2019’, ‘version’: ‘1.0’, ‘globals’: [], ‘distribution’: array([[[0. , 0. , 0. , …, 0. , 0. , 0. ], [0.00527704, 0.00263852, 0.00791557, …, 0. , 0. , 0. ], [0.06461538, 0.09230769, 0.07384615, …, 0. , 0. , 0. ], …, [0.00226757, 0.00453515, 0.00680272, …, 0. , 0. , 0. ], [0. , 0. , 0. , …, 0. , 0. , 0. ], [0. , 0. , 0. , …, 0. , 0. , 0. ]],
[[0.06578947, 0.02631579, 0.02631579, ..., 0. ,
0. , 0. ],
[0. , 0. , 0. , ..., 0. ,
0. , 0. ],
[0.08928571, 0.04464286, 0.07142857, ..., 0. ,
0. , 0. ],
...,
[0. , 0.00591716, 0. , ..., 0. ,
0. , 0. ],
[0. , 0. , 0. , ..., 0. ,
0. , 0. ],
[0. , 0. , 0. , ..., 0. ,
0. , 0. ]],
[[0.075 , 0.08214286, 0.07857143, ..., 0. ,
0. , 0. ],
[0.02518892, 0.05793451, 0.04282116, ..., 0. ,
0. , 0. ],
[0. , 0. , 0. , ..., 0. ,
0. , 0. ],
...,
[0.00208768, 0. , 0.00417537, ..., 0. ,
0. , 0. ],
[0. , 0. , 0. , ..., 0. ,
0. , 0. ],
[0. , 0. , 0. , ..., 0. ,
0. , 0. ]],`
...,
[[0.11363636, 0.04545455, 0.11363636, ..., 0. ,
0. , 0. ],
[0. , 0.04761905, 0.07936508, ..., 0. ,
0. , 0. ],
[0.02777778, 0.01388889, 0. , ..., 0. ,
0. , 0. ],
...,
[0. , 0. , 0. , ..., 0. ,
0. , 0. ],
[0. , 0. , 0. , ..., 0. ,
0. , 0. ],
[0. , 0. , 0. , ..., 0. ,
0. , 0. ]],
[[0. , 0. , 0. , ..., 0. ,
0. , 0. ],
[0. , 0. , 0. , ..., 0. ,
0. , 0. ],
[0. , 0. , 0. , ..., 0. ,
0. , 0. ],
...,
[0. , 0. , 0. , ..., 0. ,
0. , 0. ],
[0. , 0. , 0. , ..., 0. ,
0. , 0. ],
[0. , 0. , 0. , ..., 0. ,
0. , 0. ]],
[[0. , 0. , 0. , ..., 0. ,
0. , 0. ],
[0. , 0. , 0. , ..., 0. ,
0. , 0. ],
[0. , 0. , 0. , ..., 0. ,
0. , 0. ],
...,
[0. , 0. , 0. , ..., 0. ,
0. , 0. ],
[0. , 0. , 0. , ..., 0. ,
0. , 0. ],
[0. , 0. , 0. , ..., 0. ,
0. , 0. ]]])}`
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 35 (14 by maintainers)
I skipped step 3 because even with a batch size of 1 I am getting out of memory error
For anyone running this on Windows replace line 147 in
test_st_market.pywith thisfilename = path.split('\\')[-1]and line 153 with thisif label[0:2]=='-1' or label[0:2]=='-1_c':and save yourself some headache/time