\brief get the model path \param tag the tag of the model \return the model path, string
| 214 | /// \param tag the tag of the model |
| 215 | /// \return the model path, string |
| 216 | std::string get_model_path(const std::string& tag){ |
| 217 | std::string new_tag = this->rectify_model_tag(tag); |
| 218 | auto [new_tag_unused, model_info] = this->get_model_info(new_tag); |
| 219 | std::string model_name = model_info["name"]; |
| 220 | std::filesystem::path full_path = std::filesystem::path(this->model_root_path) / model_name; |
| 221 | return full_path.string(); |
| 222 | } |
| 223 | |
| 224 | bool is_model_supported(const std::string& tag) { |
| 225 | return all_tags.find(tag) != all_tags.end(); |