This is a toy dll which allows you to make CSGO dataset for YOLOv5 network with some simple clicks of button.
- Visible bounding box
- Simultaneous generation of image and label
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+
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
Takes a screenshot and generates corresponding label in YOLOv5 format(.txt)
Enlarges the bounding box height
Reduces the bouding box height
Unloads the dll
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
https://github.com/frk1/hazedumper For netvar offsets.
https://github.com/danielkrupinski/Osiris Borrowed some features from SDK.