Configuration can be loaded or passed; Added gpu_id parameter#23
Merged
viplix3 merged 1 commit intoviplix3:mainfrom Jan 28, 2025
Merged
Conversation
… a struct with the configuration parameters Added new Version of INI value loading function set "Load.." that loads the value into a variable if present, otherwise leaves it unchanged Added [[nodiscard]] to INI "Get.." function set to avoid accidental mismatch with the "Load.." set Default parameters are now on the structs that hold the parameters Added helper function to get the class id of a track Added new parameter to ReID for being able to select which GPU to run the model on The GPU name is now part of the generated engine file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This update introduces enhanced configuration flexibility: configurations can now be specified either as a string pointing to an INI file or as a struct containing the configuration parameters.
Motivation
Summary of Changes
BotSORTclass. However, users directly accessing specific components of the library will need to use parameter structs, asBotSORTnow handles loading parameters into structs.Loadfunctions as been added that takes the variable in which to store the value in but leaves the value unchanged if it is not present in the INI file. This is important since the default values are in the structs, not in the loading from the file[[nodiscard]]to theGetfunction set so that warnings will be thrown if a value was discarded. This is to help mitigate issues with the usage ofGetwhen it should have beenLoad,New ReID Parameter:
gpu_idparameter has been added to specify which GPU a model should use in multi-GPU environments.Track ID Retrieval: