Print error message about LoadModelPb
| 131 | |
| 132 | // Print error message about LoadModelPb |
| 133 | void PrintPbModelErrorMessage() { |
| 134 | LOG(FATAL) << "\n Error, Unsupported model format!\n" |
| 135 | << " 1. contents in model directory should be in one of " |
| 136 | "these formats:\n" |
| 137 | << " (1) __model__ + var1 + var2 + etc.\n" |
| 138 | << " (2) model + var1 + var2 + etc.\n" |
| 139 | << " (3) model.pdmodel + model.pdiparams\n" |
| 140 | << " (4) model + params\n" |
| 141 | << " (5) model + weights\n" |
| 142 | << " 2. You can also appoint the model and params file in " |
| 143 | "custom format:\n" |
| 144 | << " eg. |-- set_model_file('custom_model_name')\n" |
| 145 | << " |-- set_param_file('custom_params_name')'"; |
| 146 | } |
| 147 | // Find correct model filename |
| 148 | std::string FindModelFileName(const std::string &model_dir, |
| 149 | const std::string &model_file, |
no outgoing calls
no test coverage detected