Home

Awesome

JTA Mods (beta)

This repository contains two Grand Theft Auto V Mods used for creating the JTA Dataset presented in the paper Learning to Detect and Track Visible and Occluded Body Joints in a Virtual World:

<!-- ## Quick start - Download and install a legal copy of Grand Theft Auto V - Download ScriptHook V AND the SDK [here](http://www.dev-c.com/gtav/scripthookv/). - Follow the instructions reported on the web page. Also, follow the instructions of the SDK readme under the section "Runtime asi script reloading" - Download the ScenarioCreator Mod: [`ScenarioCreator.asi`](https://drive.google.com/file/d/1ngV49QzDRmVL0KvewW_Fs0vklJNIM2K6/view?usp=sharing) - Download the DatasetAnnotator Mod: [`DatasetAnnotator.asi`](https://drive.google.com/file/d/1kY6VxOHfSVc6vSC08FR5l4acv_PEo_i_/view?usp=sharing) - Copy both files `ScenarioCreator.asi` and `DatasetAnnotator.asi` in the Grand Theft Auto V game folder. - If you installed GTA V using Rockstar's Social Club, you have to change the permissions of the game folder (read, write and execute). If you used Steam, everything should be fine. - Run Grand Theft Auto V and select Story Mode. If it is your first start of the game, you have to complete the first mission. Enjoy! - The mods will automatically start. Now, by pressing F5 you can use the ScenarioCreator mod to create your own scenarios. By pressing F8 the DatasetAnnotator mod will start recording the scenarios. You can disable the Mods in any time by pressing ctrl+R. - Remember to disable the HUD in the display settings of GTA V. Also disable the in-game notifications. -->

Developer Guide

ScenarioCreator usage

DatasetAnnotator usage

By pressing F8 the mod will automatically load each scenario previously created and starts to record the dataset. You can stop the mod at any time by pressing ctrl+R. The data will be stored in a subdirectory of the GTA V game folder named JTA. For each sequence a new folder will be created, containing each recorded frames and a .csv annotation file.

Annotations

Each annotation file refers to a specific sequence. An annotation consists of a .csv file containing, for each row, the information about a single joint, organized as follows:

NameDescription
framenumber of the frame to which the joint belongs
pedestrian_idunique identifier of the person to which the joint belongs
joint_typeidentifier of the type of joint; see 'Joint Types' subsection
x2D2D x coordinate of the joint in pixels
y2D2D y coordinate of the joint in pixels
x3D3D x coordinate of the joint in meters
y3D3D y coordinate of the joint in meters
z3D3D z coordinate of the joint in meters
occluded1 if the joint is occluded; 0 otherwise
self_occluded1 if the joint is occluded by its owner; 0 otherwise
cam_3D_x3D x coordinate of the camera in meters
cam_3D_y3D y coordinate of the camera in meters
cam_3D_z3D z coordinate of the camera in meters
cam_rot_xx rotation of the camera in degrees
cam_rot_yy rotation of the camera in degrees
cam_rot_zz rotation of the camera in degrees
fovfield of view of the camera in degrees

Joint Types

The associations between numerical identifier and type of joint are the following:

 0: head_top
 1: head_center
 2: neck
 3: right_clavicle
 4: right_shoulder
 5: right_elbow
 6: right_wrist
 7: left_clavicle
 8: left_shoulder
 9: left_elbow
10: left_wrist
11: spine0
12: spine1
13: spine2
14: spine3
15: spine4
16: right_hip
17: right_knee
18: right_ankle
19: left_hip
20: left_knee
21: left_ankle

Citation

We believe in open research and we are happy if you find this code useful.
If you use it, please cite our work.

@inproceedings{fabbri2018learning,
   title     = {Learning to Detect and Track Visible and Occluded Body Joints in a Virtual World},
   author    = {Fabbri, Matteo and Lanzi, Fabio and Calderara, Simone and Palazzi, Andrea and Vezzani, Roberto and Cucchiara, Rita},
   booktitle = {European Conference on Computer Vision (ECCV)},
   year      = {2018}
 }