mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Minor fix
This commit is contained in:
@ -21,7 +21,7 @@ typedef struct network{
|
||||
float *workspace;
|
||||
int n;
|
||||
int batch;
|
||||
int *seen;
|
||||
uint64_t *seen;
|
||||
float epoch;
|
||||
int subdivisions;
|
||||
float momentum;
|
||||
|
@ -1191,7 +1191,9 @@ void load_weights_upto(network *net, char *filename, int cutoff)
|
||||
}
|
||||
else {
|
||||
printf("\n seen 32 \n");
|
||||
fread(net->seen, sizeof(int), 1, fp);
|
||||
uint32_t iseen = 0;
|
||||
fread(&iseen, sizeof(uint32_t), 1, fp);
|
||||
*net->seen = iseen;
|
||||
}
|
||||
int transpose = (major > 1000) || (minor > 1000);
|
||||
|
||||
|
Reference in New Issue
Block a user