cnn: Remove warnings

This commit is contained in:
augustin64 2023-05-16 11:49:46 +02:00
parent 4625ad2992
commit e1617a72a8
2 changed files with 7 additions and 4 deletions

View File

@ -181,6 +181,7 @@ void free_network(Network* network) {
// et que cela soit le cas UNIQUEMENT pour la mémoire allouée au réseau
// Représente un gain de 45mn sur VGG16
(void)network;
free_all_memory();
#else
for (int i=network->size-2; i>=0; i--) {

View File

@ -1,7 +1,8 @@
#include <stdbool.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include "../common/include/memory_management.h"
#include "../common/include/mnist.h"
@ -183,12 +184,13 @@ void recognize_mnist(Network* network, char* input_file, char* out) {
}
void recognize_jpg(Network* network, char* input_file, char* out) {
int width, height; // Dimensions de l'image
int width; // Dimensions de l'image, qui doit être carrée
int maxi;
imgRawImage* image = loadJpegImageFile(input_file);
width = image->width;
height = image->height;
assert(image->width == image->height);
if (! strcmp(out, "json")) {
printf("{\n");