dpressel / rude-carnie

Age detection in Tensorflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Questions about inception_v3.ckpt and test

guosusu opened this issue · comments

Hi, I have two questions:
1.I can not access
https://github.com/tensorflow/models/tree/master/im2txt#download-the-inception-v3-checkpoint
to get the inception_v3.ckpt, would you mind updating it or sending to me by e-mail?(My address is 584230916@qq.com)
2. I have trained my age and gender model. I want to use a test-set, which contains 312 pictures, to test my model. I used your guess function, but it can not read picture automatically. So how can I do it in batch testing mode ?
Tthank you! @dpressel

It looks like you can get the inception checkpoint here

https://github.com/tensorflow/models/tree/master/research/slim

You only need it if you want to train your own model. Otherwise I have posted a pre-trained checkpoint that you can just use (see README)

Thanks for your reply!
By the way, if I want to test my modle, which is trained following your train step, I can just follow your "Evaluate the model" step or eval_image_classifier.py in that link, right? @dpressel

Evaluate model (eval.py) runs on the heldout data generated by preproc.py. That is how you evaluate model performance. If that’s what you want yes, do that. If you just want to run on some images laying around on your system, use guess.py

I want to calculate the accuracy rate of my test set, which contains 312 pictures. The question is, in guess.py, it can input only one picture path. So, I tried to modified it to read pictures' path from a txt and input it into guess function circularly. Unfortunately, It still works once and stop. I wonder how it happens and how to modify it.

guess.py already supports this behavior. See the command line argument:

tf.app.flags.DEFINE_string('filename', '',
                           'File (Image) or File list (Text/No header TSV) to process')