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

Can not decode images #9

Closed
huohuo-1 opened this issue Aug 23, 2019 · 7 comments
Closed

Can not decode images #9

huohuo-1 opened this issue Aug 23, 2019 · 7 comments

Comments

@huohuo-1
Copy link

Hello,

I can't show images following the tutorial. What should I do?

Thanks!

This is the log

Traceback (most recent call last):
File "/home/user/.env/dl3/lib/python3.7/site-packages/tensorflow/python/ops/gen_image_ops.py", line 1169, in decode_jpeg
"acceptable_fraction", acceptable_fraction, "dct_method", dct_method)
tensorflow.python.eager.core._FallbackException: This function does not handle the case of the path where all inputs are not already EagerTensors.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "Waymo.py", line 77, in
[3, 3, index+1])
File "Waymo.py", line 34, in image_show
plt.imshow(tf.image.decode_jpeg(data), cmap=cmap)
File "/home/user/.env/dl3/lib/python3.7/site-packages/tensorflow/python/ops/gen_image_ops.py", line 1178, in decode_jpeg
name=name, ctx=_ctx)
File "/home/user/.env/dl3/lib/python3.7/site-packages/tensorflow/python/ops/gen_image_ops.py", line 1255, in decode_jpeg_eager_fallback
contents = _ops.convert_to_tensor(contents, _dtypes.string)
File "/home/user/.env/dl3/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 1087, in convert_to_tensor
return convert_to_tensor_v2(value, dtype, preferred_dtype, name)
File "/home/user/.env/dl3/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 1145, in convert_to_tensor_v2
as_ref=False)
File "/home/user/.env/dl3/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 1224, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/home/user/.env/dl3/lib/python3.7/site-packages/tensorflow/python/framework/constant_op.py", line 305, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "/home/user/.env/dl3/lib/python3.7/site-packages/tensorflow/python/framework/constant_op.py", line 246, in constant
allow_broadcast=True)
File "/home/user/.env/dl3/lib/python3.7/site-packages/tensorflow/python/framework/constant_op.py", line 254, in _constant_impl
t = convert_to_eager_tensor(value, ctx, dtype)
File "/home/user/.env/dl3/lib/python3.7/site-packages/tensorflow/python/framework/constant_op.py", line 115, in convert_to_eager_tensor
return ops.EagerTensor(value, handle, device, dtype)
TypeError: Cannot convert provided value to EagerTensor. Provided value: bytearray(b'

@peisun1115
Copy link
Contributor

How did you run the tutorial? Did you see this error when running it in https://colab.sandbox.google.com? or locally?

@peisun1115
Copy link
Contributor

Also what is your tensorflow version?

@huohuo-1
Copy link
Author

Also what is your tensorflow version?

My tensorflow version is 1.14.0

@huohuo-1
Copy link
Author

huohuo-1 commented Aug 24, 2019

How did you run the tutorial? Did you see this error when running it in https://colab.sandbox.google.com? or locally?

I ran the tutorial in jupyter notebook and see this error locally.

@peisun1115
Copy link
Contributor

The current tutorial is supposed to run https://colab.sandbox.google.com directly by following

https://colab.sandbox.google.com/github/waymo-research/waymo-open-dataset/blob/master/tutorial/tutorial.ipynb

We can provide a tutorial that can run locally sometime soon.

@peisun1115
Copy link
Contributor

We have released 1.0.1

You can follow steps in https://github.com/waymo-research/waymo-open-dataset/blob/master/tutorial/tutorial_local.ipynb
to run the tutorial locally

@peisun1115
Copy link
Contributor

I am closing this. Feel free to reopen if you still have questions.

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

2 participants