ReID(Pesron Re-Identification) Generator is a tool for generating ReID image datasets in GTA V. It's a custom mod of GTAV, written in C#.
It can generate images of people with more than 700 original models, 7 weather, 7 lighting, custom angles, multiple scenes, and multiple actions.
You can also add additional character models and generate their image.
-
Attention: The mod must be used in the offline version of GTA V.
-
Create a folder named
Scripts
under your GTAV root folder. -
Navigate to ReID Generator directory, open
ReID_Generator.sln
with Visual Studio. -
Open the project (GCC-Collector) property pages,
General/Windos SDK Version
, select the latest win10 SDK existed in your computer. -
Open
Property
->Generate event
, add this command in Postgenerative event.COPY "$(TargetPath)" "Your GTAV fold\scripts"
-
Select the path where you want to save the image, and copy it in
ReID_Generator.cs
line474
.The datasets will be saved in path in format:
XXXX/XXXX_cXX_wXX_lXX.jpg
.-
XXXX
is the ID label -
cXX
is camera label -
wXX
is the weather labelw01
: Sunnyw02
: Cloudsw03
: Overcastw04
: Foggyw05
: Neutralw06
: Blizzardw07
: Snowlight
-
lXX
is the light label.l01
: Midnightl02
: Dawnl03
: Forenoonl04
: Noonl05
: Afternoonl06
: Duskl07
: Night
-
-
Click
Build Solution
, the scriptRe-IDGenerator.dll
will be generated in ../GTAV/Scripts.
Follow these steps to generate the ReID datasets:
-
Open GTAV in the offline version
-
Press
F5
to open the tool menu. -
Using
8
2
5
to choose the function you need.- CaptureAllInOne:Generate all natural models at once.
- Capture:Generate the images of current models you create.
- Weather:Choose the weather you need.
- Hour Forward:Set the game time an hour forward.
- Hour Back:Set the game time an hour back.
- Test:Added the function you need.
This page contains all hash function decompile from GTAV.
This page is the StackOverflow of GTAV.
Some basic mods you can learn from.
- Camera
- CREATE_CAM
- SET_CAM_COORD
- RENDER_SCRIPT_CAMS
- POINT_CAM_AT_COORD
- DESTROY_ALL_CAMS
- Pedestrian
- CHANGE_PLAYER_PED
- SET_ENTITY_COORDS
- Weather
- SET_WEATHER_TYPE_NOW_PERSIST
- Time
- SET_CLOCK_TIME
The functional module design of Reid-Generator is generally divided into five modules, which are operation interface control module, system parameter management module, camera perspective control module, character model control module and synthetic data generation module.Subdivision functions of each module are as follows:
Menu rendering module: the built-in function is corresponding to the menu bar button, and the display rendering is carried out through NativeUI. After the user calls out the command, the operation menu is rendered in the upper left corner of the screen for subsequent function selection.
Key binding module: Bind specific operations with keyboard keys, including: F5: operation interface call out 8: move up 2: move down 5: select ESC: back/exit INSERT: refresh/reload WASD: character control, etc.
Top and bottom display module: display rendering through NativeUI, display the current coordinates and orientation of the character at the top, display the current generated data attributes and storage path at the bottom.
This module manages the setup parameters of the REID-GENERATOR uniformly, loading it before it enters the main function and refreshing it continuously after the module is run.Specific parameters are as follows:
Attribute control parameters: game time, light mode, weather mode, surrounding vehicle density, surrounding pedestrian density, story mode parameters, Object interaction parameters
Camera control parameters: camera interval, capture time interval, camera Angle, camera rotation mode, camera update mode, capture location coordinate table
Character model parameters: health, body type character position coordinates, character orientation coordinates, error character HASH table, character model HASH value, generation ID order
Operation interface parameters: key and function table, nativeUI parameter table, local path parameters, interface refresh rate
Camera control module: place the script camera at the specified coordinates, update the specified script camera, destroy the specified script camera.
View control module: Set the specified script camera's Point of View (POV)
Character attribute control module: control the life value, body shape and movement of the character, easy to synthesize data capture.
Character model update module: create/update the character model in the specified location, set the initial character orientation, and record the character model ID and generation order.
Single persona generation module: by setting different camera intervals, camera angles, persona attributes, lighting, weather and other parameters, the specified persona is synthesized data generation.
All character generation module: on the basis of single character generation, through the fusion of various module functions, realize the generation of all synthesis data in one button, which generates the synthesis data set GPR700.