Code Monkey home page Code Monkey logo

Comments (18)

Cadene avatar Cadene commented on May 18, 2024 11

Guys, the features extraction works on cpu!

GPU 3: 1/108067 91.213s (projected finish: 2738.10 hours) # 113 days

from bottom-up-attention.

peteanderson80 avatar peteanderson80 commented on May 18, 2024 6

From a computational perspective, the size of the input image doesn't matter as they are all resized to 600 pixels on the shortest side.

The easiest way to reduce the memory requirement is to reduce the SCALES and MAX_SIZE image parameters at test time. The parameters are defined here but you can set the values in this config file.

This might reduce the quality / number of features a bit, so a better option would be to maybe chop the network in half after the RPN layers, then run it in two stages (saving intermediate outputs). This would require modifying the code and network though.

Hope that helps.

from bottom-up-attention.

demobin8 avatar demobin8 commented on May 18, 2024 4

12g is enough.
as anderson said, i extract feature by run it in two stage.
split models/vg/ResNet-101/faster_rcnn_end2end_final/train.prototxt to
models/vg/ResNet-101/faster_rcnn_end2end_final/rpn.prototxt
models/vg/ResNet-101/faster_rcnn_end2end_final/rcnn.prototxt
and modify some code in tools/generate_tsv.py
good luck

from bottom-up-attention.

demobin8 avatar demobin8 commented on May 18, 2024

i have gpu 1080(8G memory)x4, is there anyway i can use multi gpu when predict?

from bottom-up-attention.

demobin8 avatar demobin8 commented on May 18, 2024

cpu mode running success too

from bottom-up-attention.

demobin8 avatar demobin8 commented on May 18, 2024

for generate feature, we need 12G per GPU?

from bottom-up-attention.

demobin8 avatar demobin8 commented on May 18, 2024

any idea to generate feature with 8G GPU x4 on private image data, cpu is a long long time......

from bottom-up-attention.

demobin8 avatar demobin8 commented on May 18, 2024

thx!

from bottom-up-attention.

yangshao avatar yangshao commented on May 18, 2024

@StephenZengCn how to solve this problem finally? I come across the same problem, and my gpu has 12g memory. Thanks.

from bottom-up-attention.

yangshao avatar yangshao commented on May 18, 2024

@StephenZengCn Thanks for your reply. I'm new to caffe. So it is possible for your to share the modifications to run the demo.ipynb? Thanks a lot!

from bottom-up-attention.

demobin8 avatar demobin8 commented on May 18, 2024

i didn't use demo.ipynb, just use generate_tsv.py to extract bottom-up features.

from bottom-up-attention.

saurabhhssaurabh avatar saurabhhssaurabh commented on May 18, 2024

@yangshao did u run demo.ipnb successfully ?

from bottom-up-attention.

coldmanck avatar coldmanck commented on May 18, 2024

12g is enough.
as anderson said, i extract feature by run it in two stage.
split models/vg/ResNet-101/faster_rcnn_end2end_final/train.prototxt to
models/vg/ResNet-101/faster_rcnn_end2end_final/rpn.prototxt
models/vg/ResNet-101/faster_rcnn_end2end_final/rcnn.prototxt
and modify some code in tools/generate_tsv.py
good luck

Hi @StephenZengCn ,

I am also facing the out-of-memory problem when trying to extract bottom-up features. Could you please share the detail (or these files) of how you split the network?

Thank you!

from bottom-up-attention.

coldmanck avatar coldmanck commented on May 18, 2024

Hi @StephenZengCn

Could you please share the scripts of them :)? I would really appreciate for the help.

from bottom-up-attention.

ZhuFengdaaa avatar ZhuFengdaaa commented on May 18, 2024

Does anyone have some no grad tricks like Variable(data, volatile=True) in Pytorch, which doing forward calculation only rather than saving blobs for each layer.

from bottom-up-attention.

raghavgoyal14 avatar raghavgoyal14 commented on May 18, 2024

@coldmanck : I faced the same issue and the model really needed close to 10.5 gb of memory on a GPU. So I made sure that I have one with enough memory.

from bottom-up-attention.

litingzhou1 avatar litingzhou1 commented on May 18, 2024

I also met this problem when using 11g GPU. How I can solve it?

from bottom-up-attention.

maoyj1998 avatar maoyj1998 commented on May 18, 2024

I use this code to extract feature from VG datasets, and I found it was caused by some images with big difference in aspect ratio, for example 281 * 500, faster rcnn will scale based on the shorter one, so making the larger one to large.

image

this code may work on 11G gpu

from bottom-up-attention.

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.