Skip to content
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

Implement a demo website similar to Decaf Demo #78

Closed
kloudkl opened this issue Feb 7, 2014 · 15 comments · Fixed by #679
Closed

Implement a demo website similar to Decaf Demo #78

kloudkl opened this issue Feb 7, 2014 · 15 comments · Fixed by #679
Assignees
Milestone

Comments

@kloudkl
Copy link
Contributor

kloudkl commented Feb 7, 2014

The Decaf Demo was built upon the sexy Flask. The major difference is that the back-end would be in C++. To enable data transfers between Python and C++, we need to use Apache Thrift as the cross-language RPC framework.

@Yangqing
Copy link
Member

Yangqing commented Feb 7, 2014

I am not very warm-hearted on this since caffe focuses more on research purpose instead of demo-side codes. Thrift + RPC seems a little bit too far away from this purpose - we do have a plan to make a demo based on python + c++ but still based on Flask, and that is probably as far as we will go at Berkeley. However, if you would like to make a demo and put it under examples/, you are more than welcome :) Before that happens I will temporarily close this issue - please reopen and make a pull request should you feel fit.

@sergeyk
Copy link
Contributor

sergeyk commented Mar 16, 2014

I'll port the decaf flask-based demo server and get a demo server running on a Berkeley-owned machine.

@shelhamer
Copy link
Member

@sergeyk how's this coming? Any problems?

@sergeyk sergeyk added this to the 1.0 milestone Apr 22, 2014
@sergeyk
Copy link
Contributor

sergeyk commented May 23, 2014

Done, live at http://demo.caffe.berkeleyvision.org/.
Will put the code into examples/ pretty soon, so not closing the issue until then.

@kloudkl
Copy link
Contributor Author

kloudkl commented Jun 8, 2014

Just clicked the quick example, why is the network not so accurate and so slow?
image
Maximally accurate
electric fan 1.13692
fan 0.49594
balloon 0.44721
lighter-than-air craft 0.38628
device 0.38628

Maximally specific
electric fan 0.54130
balloon 0.20039
pinwheel 0.06652
sunglass 0.03716
maraca 0.02352

CNN took 10.165 seconds.

@shelhamer
Copy link
Member

That's odd! There must be some fault with the demo machine-the demo usually
runs in ~0.3 s (it's a slow machine) and is reasonably accurate.

@sergeyk could you look into this or restart the demo?

Le dimanche 8 juin 2014, kloudkl notifications@github.com a écrit :

Just clicked the quick example, why is the network not so accurate and so
slow?
[image: image]
https://cloud.githubusercontent.com/assets/4530451/3211448/6bfc866a-ef18-11e3-9865-90c1e159f063.png
Maximally accurate
electric fan 1.13692
fan 0.49594
balloon 0.44721
lighter-than-air craft 0.38628
device 0.38628

Maximally specific
electric fan 0.54130
balloon 0.20039
pinwheel 0.06652
sunglass 0.03716
maraca 0.02352

CNN took 10.165 seconds.


Reply to this email directly or view it on GitHub
#78 (comment).

@shelhamer
Copy link
Member

I restarted the demo and now it seems fine:

screen 2014-06-08 at 13 12 10

@Yangqing Yangqing closed this as completed Jun 9, 2014
@shelhamer
Copy link
Member

Keeping this open until Sergey releases the demo code per #78 (comment).

@shelhamer shelhamer reopened this Jun 9, 2014
@Yangqing
Copy link
Member

Yangqing commented Jun 9, 2014

Oops, my bad :)

@sergeyk
Copy link
Contributor

sergeyk commented Jun 10, 2014

Shall I put it under examples?

On Monday, June 9, 2014, Yangqing Jia notifications@github.com wrote:

Oops, my bad :)


Reply to this email directly or view it on GitHub
#78 (comment).

@shelhamer
Copy link
Member

I'm fine with putting it in examples/web.

On Mon, Jun 9, 2014 at 6:49 PM, Sergey Karayev notifications@github.com
wrote:

Shall I put it under examples?

On Monday, June 9, 2014, Yangqing Jia notifications@github.com wrote:

Oops, my bad :)


Reply to this email directly or view it on GitHub
#78 (comment).


Reply to this email directly or view it on GitHub
#78 (comment).

@kloudkl
Copy link
Contributor Author

kloudkl commented Jun 11, 2014

@sergeyk, the server is down. What's the matter?

502 Bad Gateway

nginx/1.6.0

@sergeyk
Copy link
Contributor

sergeyk commented Jun 11, 2014

Looks like the GPU in the server is malfunctioning. Switched to CPU mode.

@Yangqing
Copy link
Member

Not sure whether it is due to a slow machine, but the demo currently runs 2.88s per image, which seems slow...

@sergeyk
Copy link
Contributor

sergeyk commented Jun 11, 2014

It's in CPU mode. I'll switch the demo over to another machine this evening
or tomorrow.

On Wednesday, June 11, 2014, Yangqing Jia notifications@github.com wrote:

Not sure whether it is due to a slow machine, but the demo currently runs
2.88s per image, which seems slow...


Reply to this email directly or view it on GitHub
#78 (comment).

@sergeyk sergeyk closed this as completed Jul 12, 2014
thatguymike pushed a commit to thatguymike/caffe that referenced this issue Dec 2, 2015
Change multi-solver handling by dividing user batch by gpu count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants