mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Training on VOC
This commit is contained in:
@ -216,6 +216,10 @@ float rand_normal()
|
||||
for(i = 0; i < 12; ++i) sum += (float)rand()/RAND_MAX;
|
||||
return sum-6.;
|
||||
}
|
||||
float rand_uniform()
|
||||
{
|
||||
return (float)rand()/RAND_MAX;
|
||||
}
|
||||
|
||||
float **one_hot_encode(float *a, int n, int k)
|
||||
{
|
||||
|
Reference in New Issue
Block a user