gyf1214 / ruby-caffe Goto Github PK
View Code? Open in Web Editor NEWA ruby wrapper of the deep leaning framework
License: MIT License
A ruby wrapper of the deep leaning framework
License: MIT License
When I run rake build:pre
, it fails on the training step (caffe train -solver spec/net/test_solver.prototxt > /dev/null 2>&1
).
When I manually run that command, I get the following output:
I0925 21:18:38.906635 812 caffe.cpp:211] Use CPU.
I0925 21:18:38.907688 812 solver.cpp:44] Initializing solver from parameters:
test_iter: 100
test_interval: 80
base_lr: 0.1
display: 80
max_iter: 2560
lr_policy: "inv"
gamma: 0.0001
power: 0.75
momentum: 0.9
weight_decay: 0.0005
snapshot: 2560
snapshot_prefix: "spec/net/test"
solver_mode: CPU
net: "spec/net/test_train.prototxt"
train_state {
level: 0
stage: ""
}
I0925 21:18:38.911649 812 solver.cpp:87] Creating training net from net file: spec/net/test_train.prototxt
I0925 21:18:38.916321 812 net.cpp:294] The NetState phase (0) differed from the phase (1) specified by a rule in layer accuracy
I0925 21:18:38.916859 812 net.cpp:51] Initializing net from parameters:
name: "test"
state {
phase: TRAIN
level: 0
stage: ""
}
layer {
name: "data"
type: "Data"
top: "data"
top: "label"
data_param {
source: "spec/net/test_data"
batch_size: 256
backend: LMDB
}
}
layer {
name: "ip1"
type: "InnerProduct"
bottom: "data"
top: "ip1"
param {
lr_mult: 1
}
param {
lr_mult: 2
}
inner_product_param {
num_output: 100
weight_filler {
type: "gaussian"
}
bias_filler {
type: "constant"
}
}
}
layer {
name: "sigmoid"
type: "Sigmoid"
bottom: "ip1"
top: "ip1"
}
layer {
name: "ip2"
type: "InnerProduct"
bottom: "ip1"
top: "ip2"
param {
lr_mult: 1
}
param {
lr_mult: 2
}
inner_product_param {
num_output: 2
weight_filler {
type: "gaussian"
}
bias_filler {
type: "constant"
}
}
}
layer {
name: "loss"
type: "SoftmaxWithLoss"
bottom: "ip2"
bottom: "label"
top: "loss"
}
I0925 21:18:38.922166 812 layer_factory.hpp:77] Creating layer data
F0925 21:18:38.923591 812 db_lmdb.hpp:15] Check failed: mdb_status == 0 (2 vs. 0) No such file or directory
*** Check failure stack trace: ***
@ 0x7f61a19f6778 (unknown)
@ 0x7f61a19f66b2 (unknown)
@ 0x7f61a19f60b4 (unknown)
@ 0x7f61a19f9055 (unknown)
@ 0x7f61a1ec745e caffe::db::LMDB::Open()
@ 0x7f61a1e637a7 caffe::DataLayer<>::DataLayer()
@ 0x7f61a1e63a72 caffe::Creator_DataLayer<>()
@ 0x7f61a1e15335 caffe::LayerRegistry<>::CreateLayer()
@ 0x7f61a1e8dd34 caffe::Net<>::Init()
@ 0x7f61a1e8fd05 caffe::Net<>::Net()
@ 0x7f61a1eec83f caffe::Solver<>::InitTrainNet()
@ 0x7f61a1eedc83 caffe::Solver<>::Init()
@ 0x7f61a1eedf9f caffe::Solver<>::Solver()
@ 0x7f61a1ed2f31 caffe::Creator_SGDSolver<>()
@ 0x40d71c caffe::SolverRegistry<>::CreateSolver()
@ 0x408594 train()
@ 0x405743 main
@ 0x7f619c92fb45 (unknown)
@ 0x406025 (unknown)
@ (nil) (unknown)
Aborted
What am I missing?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.