Comments (9)
You need to generate caffe.pb.h
manually using protoc
as follows.
# In the directory you installed Caffe to
protoc src/caffe/proto/caffe.proto --cpp_out=.
mkdir include/caffe/proto
mv src/caffe/proto/caffe.pb.h include/caffe/proto
from dqn-in-the-caffe.
Hi, thanks a lot for the help! I really appreciate it :)
We're making progress, but now there seems to be a problem with a solver?
ajay@ajay-h8-1170uk:~/CppProjects/dqn-in-the-caffe-master/build$ make
Scanning dependencies of target dqn
[ 50%] Building CXX object CMakeFiles/dqn.dir/dqn_main.cpp.o
In file included from /home/ajay/CppProjects/dqn-in-the-caffe-master/dqn_main.cpp:3:0:
/usr/local/ale_cpp/ale_0.4.4/ale_0_4/src/ale_interface.hpp:124:28: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.8/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr theOSystem;
^
/usr/local/ale_cpp/ale_0.4.4/ale_0_4/src/ale_interface.hpp:125:29: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.8/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr theSettings;
^
/usr/local/ale_cpp/ale_0.4.4/ale_0_4/src/ale_interface.hpp: In function ‘void createOSystem(int, char*, std::auto_ptr&, std::auto_ptr&)’:
/usr/local/ale_cpp/ale_0.4.4/ale_0_4/src/ale_interface.hpp:84:49: warning: ignoring return value of ‘FILE freopen(const char_, const char_, FILE_)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(outputFile.c_str(), "w", stdout);
^
[100%] Building CXX object CMakeFiles/dqn.dir/dqn.cpp.o
In file included from /home/ajay/CppProjects/dqn-in-the-caffe-master/dqn.hpp:9:0,
from /home/ajay/CppProjects/dqn-in-the-caffe-master/dqn.cpp:1:
/usr/local/ale_cpp/ale_0.4.4/ale_0_4/src/ale_interface.hpp:124:28: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.8/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr theOSystem;
^
/usr/local/ale_cpp/ale_0.4.4/ale_0_4/src/ale_interface.hpp:125:29: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.8/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr theSettings;
^
/home/ajay/CppProjects/dqn-in-the-caffe-master/dqn.cpp: In member function ‘void dqn::DQN::Update()’:
/home/ajay/CppProjects/dqn-in-the-caffe-master/dqn.cpp:350:12: error: ‘class caffe::Solver’ has no member named ‘Step’
solver_->Step(1);
^
make[2]: *_* [CMakeFiles/dqn.dir/dqn.cpp.o] Error 1
make[1]: *** [CMakeFiles/dqn.dir/all] Error 2
make: *** [all] Error 2
I can't find anything on the internet about this one
from dqn-in-the-caffe.
The message shows BVLC/caffe#1228 is not merged into your caffe. DQN-in-the-caffe depends on that PR.
I've tested DQN-in-the-caffe only with my forked caffe branch https://github.com/muupan/caffe/tree/dqn, so I recommend you use it.
from dqn-in-the-caffe.
Great! Thanks, I've built it all sucessfully, and have some note/docs, if any one else needs help?
I'll be testing it tonight and over the weekend on pong
. Will get back to you 👍
May I ask if you've ever tested your code on freeway.bin
or othello.bin
from dqn-in-the-caffe.
Congratulations! I hope to hear the results. I've never tried freeway nor othello yet.
from dqn-in-the-caffe.
@muupan thank you! It's really helpful.
from dqn-in-the-caffe.
Thank you! It works!
from dqn-in-the-caffe.
@muupan Thanks
from dqn-in-the-caffe.
hi @muupan , after implement your suggestions, still the same error...any other advices? tks!
`# In the directory you installed Caffe to
protoc src/caffe/proto/caffe.proto --cpp_out=.
mkdir include/caffe/proto
mv src/caffe/proto/caffe.pb.h include/caffe/proto`
from dqn-in-the-caffe.
Related Issues (20)
- Parameters used to learn Pong? HOT 2
- Linking problems
- video file
- eltwise_layer shape check failed HOT 12
- undefined references to `DisplayScreen::display_screen(MediaSource const&) HOT 4
- Source for pong.bin
- how to build and get_start?
- Is there a python implementation or interface for the same?
- where can download the Arcade Learning Environment? HOT 1
- Screen display requires directive __USE_SDL to be defined
- cannot find #include "caffe/proto/caffe.pb.h"
- which player is controlled by dqn
- Use One network or Two network?
- Problem running with GPU? HOT 6
- A doubt at line 350 in dqn.cpp HOT 5
- no good results HOT 27
- Running Problem HOT 3
- How to Resume training? HOT 1
- problem with installing dqn
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dqn-in-the-caffe.