Code Monkey home page Code Monkey logo

Comments (4)

yxgeee avatar yxgeee commented on June 19, 2024

Could you please print the value of mAP_1, best_mAP, mAP_2 and the result of mAP_1 > best_mAP?

from mmt.

YachaoDong avatar YachaoDong commented on June 19, 2024

因为我想边训练的不仅能打印mAP,也能打印rank-1,,故对此处作了更改 cmc_scores1, mAP_1 = evaluator_1_ema.evaluate(test_loader_target, dataset_target.query, dataset_target.gallery, cmc_flag=True) ,但是在之前的机器上是没有问题的。

Compute mean AP

mAP = mean_ap(distmat, query_ids, gallery_ids, query_cams, gallery_cams)
print('Mean AP: {:4.1%}'.format(mAP))           # 这个地方的mAP是对的

if (not cmc_flag):
    return mAP

cmc_configs = {
    'market1501': dict(separate_camera_set=False,
                       single_gallery_shot=False,
                       first_match_break=True)
            }
cmc_scores = {name: cmc(distmat, query_ids, gallery_ids,
                        query_cams, gallery_cams, **params)
              for name, params in cmc_configs.items()}

print('CMC Scores:')
for k in cmc_topk:
    print('  top-{:<4}{:12.1%}'
          .format(k,
                  cmc_scores['market1501'][k-1]))
return cmc_scores['market1501'][0], mAP   # 这个地方的mAP就变成了多维向量,貌似没有作均值处理

from mmt.

YachaoDong avatar YachaoDong commented on June 19, 2024

Could you please print the value of mAP_1, best_mAP, mAP_2 and the result of mAP_1 > best_mAP?

您好,可能由于自己迁移代码的时候有的地方没改,return 返回未接收正确的参数,我会将这个问题自己关闭。
非常感觉您能秒回,帮助解决问题,太敬业了,非常感谢!

from mmt.

YachaoDong avatar YachaoDong commented on June 19, 2024

Could you please print the value of mAP_1, best_mAP, mAP_2 and the result of mAP_1 > best_mAP?

您可以把这个issues删除了!非常感谢您~

from mmt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.