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

Problem when using test.py #15

Open
anavc94 opened this issue Apr 20, 2018 · 0 comments
Open

Problem when using test.py #15

anavc94 opened this issue Apr 20, 2018 · 0 comments

Comments

@anavc94
Copy link

anavc94 commented Apr 20, 2018

Hello,

I've tried to execute test.py with the pre-trained model you provide in the description.
I am using the following command:

python test.py --images "./data/test" --model_path "./models" --batch_size 128 --cuda

having in ./data/test the tfrecords generated with Wiki dataset and convert_to_records_multiCPU.py, and
the pretrained model in models (checkpoint, model.ckpt-14001.data-00000-of-00001 and so on).

However, I am receiving this output:

2018-04-20 13:12:24.750659: I C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2 !!!TESTING DONE!!! Traceback (most recent call last): File "test.py", line 116, in <module> ckpt.model_checkpoint_path) File "test.py", line 65, in test_once return prob_age_val, real_age, prob_gender_val, real_gender, image_val, np.mean(mean_error_age), np.mean( UnboundLocalError: local variable 'prob_age_val' referenced before assignment

What's going wrong?

Thank you so much!

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