Skip to content

Can't evaluate KeyError: 'query_f'` #26

@zubairahmed-ai

Description

@zubairahmed-ai

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.        ]]])}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions