Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build/tools/compute_image_mean can not work! #6570

Open
5 tasks
kangyiS opened this issue Oct 16, 2018 · 0 comments
Open
5 tasks

build/tools/compute_image_mean can not work! #6570

kangyiS opened this issue Oct 16, 2018 · 0 comments

Comments

@kangyiS
Copy link

kangyiS commented Oct 16, 2018

Important - read before submitting

Please read the guidelines for contributing before submitting this issue!

Please do not post installation, build, usage, or modeling questions, or other requests for help to Issues.
Use the caffe-users list instead.
This helps developers maintain a clear, uncluttered, and efficient view of the state of Caffe.

Issue summary

I used caffe/build/tools/compute_image_mean to get a mean.binaryproto file, but all the means are zero which must be wrong.

Steps to reproduce

  1. cd caffe
  2. build/tools/compute_image_mean /home/kangyi/data/VOCdevkit/VOC0712/lmdb/VOC0712_trainval_lmdb mean.binaryproto
  3. I can get a mean.binaryproto file, but all the means are zero.
  4. I'm sure that lmdb files are correct because I used them to train my network successfully.

Tried solutions

I checked the compute_image_mean.cpp and find "datum.ParseFromString(cursor->value());" can not get the correct datum. datum.channels(), datum.width() and datum.height() are all zero.

System configuration

  • Operating system: Ubuntu16.04
  • Compiler:
  • CUDA version (if applicable):
  • CUDNN version (if applicable):
  • BLAS:
  • Python version (if using pycaffe):
  • MATLAB version (if using matcaffe):

Issue checklist

  • read the guidelines and removed the first paragraph
  • written a short summary and detailed steps to reproduce
  • explained how solutions to related problems failed (tick if found none)
  • filled system configuration
  • attached relevant logs/config files (tick if not applicable)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant