Open mohammadkhaleghy opened 4 years ago
Hello, same issue here.
any solution ?
???
could someone give a solution to this?
pip install tensorflow-gpu==1.7 or 1.4 or 1.14
This error means that your image is uint8 format, So you neet to add
image = tf.to_float(image)
in "facenet/src/facenet.py:121".
pip install tensorflow-gpu==1.7
cannot run it with the error: ERROR: Could not find a version that satisfies the requirement tensorflow-gpu==1.7 (from versions: none)
same error here. I could not install tensorflow==1.7 or tensorflow-gpu==1.7. Error: Could not find a version that satisfies the requirement
I managed to fix it by downgrading these:
Hi 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?
you need change: image = tf.cond(get_control_flag(control[0], FIXED_STANDARDIZATION), lambda:(tf.cast(image, dtype=tf.float32) - 127.5)/128.0, lambda:tf.image.per_image_standardization(tf.cast(image, dtype=tf.float32))) in "facenet/src/facenet.py:122".
you need change: image = tf.cond(get_control_flag(control[0], FIXED_STANDARDIZATION), lambda:(tf.cast(image, dtype=tf.float32) - 127.5)/128.0, lambda:tf.image.per_image_standardization(tf.cast(image, dtype=tf.float32))) in "facenet/src/facenet.py:122".
Incredibly correct
Hi 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?