Git Product home page Git Product logo

Comments (5)

davidgengenbach avatar davidgengenbach commented on September 28, 2024

Can you please provide

  • some error messages
  • logs
  • the executed command?

Apart from that: this project is quite old and I am not that familiar with it anymore...
GPU accelerated caffe is currently not implemented in the Docker image I created - it should be rather easy to change it (Change :cpu to :gpu) but of course I have not tested it.

I think if you have caffe specific questions, you will find far better help in the caffe repo!

But when I use prototxt's of these vgg16 and vgg19 using the same data, I immdeiately get memory allocation error. I want to learn if my laptop is too weak to handle those networks.

I used the CPU version of caffe with an laptop having 8GB of RAM and an older i7 - your laptop most likely is not the culprit!

from vgg-caffe.

davidgengenbach avatar davidgengenbach commented on September 28, 2024

If your laptop is the culprit you might want to look into using AWS GPU EC2 instances. If you have one-off problems and some dollars to spare, this might be the best solution with the least headaches.

from vgg-caffe.

aferust avatar aferust commented on September 28, 2024

Thank you.
"some error messages":
This is the error I get:
Train Caffe Model: Failed to allocate 37748736 bytes on device 0. Total memory: 2098724864, Free: 21889024, dev_info[0]: total=2098724864 free=21889024

"the executed command?":
I don't use any explicit command to train models. I use digits as an abstracting interface. I compiled caffe from the source with gpu support, and it is not contained by docker. I run digits like "sudo ./digits-devserver". With this setup, I can run built-in models (googlenet and others) caffe with no problem and with gpu suıpport. I can use tensorflow support without gpu support since it complains about cuda compute 3.0 is not enough for my gpu (at least 3.5 is needed).

from vgg-caffe.

davidgengenbach avatar davidgengenbach commented on September 28, 2024

Ahh, ok.
I am sorry but I am not familiar with the technologies you use (e.g. digits), so I can not give you the solution or even hints.

What is strange is that you only have 20MB (= 21889024 bytes) free on your device 0 (= your GPU?) when you have 2GB (= 2098724864 bytes) memory in total... Did you try restarting (so that all allocated memory is freed initially) and starting the inference again?
If this does not help you either have a problem

  • with some pre-allocated buffer on the GPU (???)
  • that the model takes up most of your device memory and inference is not possible.

One thing you could test is running the same inference without GPU acceleration and look for the memory footprint (= how much memory the process is taking up). If it is above 2GB, the model + data will not fit into your GPU memory...
I am not exactly sure how I can help you further. If you agree, you could close the issue! Sorry that I am not of more help.

from vgg-caffe.

aferust avatar aferust commented on September 28, 2024

Thank you I see. Weird thing is googlenet works, but vgg does not.

from vgg-caffe.

Related Issues (2)

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.