GithubHelp home page GithubHelp logo

Comments (11)

9crk avatar 9crk commented on May 26, 2024

or if you have any test imageset ? pls give it to me.

from agegenderdeeplearning.

9crk avatar 9crk commented on May 26, 2024

after loading the mean file,I got a right classification.
you might need to declear this
https://github.com/BVLC/caffe/wiki/Model-Zoo#models-for-age-and-gender-classification

mention that age estimate should load the mean file too.

btw, is the gender model load the same mean file too ?

from agegenderdeeplearning.

GilLevi avatar GilLevi commented on May 26, 2024

Hi,

Yes, the gender model uses the same mean file.

Gil

from agegenderdeeplearning.

9crk avatar 9crk commented on May 26, 2024

thank you for reply.
I got a bad result when using the caffemodel you give on googledrive.
this is all my code:

net_def='../models/c9e99062283c719c03de/deploy_age.prototxt'
net_mod='../models/c9e99062283c719c03de/age_net.caffemodel'
net_mean='../models/c9e99062283c719c03de/mean.binaryproto'

proto_data = open(net_mean, "rb").read()
a = caffe.io.caffe_pb2.BlobProto.FromString(proto_data)
mean  = caffe.io.blobproto_to_array(a)[0]

net = caffe.Classifier(net_def,net_mod ,
            image_dims=[256,256], mean=mean,
            input_scale=None, raw_scale=255,
            channel_swap=[2,1,0])
def work(filename):
    inputs = [caffe.io.load_image(filename)]
    start = time.time()
    predictions = net.predict(inputs,0)
    print("Done in %.2f s." % (time.time() - start))
    print predictions
    return predictions.argmax()
if __name__ == '__main__':
    print work(sys.argv[1]);

once the man's face in the picture is smooth. then it turns to be the age belong to a child...
I want to know if there is some certain condition when using this model. like the resolution

or is this caffemodel file is not well trained yet?

this image turns to be
Uploading WX20170327-134034.png…
8-12year old.

from agegenderdeeplearning.

9crk avatar 9crk commented on May 26, 2024

Uploading WX20170327-134034.png…

from agegenderdeeplearning.

9crk avatar 9crk commented on May 26, 2024

oh..I miss-clicked it...

from agegenderdeeplearning.

GilLevi avatar GilLevi commented on May 26, 2024

Can you upload the image?

from agegenderdeeplearning.

9crk avatar 9crk commented on May 26, 2024

Its nice of you to reply..thanks!
wx20170327-142117 2x
wx20170327-135806

I got trouble to upload pictures to GitHub in China.....

as you see. the two picture is the same face. but one turns a male and one to female...

from agegenderdeeplearning.

9crk avatar 9crk commented on May 26, 2024

wx20170327-134034
and this is the face turned to be 8 years old..

from agegenderdeeplearning.

GilLevi avatar GilLevi commented on May 26, 2024

When I ran it on my laptop I actually got 'Male" in both of those image. I also got that the bottom face is 8 years old. The model is not perfect, but given a larger training set, you can improve it.

from agegenderdeeplearning.

gittigxuy avatar gittigxuy commented on May 26, 2024

the accuracy seems to be not good.So,how can I improve the accuracy?Should I change the network structure? If I just increase the number of the train set picture.will the result be better?the last question is that if I increase the nunber of the train set picture,can I continue to use caffemodel you provide to me.how can I improve the accuracy rate of the caffemodel?

from agegenderdeeplearning.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.