GithubHelp home page GithubHelp logo

ljl02521 / self-made_ava_dataset_tool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blueyao17/self-made_ava_dataset_tool

0.0 0.0 0.0 146 KB

Some scripts on generating homemade AVA format datasets

Python 100.00%

self-made_ava_dataset_tool's Introduction

Installation:

mmcv: pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/{cu_version}/{torch_version}/index.html Please replace {cu_version} and {torch_version} in the url to your desired one.

  For example: pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.9.0/index.html

mmdet: pip install mmdet

Use:

Step 1: python detectron2_outvia3.py path/to/your/faster_rcnn_r50_fpn_2x_coco.py / path/to/your/faster_rcnn_r50_fpn_2x_coco_bbox_mAP-0.384_20200504_210434-a5d8aa15.pth / --input path/to/your/keyframes//.jpg / --gen_via3 --output path/to/your/annotations_proposal --score-thr 0.5 --show

    For example:
    python detectron2_outvia3.py E:\ava\faster_rcnn_r50_fpn_2x_coco.py 
    E:\ava\faster_rcnn_r50_fpn_2x_coco_bbox_mAP-0.384_20200504_210434-a5d8aa15.pth
    --input E:\ava\org_img\*.jpg
    --gen_via3
    --output E:\ava\annotations_proposal
    --score-thr 0.5
    --show
    
    faster_rcnn_r50_fpn_2x_coco_bbox_mAP-0.384_20200504_210434-a5d8aa15.pth can be download here:
    https://download.openmmlab.com/mmdetection/v2.0/faster_rcnn/faster_rcnn_r50_fpn_2x_coco/faster_rcnn_r50_fpn_2x_coco_bbox_mAP-0.384_20200504_210434-a5d8aa15.pth

You can get a JSON file containing the coordinate box and score. For example: self-made_ava_dataset_tool/annotations_proposal/org_img_proposal.json

Step2: Make annotation files in AVA dataset V2.1 format. For example: self-made_ava_dataset_tool/ann_csv/ground_truth.csv Via3 can be download here: https://www.robots.ox.ac.uk/~vgg/software/via/. Open the via3/via_image_annotator.html.Then, upload the image and the JSON file generated in step 1. Then You can then adjust candidate boxes and delete unwanted candidates while tagging. Save ground truth json,and run gt_json2csv.py. The aciton kinds you can change in detectron2_outvia3.py.

Step3(optional):slowfast needs predicted boxes. You can run predicted_json2csv.py to get it. In this step,You just delete the proposals you don't need, and you don't have to resize or reposition them. For example: self-made_ava_dataset_tool/ann_csv/predicted_ann.csv

self-made_ava_dataset_tool's People

Contributors

blueyao17 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.