23 #ifndef __MODEL_DOWNLOADER_H__
24 #define __MODEL_DOWNLOADER_H__
34 bool DownloadModel( nlohmann::json& model, uint32_t retries=2 );
41 bool DownloadModel(
const char* type,
const char* name, nlohmann::json& model, uint32_t retries=2 );
48 bool FindModel(
const char* type,
const char* name );
55 bool FindModel(
const char* type,
const char* name, nlohmann::json& model );
62 bool FindModel(
const char* type,
const char* name, nlohmann::json& models, nlohmann::json& model );
76 bool LoadModelManifest( nlohmann::json& models,
const char* path=
"networks/models.json" );
83 #define JSON_STR(x) (x.is_string() ? x.get<std::string>() : "")
90 #define JSON_STR_DEFAULT(x, default) (x.is_string() ? x.get<std::string>() : default)