Comments (5)
please use original images (not lmdb).
from mobilenet-caffe.
Hi shicai, I also tried to use original images to do inference on mobilenet-v2, the result I get is:
I0704 09:38:38.086778 3370 caffe.cpp:310] Loss: 1.17715
I0704 09:38:38.086797 3370 caffe.cpp:322] accuracy@1 = 0.712339
I0704 09:38:38.086804 3370 caffe.cpp:322] accuracy@5 = 0.901795
I0704 09:38:38.086813 3370 caffe.cpp:322] loss = 1.17715 (* 1 = 1.17715 loss)
This is the test prototxt data input section:
layer {
name: "data"
type: "ImageData"
top: "data"
top: "label"
include {
phase: TEST
}
transform_param {
scale: 0.017
mean_value: [103.94, 116.78, 123.68]
mirror: false
crop_size: 224
}
image_data_param {
source: "val.txt"
new_height: 256
new_width: 256
batch_size: 20
root_folder: "ILSVRC2012/val/"
}
}
The result is similar to the values I directly use LMDB in mobilenet-v2. And still lower than the official one, is there anything wrong in this test prototxt?
Is the steps in eval_image.py correct for inference? I see in that script, the image is cropped then resize to 224x224 not resize to 256xN, then crop to 224x224.
Thanks
Huaqi
from mobilenet-caffe.
eval_image.py
is just an example for evaluating single image.
to reproduce the performance on imagenet val dataset, you should resize the image to 256xN, then crop the center 224x224 regions, then feed it into the model.
from mobilenet-caffe.
@fanghuaqi @shicai @lutzroeder @mn-robot 弱弱的请问一下top1和top5可以详细解释一下吗???
from mobilenet-caffe.
@17759205390 https://caffe.berkeleyvision.org/tutorial/layers/accuracy.html
from mobilenet-caffe.
Related Issues (20)
- mobilenet_v2 MAdds 429M vs paper's 300M, because of two difference HOT 1
- Is it recommended to use global batch for fine tuning?
- I wonder something intresting why it's
- image size
- Fine-tune with provided solver leads to loss=87.3365 HOT 6
- The accuracy i test is lower than that in the readme file HOT 1
- Check failed: target_blobs.size() == source_layer->blobs().size() (1 vs. 0) Incompatible number of blobs for layer conv5_5/dw HOT 1
- Some bottlenecks do not contain skip connections in Mobilenet v2?
- MobileNet025
- can you provide the prototxt generator ? thank you very much
- bug in eval_image,py
- caffe可以实现宽度乘法器和分辨率乘法器吗?
- check failure stack trace
- Training imagenet from scratch
- can you share the training code?
- batchnorm layer variance exist negative numbers HOT 3
- TypeError: slice indices must be integers or None or have an __index__ method HOT 4
- Mobilenet-NNIE HOT 2
- Wrong predictions after fine-tuning the mobilenetv2 model HOT 4
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 mobilenet-caffe.