mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Added Yolo v3
This commit is contained in:
@ -545,6 +545,15 @@ int max_index(float *a, int n)
|
||||
return max_i;
|
||||
}
|
||||
|
||||
int int_index(int *a, int val, int n)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < n; ++i) {
|
||||
if (a[i] == val) return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
int rand_int(int min, int max)
|
||||
{
|
||||
if (max < min){
|
||||
|
Reference in New Issue
Block a user