GithubHelp home page GithubHelp logo

Comments (7)

GilLevi avatar GilLevi commented on June 6, 2024 1

Hi @nitish11 ,

Thanks for your interest in our work and thanks for this cool repository:
https://github.com/nitish11/GenderRecognition

It's embarrassing to admit it, but I never worked with Torch and I really can't say which one is faster (or in this case - why you get faster run-times in Torch).

Best,
Gil.

from agegenderdeeplearning.

admercs avatar admercs commented on June 6, 2024

LuaJIT is faster than Python and Torch is generally faster than Caffe from what I've seen in benchmarks, which are a bit outdated: https://github.com/soumith/convnet-benchmarks. I hear Nvidia gives the best support to Torch, which they use for much of their own work (e.g., autonomous car demonstrations), as others like Google and Nervana/Intel compete on hardware. cuDNN 5 speeds up Torch quite a bit: https://devblogs.nvidia.com/parallelforall/optimizing-recurrent-neural-networks-cudnn-5/.

from agegenderdeeplearning.

nitish11 avatar nitish11 commented on June 6, 2024

@adam-erickson : πŸ‘ thanks.

But, the huge difference in only one frame is the concern. The benchmark has not compared LuaJIT with Caffe.

from agegenderdeeplearning.

nitish11 avatar nitish11 commented on June 6, 2024

I checked torch and Caffe computation engine called BLAS.

In Ubuntu 14.04,

ldd /home/nitish/caffe/build/lib/libcaffe.so
ldd /home/nitish/torch/install/lib/libTH.so

From the output, I observed that torch is linked against openblas, and caffe is linked against libcblas, which might be the reason for slower Caffe.

Solution : Build Caffe with OpenBlas

from agegenderdeeplearning.

admercs avatar admercs commented on June 6, 2024

Are you sure it's not simply the difference in looping speed between LuaJIT and Python? It can be quite large. Similar to Julia, LuaJIT is closer to C.

from agegenderdeeplearning.

nitish11 avatar nitish11 commented on June 6, 2024

I am not sure about looping speed between LuaJIT and Python.

from agegenderdeeplearning.

MohanaRC avatar MohanaRC commented on June 6, 2024

There is a better way to call torch from python code using wrapper.
Please check

from agegenderdeeplearning.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.