Outputs of true_fn and false_fn must have the same type: float32, uint8
See original GitHub issueHi Thanks for this awesome project I have a problem when I try to train the model I get this error
Traceback (most recent call last): File "src/train_softmax.py", line 582, in <module> main(parse_arguments(sys.argv[1:])) File "src/train_softmax.py", line 129, in main image_batch, label_batch = facenet.create_input_pipeline(input_queue, image_size, nrof_preprocess_threads, batch_size_placeholder) File "/Users/mohammadkhaleghi/AI/facenet/src/facenet.py", line 122, in create_input_pipeline lambda:tf.image.per_image_standardization(image)) File "/opt/anaconda3/lib/python3.7/site-packages/tensorflow_core/python/util/deprecation.py", line 507, in new_func return func(*args, **kwargs) File "/opt/anaconda3/lib/python3.7/site-packages/tensorflow_core/python/ops/control_flow_ops.py", line 1274, in cond "%s, %s" % (x.dtype.name, y.dtype.name)) ValueError: Outputs of true_fn and false_fn must have the same type: float32, uint8
any idea what can be problem?
Issue Analytics
- State:
- Created 4 years ago
- Comments:12
Top GitHub Comments
This error means that your image is uint8 format, So you neet to add
in “facenet/src/facenet.py:121”.
pip install tensorflow-gpu==1.7 or 1.4 or 1.14