|
@ -167,14 +167,18 @@ int main(int argc, char* argv[]) { |
|
|
|
|
|
|
|
|
std::cout << "Using exported weights from: " << std::filesystem::absolute(base_dir).string() << std::endl << std::endl; |
|
|
std::cout << "Using exported weights from: " << std::filesystem::absolute(base_dir).string() << std::endl << std::endl; |
|
|
|
|
|
|
|
|
|
|
|
std::filesystem::path actual_weights_dir_path = std::filesystem::path(base_dir) / "exported_weights"; |
|
|
|
|
|
std::string bb_regressor_weights_dir = (actual_weights_dir_path / "bb_regressor").string(); |
|
|
|
|
|
std::string classifier_weights_dir = (actual_weights_dir_path / "classifier").string(); |
|
|
|
|
|
|
|
|
// Initialize BBRegressor and Classifier
|
|
|
// Initialize BBRegressor and Classifier
|
|
|
std::cout << "Initializing BBRegressor..." << std::endl; |
|
|
std::cout << "Initializing BBRegressor..." << std::endl; |
|
|
BBRegressor bb_regressor(base_dir, device); |
|
|
|
|
|
|
|
|
BBRegressor bb_regressor(bb_regressor_weights_dir, device); |
|
|
bb_regressor.print_model_info(); |
|
|
bb_regressor.print_model_info(); |
|
|
std::cout << std::endl; |
|
|
std::cout << std::endl; |
|
|
|
|
|
|
|
|
std::cout << "Initializing Classifier..." << std::endl; |
|
|
std::cout << "Initializing Classifier..." << std::endl; |
|
|
Classifier classifier(base_dir, device); |
|
|
|
|
|
|
|
|
Classifier classifier(classifier_weights_dir, device); |
|
|
classifier.print_model_info(); |
|
|
classifier.print_model_info(); |
|
|
std::cout << std::endl; |
|
|
std::cout << std::endl; |
|
|
|
|
|
|
|
|