dpressel / rude-carnie

Age detection in Tensorflow
937 stars 341 forks source link

Key LeviHassner/conv1/biases not found in checkpoint #81

Closed Dyex719 closed 6 years ago

Dyex719 commented 6 years ago

When I run: python guess.py --model_dir /home/user/Downloads/Models/rude-carnie/22801-20180605T052459Z-001/22801/ --filename /home/user/Pictures/Webcam/image.jpg

I get an error: NotFoundError (see above for traceback): Key LeviHassner/conv1/biases not found in checkpoint [[Node: save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

Is there a problem with the checkpoint file?

dpressel commented 6 years ago

You need to pass the model type as inception. Please see the README