Alignment model and input (#3115)

This commit is contained in:
Anton Romanov
2020-11-16 01:26:04 -08:00
committed by GitHub
parent 9790c1253c
commit 74f8b86e8c
18 changed files with 54 additions and 44 deletions

View File

@@ -35,6 +35,14 @@ bool ParseAndCheckCommandLine(int argc, char* argv[]) {
throw std::logic_error("Incorrect value for nt argument. It should be greater than 0 and less than 10.");
}
if (FLAGS_m.empty()) {
throw std::logic_error("Path to a .bin file with weights for the trained model is required but not set. Please set -m option.");
}
if (FLAGS_i.empty()) {
throw std::logic_error("Path to an image is required but not set. Please set -i option.");
}
return true;
}