#include <ImFusion/ML/ModelManager.h>
ModelInfo contains all the information to identify a Machine Learning model.
More...
ModelInfo contains all the information to identify a Machine Learning model.
It also includes critical information like whether commercial use of the model is permitted. The "setName" is displayed in the UI. All models with the same setName will download together. Plugin developers should define their own name.
|
| bool | operator== (const ModelInfo &rhs) const |
| | Equality of the catalog fields: plugin, setName, modelName, configFileName, modelFileName, allowCommercialUsage, hash, and fileSizeBytes.
|
| bool | isValid () const |
|
std::string | toJson () const |
| | Serializes this structure to JSON for persistence in the local model list.
|
|
| static ModelInfo | fromJson (const std::string &jsonString) |
| | Parses one model entry from JSON (same shape as entries in the remote/local ml_models.json lists).
|
◆ operator==()
| bool ImFusion::ML::ModelInfo::operator== |
( |
const ModelInfo & | rhs | ) |
const |
Equality of the catalog fields: plugin, setName, modelName, configFileName, modelFileName, allowCommercialUsage, hash, and fileSizeBytes.
extraProperties is not compared.
◆ isValid()
| bool ImFusion::ML::ModelInfo::isValid |
( |
| ) |
const |
- Returns
true if all required identifiers are non-empty: plugin, setName, modelName, configFileName, and modelFileName. Otherwise false (invalid for listing, download, or disk layout).
◆ fromJson()
Parses one model entry from JSON (same shape as entries in the remote/local ml_models.json lists).
Malformed JSON or read errors yield a default-constructed ModelInfo, log an error, and isValid is false.
The documentation for this struct was generated from the following file:
- ImFusion/ML/ModelManager.h