Compare commits
No commits in common. "main" and "ac358973'" have entirely different histories.
2 changed files with 1 additions and 5 deletions
4
image.c
4
image.c
|
|
@ -26,10 +26,6 @@ void read_until_space_or_newline(char * buff, int maxCount, FILE * fptr){
|
||||||
|
|
||||||
Image * load_pgm_image(char * image_file_string){
|
Image * load_pgm_image(char * image_file_string){
|
||||||
FILE * fptr = fopen(image_file_string, "r");
|
FILE * fptr = fopen(image_file_string, "r");
|
||||||
if(!fptr){
|
|
||||||
printf("could not open image file. exit\n");
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
Image *image = malloc(sizeof(Image));
|
Image *image = malloc(sizeof(Image));
|
||||||
image->label = -1;
|
image->label = -1;
|
||||||
|
|
||||||
|
|
|
||||||
2
main.c
2
main.c
|
|
@ -23,7 +23,7 @@ void parsingErrorTrain(){
|
||||||
|
|
||||||
void parsingErrorDetect(){
|
void parsingErrorDetect(){
|
||||||
printf("invalid syntax\n");
|
printf("invalid syntax\n");
|
||||||
printf("Syntax: c_net predict_demo [path_to_network] [image_file]\n");
|
printf("Syntax: c_net predict_demo [path_to_network] [image_file]");
|
||||||
}
|
}
|
||||||
|
|
||||||
void predict_demo(int argc, char** arguments){
|
void predict_demo(int argc, char** arguments){
|
||||||
|
|
|
||||||
Reference in a new issue