Yolov5-LabelMaker-For-CSGO
Yolov5-LabelMaker-For-CSGO copied to clipboard
A simple tool for making CSGO dataset in YOLO format
Yolov5LabelMakerForCSGO
This is a toy dll which allows you to make CSGO dataset for YOLOv5 network with some simple clicks of button.
Features
- Visible bounding box
- Simultaneous generation of image and label
Pictures

This is what your game will look after injecting this dll(Non-visible entities will not have bbox

This is what your screenshot will look like(It won't have bounding box)

This is what the corresponding label file will look like(YOLOv5 format, Change id for each class in source code LabelMaker.h)
How to use?
-
Open .sln with Visual studio 2019+
-
Open
Config.hand change directory configs -
Build the project source into .dll
-
Launch your csgo game (notice: This dll doesn't have any sort of VAC bypass so u might wanna start the game in
-insecuremode to avoid VAC/Untrusted ban) -
Start a match(Prefarably a bot match)
-
Inject this .dll with your favorite injector(If u dont have one then checkout https://github.com/leo4048111/Potato-Injector)
-
Keybinds HOMETakes a screenshot and generates corresponding label in YOLOv5 format(.txt) NUMPAD8Enlarges the bounding box height NUMPAD2Reduces the bouding box height INSERTUnloads the dll
Notice
-
Non-existing directories won't be created for you, so you have to manually create them before files' being saved.
-
This dll crashes the game sometimes when selecting/changing team side.
-
You need to rebuild this dll after changing configs, so a GUI menu might be added for runtime configuration later.
-
If the dll doesn't work after csgo updates, you need to manually update the offsets in
csgo.hppfrom https://github.com/frk1/hazedumper
Credits
-
https://github.com/TsudaKageyu/minhook
-
https://github.com/frk1/hazedumper For netvar offsets.
-
https://github.com/danielkrupinski/Osiris Borrowed some features from SDK.