Move MNIST data files

This commit is contained in:
augustin64 2022-04-03 21:44:15 +02:00
parent 094bb7d57c
commit 8c46c16fd7
7 changed files with 5 additions and 5 deletions

View File

@ -12,11 +12,11 @@ if [[ $1 == "preview" ]]; then
exit
elif [[ $2 == "train" ]]; then
[[ -f out/preview_mnist ]] || $0 preview build
out/preview_mnist data/train-images-idx3-ubyte data/train-labels-idx1-ubyte
out/preview_mnist data/mnist/train-images-idx3-ubyte data/mnist/train-labels-idx1-ubyte
exit
elif [[ $2 == "t10k" ]]; then
[[ -f out/preview_mnist ]] || $0 preview build
out/preview_mnist data/t10k-images-idx3-ubyte data/t10k-labels-idx1-ubyte
out/preview_mnist data/mnist/t10k-images-idx3-ubyte data/mnist/t10k-labels-idx1-ubyte
exit
fi
fi

View File

@ -23,8 +23,8 @@ void test_lecture(int nb_images, int width, int height, int*** images, unsigned
}
int main() {
char* image_file = "data/t10k-images-idx3-ubyte";
char* labels_file = "data/t10k-labels-idx1-ubyte";
char* image_file = "data/mnist/t10k-images-idx3-ubyte";
char* labels_file = "data/mnist/t10k-labels-idx1-ubyte";
printf("Chargement des paramètres\n");
int* parameters = read_mnist_images_parameters(image_file);

View File

@ -21,7 +21,7 @@ int main() {
printf("OK\n");
printf("Enregistrement du réseau\n");
ecrire_reseau("/tmp/reseau_test.bin", reseau_neuronal);
ecrire_reseau(".test-cache/random_reseau.bin", reseau_neuronal);
printf("OK\n");
return 1;