mirror of
https://github.com/augustin64/projet-tipe
synced 2025-01-23 15:16:26 +01:00
Move MNIST data files
This commit is contained in:
parent
094bb7d57c
commit
8c46c16fd7
4
make.sh
4
make.sh
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user