(fix) image loader windows

This commit is contained in:
jastornig 2023-09-23 20:30:25 +00:00
parent dce3e264d9
commit f13d3950b0

View file

@ -68,8 +68,8 @@ Image * load_pgm_image(char * image_file_string){
Image** import_images(char* image_file_string, char* label_file_string, int* _number_imported, int count) { Image** import_images(char* image_file_string, char* label_file_string, int* _number_imported, int count) {
printf("Loading Images\n"); printf("Loading Images\n");
// create file pointer for the image and label data // create file pointer for the image and label data
FILE* image_file = fopen(image_file_string, "r"); FILE* image_file = fopen(image_file_string, "rb");
FILE* label_file = fopen(label_file_string, "r"); FILE* label_file = fopen(label_file_string, "rb");
// check if the file could be opened // check if the file could be opened
if(image_file == NULL || label_file == NULL) { if(image_file == NULL || label_file == NULL) {