paralleization wip
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user