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

Closed
MaDooSan opened this Issue Aug 7, 2016 · 6 comments

Comments

Projects
None yet
2 participants
@MaDooSan

MaDooSan commented Aug 7, 2016

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!

@davidrmiller

This comment has been minimized.

Show comment
Hide comment
@davidrmiller

davidrmiller Aug 8, 2016

Owner

@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.

Owner

davidrmiller commented Aug 8, 2016

@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.

@MaDooSan

This comment has been minimized.

Show comment
Hide comment
@MaDooSan

MaDooSan Aug 8, 2016

@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.
Everything works fine, except when I use the "-p" option, like shown:
./neural2d topology.txt inputData.txt weights.txt -p
It seems that setting the net's 'isRunning' status to false doesn't pause it.
As I mentioned previously, when I tried the same thing on your first release, it worked as expected, i.e. the program pauses and I can open a webpage that has the GUI.

Thanks for your help!

MaDooSan commented Aug 8, 2016

@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.
Everything works fine, except when I use the "-p" option, like shown:
./neural2d topology.txt inputData.txt weights.txt -p
It seems that setting the net's 'isRunning' status to false doesn't pause it.
As I mentioned previously, when I tried the same thing on your first release, it worked as expected, i.e. the program pauses and I can open a webpage that has the GUI.

Thanks for your help!

@davidrmiller

This comment has been minimized.

Show comment
Hide comment
@davidrmiller

davidrmiller Aug 10, 2016

Owner

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.

Owner

davidrmiller commented Aug 10, 2016

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.

@MaDooSan

This comment has been minimized.

Show comment
Hide comment
@MaDooSan

MaDooSan Aug 13, 2016

@davidrmiller, thank you for the suggestions. I will test them out.
Cheers!

@davidrmiller, thank you for the suggestions. I will test them out.
Cheers!

@davidrmiller

This comment has been minimized.

Show comment
Hide comment
@davidrmiller

davidrmiller Aug 18, 2016

Owner

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:

cd build
cmake -DWEBSERVER=ON ..
make

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!

Owner

davidrmiller commented Aug 18, 2016

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:

cd build
cmake -DWEBSERVER=ON ..
make

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!

@MaDooSan

This comment has been minimized.

Show comment
Hide comment
@MaDooSan

MaDooSan Aug 19, 2016

Thanks a million, it works beautifully!
Glad to help :)

Thanks a million, it works beautifully!
Glad to help :)

@MaDooSan MaDooSan closed this Aug 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment