Comments (5)
It's the same as Official Caffe. Please refer to proposal_layer.hpp. The default data type is float.
from mini-caffe.
Thanks for your reply. If I use the code for classification task, then i need to get the final layer values (type: Softmax). The following code is right?
`
vector get_values(layer_values->count());
for (int i = 0; i < layer_values->count(); i++)
{
float &get_value = get_values[i];
get_value = layer_values->data_at(0, i, 0, 0);####?
cout << "get_value:" << get_value << endl;
}
`
from mini-caffe.
Assume you have the net definition like below
layer {
name: "prob-layer"
type: "Softmax"
bottom: "score"
top: "prob"
}
Then you should get the output from Blob prob
.
shared_ptr<Blob> prob = net->blob_by_name("prob");
for (int i = 0; i < prob->count(); i++) {
...
}
from mini-caffe.
@CBIR-LL For more details, Please refer to examples
from mini-caffe.
Thanks. I'll take a good look at your examples.
from mini-caffe.
Related Issues (20)
- linux
- mini-caffe 可以设置多GPU吗?
- 最新的代码还是会在退出时报内存错误啊 HOT 2
- pthread_create HOT 1
- if using opencv, then how to modify "mini-caffe.cmake"
- Adding SYCL backend for Mini Caffe
- 最新版本在程序运行example中程序退出时候报错,旧版本不存在此问题 HOT 2
- Memory Leak when using Threads HOT 2
- 你好,我在编译mini-caffe遇到链接错误的问题
- libopenblas.dll HOT 1
- cmake cannot find and configure cuda10 correctly
- Layer::Forward does not work when inference faster-rcnn HOT 6
- About LSTM layer.
- Windows编译出错!!
- Unsupported gpu architecture 'compute_92' HOT 4
- error: ‘exp’ was not declared in this scope HOT 4
- win10+cmake+cuda10.0+cudnn7.3.1, i have the problem that Running GPU detection script with nvcc failed: detect_cuda_archs.cu HOT 2
- scale.cpp
- SSD mobilenet 测试问题
- 编译win 32位,出现的问题 HOT 1
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 mini-caffe.