| | |
| | | if(weightfile){ |
| | | load_weights_upto(&net, weightfile, max); |
| | | } |
| | | net.seen = 0; |
| | | save_weights(net, outfile); |
| | | } |
| | | |
| | |
| | | |
| | | int main(int argc, char **argv) |
| | | { |
| | | //test_box(); |
| | | //test_convolutional_layer(); |
| | | if(argc < 2){ |
| | | fprintf(stderr, "usage: %s <function>\n", argv[0]); |
| | |
| | | run_imagenet(argc, argv); |
| | | } else if (0 == strcmp(argv[1], "detection")){ |
| | | run_detection(argc, argv); |
| | | } else if (0 == strcmp(argv[1], "test")){ |
| | | test_resize(argv[2]); |
| | | } else if (0 == strcmp(argv[1], "captcha")){ |
| | | run_captcha(argc, argv); |
| | | } else if (0 == strcmp(argv[1], "change")){ |