minor changes
This commit is contained in:
parent
ac35897396
commit
aa58f99045
2 changed files with 5 additions and 1 deletions
4
image.c
4
image.c
|
|
@ -26,6 +26,10 @@ void read_until_space_or_newline(char * buff, int maxCount, FILE * fptr){
|
|||
|
||||
Image * load_pgm_image(char * image_file_string){
|
||||
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->label = -1;
|
||||
|
||||
|
|
|
|||
2
main.c
2
main.c
|
|
@ -23,7 +23,7 @@ void parsingErrorTrain(){
|
|||
|
||||
void parsingErrorDetect(){
|
||||
printf("invalid syntax\n");
|
||||
printf("Syntax: c_net predict_demo [path_to_network] [image_file]");
|
||||
printf("Syntax: c_net predict_demo [path_to_network] [image_file]\n");
|
||||
}
|
||||
|
||||
void predict_demo(int argc, char** arguments){
|
||||
|
|
|
|||
Reference in a new issue