mirror of https://github.com/pjreddie/darknet.git
Merge b642a79a8f
into f6afaabcdf
This commit is contained in:
commit
1c3590da25
|
@ -13,7 +13,7 @@ void train_detector(char *datacfg, char *cfgfile, char *weightfile, int *gpus, i
|
|||
char *base = basecfg(cfgfile);
|
||||
printf("%s\n", base);
|
||||
float avg_loss = -1;
|
||||
network **nets = calloc(ngpus, sizeof(network));
|
||||
network **nets = calloc(ngpus, sizeof(network*));
|
||||
|
||||
srand(time(0));
|
||||
int seed = rand();
|
||||
|
|
|
@ -224,7 +224,7 @@ image **load_alphabet()
|
|||
{
|
||||
int i, j;
|
||||
const int nsize = 8;
|
||||
image **alphabets = calloc(nsize, sizeof(image));
|
||||
image **alphabets = calloc(nsize, sizeof(image*));
|
||||
for(j = 0; j < nsize; ++j){
|
||||
alphabets[j] = calloc(128, sizeof(image));
|
||||
for(i = 32; i < 127; ++i){
|
||||
|
|
Loading…
Reference in New Issue