New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"-p" option for pausing neural network won't work #28
Comments
@MaDooSan, the source code hasn't changed in over a year, so nothing comes to mind immediately. Feel free to give us more details on how you obtained the source code, compiled it, what compiler and OS version, how you're running the program, etc. |
@davidrmiller, that's what I thought too. I must be missing something, and I'm hoping you can help me see what that is. I'm using Ubuntu 14.04. I followed the instructions on the documentation to create a /build/ folder in the cloned repository and compiled the library using cmake. Thanks for your help! |
Ubuntu 14.04 should work. Here are some ideas: Double-check the Makefile and make sure there is no compiler flag like "-DDISABLE_WEBSERVER". Also check neural2d.h and make sure that line 92 contains "#define ENABLE_WEBSERVER". If that's not it, could it be a difference in our compiler versions? Or cmake versions? If necessary, you could also check out older versions of neural2d and determine if there's a particular code check-in that broke this feature for you. |
@davidrmiller, thank you for the suggestions. I will test them out. |
I just tested a fresh clone of the repository with Ubuntu 14.04, and you are right -- by default the optional webserver is not compiled and linked, and the instructions in the README are not clear how to enable it. To compile and link the webserver, run cmake with the option "-DWEBSERVER=ON", and then rebuild the neural2d executable. For example:
I'll update the README later with clearer information. At some point we must have changed the default, and that's when the webserver stopped working for you. To change the default so that the webserver gets compiled without having to supply a cmake parameter, see around line 19 in CMakeLists.txt in the top level directory. Thanks for submitting this issue! |
Thanks a million, it works beautifully! |
I found out that the "-p" option does not work for me anymore in the latest release of neural2d. The program still continues to run the training routine. It works perfectly in the older release. Am I doing something wrong?
P.S: I'm running neural2d on Ubuntu.
Thanks in advance!
The text was updated successfully, but these errors were encountered: