#include "darktable.h"
#include "common/nn_model.h"
#include "common/opencl.h"
#include "system/macros.h"
#include "system/mem_alloc.h"
#include "develop/pixelpipe.h"
#include <glib/gstdio.h>
#include <json-glib/json-glib.h>
#include "win/main_wrapper.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
|
| static float * | read_f32 (const char *dir, const char *name, const size_t count) |
| |
| static int | check_model_hash (const char *dir, const char *model_path) |
| |
| static double | max_abs_diff (const float *a, const float *b, const size_t n, size_t *where) |
| |
| int | main (int argc, char *arg[]) |
| |
◆ NN_PROGRAM
◆ check_model_hash()
| static int check_model_hash |
( |
const char * |
dir, |
|
|
const char * |
model_path |
|
) |
| |
|
static |
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
arg[] |
|
) |
| |
- Todo:
- : test if file with replaced ext exists
- Todo:
- : add a callback to set the bpp without going through the config
- Todo:
- : have a parameter in command line to get the export presets
Definition at line 122 of file ansel-nn-parity/main.c.
References check_model_hash(), dt_cleanup(), DT_DEV_PIXELPIPE_EXPORT, dt_free, dt_init(), dt_nn_cl_create(), dt_nn_cl_destroy(), dt_nn_model_free(), dt_nn_model_in_channels(), dt_nn_model_load(), dt_nn_model_out_channels(), dt_nn_unet_apply_stage(), dt_nn_unet_apply_stage_cl(), dt_opencl_alloc_device_buffer(), dt_opencl_read_buffer_from_device(), dt_opencl_release_device(), dt_opencl_release_mem_object(), dt_opencl_reserve_device_for_pipe(), dt_opencl_write_buffer_to_device(), FALSE, i, IS_NULL_PTR, max_abs_diff(), model, n, NN_PROGRAM, read_f32(), w1, w2, and w3.
◆ max_abs_diff()
| static double max_abs_diff |
( |
const float * |
a, |
|
|
const float * |
b, |
|
|
const size_t |
n, |
|
|
size_t * |
where |
|
) |
| |
|
static |
◆ read_f32()
| static float * read_f32 |
( |
const char * |
dir, |
|
|
const char * |
name, |
|
|
const size_t |
count |
|
) |
| |
|
static |