Giter Site home page Giter Site logo

ptd_group's Introduction

Person Group Trajectory Dataset

Description

Person Group Trajectory Dataset(PGTD) comes from paper People Group Detection with Global Trajectory Extraction in a Disjoint Camera Network. This is an expanded version of the dataset PTD, in which we added group information and reorganized the dataset.

Fig. 1:The spatial distribution of the cameras in the Person Group Trajectory Dataset. For each camera, the satellite enlarged image and the camera view of the corresponding cameras are displayed. Different colored line segments represent different single-camera tracklets.

Figure1

Fig. 2:(A) (B) (C) (D) and (E) represent the trajectories extracted by the CCRF. The time below the picture indicates the earliest occurrence of the corresponding track.

Figure2

Fig. 3: The diagram of the group detection framework, the trajectory retrieval process, and the cyclic conditional random field method (CCRF) proposed in this paper. Figure3

Person Group Trajectory Dataset

You can load the dataset through the following code:

import pickle as pkl
with open('resnet50_visual_dataset.pkl','rb') as infile:
    datas=pkl.load(infile)

Before introducing the format of the visual dataset, we should first understand several indexes in the process of person retrieval. In the dataset, we have 5-class indexes, which are as follows:

  1. Person index. It represents the identity of pedestrians. Everyone has a unique index.
  2. Camera index. It represents the camera number, and each camera has a unique index.
  3. Camera tracklet index. It represents the index of a tracklet under a specific camera.
  4. Global tracklet index. The global index is obtained by splicing the tracklets under all cameras together.
  5. Trajectory index. The trajectory index indicates a tracklet belongs to which trajectory.

The dataset are represented by a dict, and each of them has the following meanings:

  1. qcs: Camera index list of query tracklets.
  2. qts: Timestamp list of query tracklets.
  3. qfs: Feature list list of query tracklets.
  4. qls: Person index list of query tracklets.
  5. fqcs: Camera list index list of query images.
  6. tidxs: Camera tracklet index list of gallery tracklets.
  7. fqfs: Feature list of query image.
  8. fqls: Person index list of query images.
  9. tcs: Camera index list of gallery tracklets.
  10. gts: Timestamp list of gallery tracklets.
  11. tfs: Feature list of gallery tracklets.
  12. tls: Person index list of gallery tracklets.
  13. ftcs: Camera index list of gallery images.
  14. ftfs: Feature list of gallery images.
  15. ftls: Person index list of gallery images.
  16. ftidxs: Camera tracklet index list of gallery images.
  17. idx2pathidx: Map the person index to the global tracklet index.
  18. tpath2index:Map the trajectory index to the global tracklet index.
  19. qidxs: Camera tracklet index list of query tracklets.
  20. fqidxs: Camera tracklet index list of query images.
  21. group_pidxs_dict: Group information for each ID.

Code

Please put the downloaded code file and execute the following statement:

git clone https://github.com/zhangxin1995/PTD_GROUP
cd code
python main.py --yaml ./config/global_crf_resnet.yaml

ptd_group's People

Contributors

zhangxin1995 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.