First, thank you :) This research is a big inspiration, and it's great to learn and explore with the code itself. After realizing I needed a beefier GPU, I got it running on AWS with a p2.xlarge (1xK80). Here are a few things I noticed.
After running pip install -r requirements.txt I got an error like:
After searching, it looks like this is a Pillow issue. You need to run sudo apt-get install python-dev before Pillow can be installed.
Then I noticed that you create the virtual env, install the requirements, then activate it. I think the second and third steps should be reversed, otherwise you are installing the requirements outside the virtualenv (and the Python code fails to run).
Then, I got the error module 'socket' not found:No LuaRocks module found for socket when running th webcam/daemon.lua. This was fixed by installing luarocks install luasocket.
Then, on AWS (and I imagined some other servers) ports are available based on a whitelist. I had to open port 5000 for inbound TCP traffic.
When you wrote: https://cs.stanford.edu/people/jcjohns/densecap/demo/web-client.html?server_url=SERVER_URL I thought SERVER_URL meant the domain of my server. Then I realized it meant https://ec2-my-ip-address.compute-1.amazonaws.com.:5000/, the same URL where I accepted the self-signed certificate, and it worked!
Finally, I also have issue #49 despite CUDNN being correctly installed and used for other things, I can't use it here for some reason. So I have to disable it with -use_cudnn 0 when running the daemon.lua or the other demo.
First, thank you :) This research is a big inspiration, and it's great to learn and explore with the code itself. After realizing I needed a beefier GPU, I got it running on AWS with a p2.xlarge (1xK80). Here are a few things I noticed.
After running
pip install -r requirements.txt
I got an error like:After searching, it looks like this is a Pillow issue. You need to run
sudo apt-get install python-dev
before Pillow can be installed.Then I noticed that you create the virtual env, install the requirements, then activate it. I think the second and third steps should be reversed, otherwise you are installing the requirements outside the virtualenv (and the Python code fails to run).
Then, I got the error
module 'socket' not found:No LuaRocks module found for socket
when runningth webcam/daemon.lua
. This was fixed by installingluarocks install luasocket
.Then, on AWS (and I imagined some other servers) ports are available based on a whitelist. I had to open port 5000 for inbound TCP traffic.
When you wrote:
https://cs.stanford.edu/people/jcjohns/densecap/demo/web-client.html?server_url=SERVER_URL
I thoughtSERVER_URL
meant the domain of my server. Then I realized it meanthttps://ec2-my-ip-address.compute-1.amazonaws.com.:5000/
, the same URL where I accepted the self-signed certificate, and it worked!Finally, I also have issue #49 despite CUDNN being correctly installed and used for other things, I can't use it here for some reason. So I have to disable it with
-use_cudnn 0
when running thedaemon.lua
or the other demo.