diff --git a/README.md b/README.md index c9f4ab5..00e4cf7 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,9 @@ This section covers some of the steps to setup and compile the code. The softwar 6. Json_cpp (https://github.com/open-source-parsers/jsoncpp) 7. Eigen (http://eigen.tuxfamily.org/index.php?title=Main_Page) 8. bits - sudo apt-get install gcc-4.9-multilib g++-4.9-multilib + sudo apt-get install gcc-4.9-multilib g++-4.9-multilib +11. LodePNG + https://github.com/lvandeve/lodepng ### Windows diff --git a/learning/AsyncSolver.h b/learning/AsyncSolver.h index d1c8213..367ac2e 100644 --- a/learning/AsyncSolver.h +++ b/learning/AsyncSolver.h @@ -8,31 +8,31 @@ class cSolverAsync : public cCaffeSolver cSolverAsync(const caffe::SolverParameter& param) : cCaffeSolver(param) {}; virtual ~cSolverAsync() {}; - + virtual void ApplySteps(int steps); }; template void cSolverAsync::ApplySteps(int steps) { std::vector*> bottom_vec; - const int start_iter = iter_; - const int stop_iter = iter_ + steps; + const int start_iter = cSolverAsync::iter_; + const int stop_iter = cSolverAsync::iter_ + steps; - while (iter_ < stop_iter) { - ApplyUpdate(); - ++iter_; + while (cSolverAsync::iter_ < stop_iter) { + cSolverAsync::ApplyUpdate(); + ++cSolverAsync::iter_; - caffe::SolverAction::Enum request = GetRequestedAction(); + caffe::SolverAction::Enum request = cSolverAsync::GetRequestedAction(); // Save a snapshot if needed. - if ((param_.snapshot() - && iter_ % param_.snapshot() == 0 + if ((cSolverAsync::param_.snapshot() + && cSolverAsync::iter_ % cSolverAsync::param_.snapshot() == 0 && caffe::Caffe::root_solver()) || (request == caffe::SolverAction::SNAPSHOT)) { - Snapshot(); + cSolverAsync::Snapshot(); } if (caffe::SolverAction::STOP == request) { - requested_early_exit_ = true; + cSolverAsync::requested_early_exit_ = true; // Break out of training loop. break; } diff --git a/learning/NNSolver.h b/learning/NNSolver.h index e71a2bd..ec3d33e 100644 --- a/learning/NNSolver.h +++ b/learning/NNSolver.h @@ -47,8 +47,8 @@ template cNeuralNet::tNNData cCaffeSolver::ForwardBackward() { cNeuralNet::tNNData loss = 0; - net_->ClearParamDiffs(); - loss = net_->ForwardBackward(); + this->GetNet()->ClearParamDiffs(); + loss = this->GetNet()->ForwardBackward(); return loss; }; diff --git a/render/TextureDesc.cpp b/render/TextureDesc.cpp index e29c0df..633503c 100644 --- a/render/TextureDesc.cpp +++ b/render/TextureDesc.cpp @@ -1,6 +1,6 @@ #include "TextureDesc.h" #include -#include "LodePNG\lodepng.h" +#include "LodePNG/lodepng.h" std::stack cTextureDesc::mTexStack = std::stack(); cTextureDesc::tTexEntry::tTexEntry()