Git Product home page Git Product logo

Comments (6)

AjayTalati avatar AjayTalati commented on July 18, 2024

Very sorry - I think its training fine with GPU now - forgot to rebuild all/delete old build directory?

I'm not very good with computers :(

from dqn-in-the-caffe.

muupan avatar muupan commented on July 18, 2024

Yes, you need to rebuild it if you change CPU_ONLY option.

./dqn FLAGS_gpu true is not a correct way to change the values of the flags. If you want to tun on the gpu flag, you should just write ./dqn -gpu. If you do so, you don't have to modify dqn_main.cpp.

from dqn-in-the-caffe.

AjayTalati avatar AjayTalati commented on July 18, 2024

Thanks alot. Really nice code, very clear and compact :)

I'm writing everything down, so if you want to post it just let me know?

May I ask how often does caffe, save the network, or just give some feedback on the lost function and training of the network? I'm new to caffe, and still working through your code. I guess I need to look into how to parse stuff into caffe as well?

I'm also working with some really good guys on a Python/Theano/RL-glue implementation. Testing, network saving and output/control in general a more formal process, (because of RL-glue), and easier to follow, for NOOBs at least. We have a forum - it would be great if you joined and gave us some direction, if you have the time?

https://groups.google.com/forum/#!forum/deep-q-learning

https://github.com/spragunr/deep_q_rl

Finally I'm also trying to implement a very lightweight version, in Lua/Torch. This would be a bit more closer to Deepminds implementation as they've made their emulator public now,

https://github.com/deepmind/xitari

https://github.com/deepmind/alewrap

Cheers 👍

from dqn-in-the-caffe.

muupan avatar muupan commented on July 18, 2024

Currently the network parameters are saved into a file after every 50000 iterations. You can change the interval by changing snapshot param in dqn_solver.prototxt.

Thank you for letting me know other projects. The forum looks great.

from dqn-in-the-caffe.

AjayTalati avatar AjayTalati commented on July 18, 2024

Very warm welcome, great to have you as part of the gang :)

Sorry, yes I see, from http://caffe.berkeleyvision.org/tutorial/solver.html

Snapshotting is configured by:

/ The snapshot interval in iterations.
snapshot: 5000
/ File path prefix for snapshotting model weights and solver state.
/ Note: this is relative to the invocation of the caffe utility, not the
/ solver definition file.
snapshot_prefix: "/path/to/model"
/ Snapshot the diff along with the weights. This can help debugging training
/ but takes more storage.
snapshot_diff: false
/ A final snapshot is saved at the end of training unless
/ this flag is set to false. The default is true.
snapshot_after_train: true

in the solver definition prototxt.

I like caffe it's really well documented.

A bit heavy going at first, but a good investment!

from dqn-in-the-caffe.

onlytailei avatar onlytailei commented on July 18, 2024

Hi I have another question.

If I set the GPU mode in solver prototxt, Do I need to set the mode of GPU in dqn_mian again?

from dqn-in-the-caffe.

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.