paralleization wip

This commit is contained in:
2023-06-30 00:48:56 +02:00
parent f5dad284e6
commit b3c2d585ae
5 changed files with 230 additions and 237 deletions

View File

@ -4,6 +4,7 @@
#include <argp.h>
#include <iostream>
#include <filesystem>
#include <opencv2/core/types.hpp>
#include "log.h"
const char *argp_program_version = "AIImagePreprocesses";
@ -19,7 +20,8 @@ static struct argp_option options[] =
{"classes", 'c', "[FILENAME]", 0, "classes text file to use" },
{"out", 'o', "[DIRECTORY]", 0, "directory whre images are to be saved" },
{"debug", 'd', 0, 0, "output debug images" },
{"seam-carving", 's', 0, 0, "model to train"}
{"seam-carving", 's', 0, 0, "model to train"},
{0}
};
struct Config
@ -30,6 +32,7 @@ struct Config
std::filesystem::path outputDir;
bool seamCarving = false;
bool debug = false;
cv::Size targetSize = cv::Size(512, 512);
};
static error_t parse_opt (int key, char *arg, struct argp_state *state)