mirror of
https://github.com/augustin64/projet-tipe
synced 2025-01-23 23:26:25 +01:00
cnn: Remove warnings
This commit is contained in:
parent
4625ad2992
commit
e1617a72a8
@ -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
|
// et que cela soit le cas UNIQUEMENT pour la mémoire allouée au réseau
|
||||||
|
|
||||||
// Représente un gain de 45mn sur VGG16
|
// Représente un gain de 45mn sur VGG16
|
||||||
|
(void)network;
|
||||||
free_all_memory();
|
free_all_memory();
|
||||||
#else
|
#else
|
||||||
for (int i=network->size-2; i>=0; i--) {
|
for (int i=network->size-2; i>=0; i--) {
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
|
#include <stdbool.h>
|
||||||
|
#include <assert.h>
|
||||||
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdbool.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "../common/include/memory_management.h"
|
#include "../common/include/memory_management.h"
|
||||||
#include "../common/include/mnist.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) {
|
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;
|
int maxi;
|
||||||
|
|
||||||
imgRawImage* image = loadJpegImageFile(input_file);
|
imgRawImage* image = loadJpegImageFile(input_file);
|
||||||
width = image->width;
|
width = image->width;
|
||||||
height = image->height;
|
|
||||||
|
assert(image->width == image->height);
|
||||||
|
|
||||||
if (! strcmp(out, "json")) {
|
if (! strcmp(out, "json")) {
|
||||||
printf("{\n");
|
printf("{\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user