Coder Social home page Coder Social logo

training speed problem about tffrcnn HOT 7 CLOSED

charlesshang avatar charlesshang commented on May 23, 2024
training speed problem

from tffrcnn.

Comments (7)

xinghedyc avatar xinghedyc commented on May 23, 2024

I see this
if iter >= cfg.TRAIN.STEPSIZE:
sess.run(tf.assign(lr, cfg.TRAIN.LEARNING_RATE * cfg.TRAIN.GAMMA))
else:
sess.run(tf.assign(lr, cfg.TRAIN.LEARNING_RATE))
this op execute every iter, I try to move it outside the loop, it seems speed up the training.

from tffrcnn.

CharlesShang avatar CharlesShang commented on May 23, 2024

I have the same problem with you, my GPU is GTX 980, runs pretty fast at the beginning, but gets worse after saveral epoches.
I tried to profile the process to check how much the loading data module costed, (see ./experiments/profiling/profile.png) but still got no idea.

from tffrcnn.

CharlesShang avatar CharlesShang commented on May 23, 2024

BTW, I encountered the same problems when running other tasks with tf.
This is really weird.

from tffrcnn.

xinghedyc avatar xinghedyc commented on May 23, 2024

@CharlesShang Hi , I move this lines outside the loop: at line 176 in lib/fast_rcnn/train.py
if iter >= cfg.TRAIN.STEPSIZE:
sess.run(tf.assign(lr, cfg.TRAIN.LEARNING_RATE * cfg.TRAIN.GAMMA))
else:
sess.run(tf.assign(lr, cfg.TRAIN.LEARNING_RATE))
And it get faster than before and the problem that the training speed goes down seems to disappear.
You can have a try?

from tffrcnn.

CharlesShang avatar CharlesShang commented on May 23, 2024

definitely
Thank you for your suggestions

from tffrcnn.

xinghedyc avatar xinghedyc commented on May 23, 2024

You're welcome!
Hope to help you!

from tffrcnn.

CharlesShang avatar CharlesShang commented on May 23, 2024

I'm closing this issue.
If we find out the speed problems still there unsolved, we'll reopen it.

from tffrcnn.

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.