Darknet/YOLO v3.0-149-gb11c9d5
Object Detection Framework
 
Loading...
Searching...
No Matches
nightmare.cpp File Reference
Include dependency graph for nightmare.cpp:

Functions

float abs_mean (float *x, int n)
 
void calculate_loss (float *output, float *delta, int n, float thresh)
 
void optimize_picture (Darknet::Network *net, Darknet::Image orig, int max_layer, float scale, float rate, float thresh, int norm)
 
void reconstruct_picture (Darknet::Network net, float *features, Darknet::Image recon, Darknet::Image update, float rate, float momentum, float lambda, int smooth_size, int iters)
 
void run_nightmare (int argc, char **argv)
 
void smooth (Darknet::Image recon, Darknet::Image update, float lambda, int num)
 

Function Documentation

◆ abs_mean()

float abs_mean ( float *  x,
int  n 
)

◆ calculate_loss()

void calculate_loss ( float *  output,
float *  delta,
int  n,
float  thresh 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ optimize_picture()

void optimize_picture ( Darknet::Network net,
Darknet::Image  orig,
int  max_layer,
float  scale,
float  rate,
float  thresh,
int  norm 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reconstruct_picture()

void reconstruct_picture ( Darknet::Network  net,
float *  features,
Darknet::Image  recon,
Darknet::Image  update,
float  rate,
float  momentum,
float  lambda,
int  smooth_size,
int  iters 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ run_nightmare()

void run_nightmare ( int  argc,
char **  argv 
)
Todo:
Is there a memory leak here because we don't free the original im?
Here is the caller graph for this function:

◆ smooth()

void smooth ( Darknet::Image  recon,
Darknet::Image  update,
float  lambda,
int  num 
)
Here is the caller graph for this function: