mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
weird int bug
This commit is contained in:
parent
d1965bdb96
commit
4b2a9d9569
@ -871,8 +871,8 @@ void get_next_batch(data d, int n, int offset, float *X, float *y)
|
||||
void smooth_data(data d)
|
||||
{
|
||||
int i, j;
|
||||
int scale = 1. / d.y.cols;
|
||||
int eps = .1;
|
||||
float scale = 1. / d.y.cols;
|
||||
float eps = .1;
|
||||
for(i = 0; i < d.y.rows; ++i){
|
||||
for(j = 0; j < d.y.cols; ++j){
|
||||
d.y.vals[i][j] = eps * scale + (1-eps) * d.y.vals[i][j];
|
||||
|
Loading…
Reference in New Issue
Block a user