Git Product home page Git Product logo

vidsgg-trajdataprepare's Introduction

Code for extract bboxes with RoI features for VidVRD and VidOR dataset

we use VinVL to extract traj bbox and RoI features.

we do this separately. The whole pipeline is 1)detect bbox --> 2)object tracking --> 3)extract RoI features. This is because at the tracking stage we will filter out many boxes, and extract RoI features based on the obtained object trajectory saves more computational cost.

We use vinvl_vg_x152c4 as the pre-trained detector to do stages 1) & 3), and for stage 2) we use Seq-NMS (which is parameter-free)

  1. install VinVL and its Scene Graph Benchmark refer to https://github.com/pzzhang/VinVL

  2. detect bbox:

    • For VidVRD, refer to tools/extract_bboxes/extract_video_bboxes_dataloader.py
    • For VidOR, refer to tools/extract_bboxes/extract_video_bboxes_VideoReader.py
    • For VidOR, beacuse the number of videos is very large (i.e., 7000), we use VideoReader from decord to load videos. It saves the memory and improves speed than using open-cv.
  3. object tracking:

    • We use Seq-NMS following VidVRD-II.
    • We modified the seq_nms script a bit. TODO: we will release the seq_nms scripts
  4. extract RoI features:

    • For VidVRD, refer to tools/extract_features/extract_traj_features.py
    • For VidOR, refer to tools/extract_features/extract_traj_features_VideoReader.py

vidsgg-trajdataprepare's People

Contributors

microsoftopensource avatar dawn-lx avatar pzzhang avatar hanxiaotian avatar

Stargazers

 avatar yhzhouowo avatar  avatar  avatar  avatar

Watchers

Kostas Georgiou avatar  avatar

Forkers

bigbillfighter

vidsgg-trajdataprepare's Issues

compilation errors on maskrcnn_benchmark

100 errors detected in the compilation of "/home/16tb_hdd/zyh2/project/VidSGG-TrajDataPrepare/maskrcnn_benchmark/csrc/cuda/deform_conv_cuda.cu".
Compilation terminated.
ninja: build stopped: subcommand failed.

I have lots of compilation errors on maskrcnn_benchmark, could you tell me what the config: torch and cuda version, gcc/g++ version are you using? Thank you so much. Have you met these errors on 3090/4090 GPU?

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.