MobileNet-Caffe icon indicating copy to clipboard operation
MobileNet-Caffe copied to clipboard

caffe

Open ghost opened this issue 8 years ago • 2 comments

i try to use mobileNet caffemodel and prototxt in caffe classification with a cat image ,this image is in examples\images, i can not understand the answer mobileNet 10.9953 - "n02948072 candle, taper, wax light" 10.6561 - "n06874185 traffic light, traffic signal, stoplight" 9.6233 - "n04591713 wine bottle" 9.1139 - "n04286575 spotlight, spot" 9.0703 - "n04356056 sunglasses, dark glasses, shades" where am i wrong, i just replace the model file and trained file in caffe

ghost avatar Aug 08 '17 03:08 ghost

something went wrong with image preprocessing and post-processing.

  • add transformer.set_input_scale('data', 0.017)
  • add these codes to the end of your prototxt: layer { name: "prob" type: "Softmax" bottom: "fc7" top: "prob" }

shicai avatar Aug 08 '17 06:08 shicai

@shicai it work,thank you

ghost avatar Aug 08 '17 06:08 ghost