GithubHelp home page GithubHelp logo

Comments (2)

huanghoujing avatar huanghoujing commented on August 29, 2024

Thank you a lot for pointing out the problem. I will look into that!

from person-reid-triplet-loss-baseline.

huanghoujing avatar huanghoujing commented on August 29, 2024
  1. In your code, trainval_pids would be updated by both detected and labeled parts of the dataset, similarly for query_pids and gallery_pids. When you check the detected and labeled parts independently, as in the modified code below, you would find there is no problem.
if osp.exists(train_test_partition_file):
  train_test_partition = load_pickle(train_test_partition_file)
else:
  raise RuntimeError("Train/test partition file should be provided.'")

for im_type in ['detected', 'labeled']:
  trainval_pids = set()
  query_pids = set()
  gallery_pids = set()

  trainval_im_names = train_test_partition[im_type]['train_im_names']
  query_im_names = train_test_partition[im_type]['query_im_names']
  gallery_im_names = train_test_partition[im_type]['gallery_im_names']

  trainval_pids.update(set([parse_im_name(n, 'id') for n in trainval_im_names]))
  query_pids.update(set([parse_im_name(n, 'id') for n in query_im_names]))
  gallery_pids.update(set([parse_im_name(n, 'id') for n in gallery_im_names]))

  print(trainval_pids & gallery_pids)
  assert query_pids <= gallery_pids
  assert trainval_pids.isdisjoint(gallery_pids)
  1. Your code indicates the inconsistency between the detected partitions and labeled partitions. This originates from the official new train/test protocol. I provide a script to verify this. Where you will find that
  • detected train ids share 766 ids with labeled train ids
  • detected test ids share 699 ids with labeled test ids
  • id (4, 30) (id 1201 in my project) is in train ids for detected, but in test ids for labeled
  • id (2, 359) (id 1389 in my project) is in test ids for detected, but in train ids for labeled
  1. To make the generation of my re_ranking_train_test_split.pkl more clear, and to make future problems more trackable, I provide details of the generation process in this repository.

from person-reid-triplet-loss-baseline.

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.