I have tried to edit the code for CIFAR dataset but the result I got seems highly unreasonable (the MAP value was greater >7).
The original code you provided was based on NUS-WIDE dataset, which is a multi-labelled benchmark.
I believe I made some mistakes on editing it but I really can't fix the bug. I have been stuck on this for days...
Could you let me know the part of code for "def mean_average_precision(...): "? Or could you point out which part of the following codes are wrong?
Problem fixed. I was using the pytorch built-in cifar dataset. I installed another one and read into it.
Now I can run it, although I could only MAP=0.29.
I'll try different backbone models later on.
I have tried to edit the code for CIFAR dataset but the result I got seems highly unreasonable (the MAP value was greater >7).
The original code you provided was based on NUS-WIDE dataset, which is a multi-labelled benchmark. I believe I made some mistakes on editing it but I really can't fix the bug. I have been stuck on this for days...
Could you let me know the part of code for "def mean_average_precision(...): "? Or could you point out which part of the following codes are wrong?
def mean_average_precision(params, R): database_code = params['database_code'] validation_code = params['test_code'] database_labels = params['database_labels'] validation_labels = params['test_labels'] query_num = validation_code.shape[0]