tensorflow: tf.contrib.image.rotate errors under Windows
Description
Trying to use tf.contrib.image.rotate
produces the error: tensorflow.python.framework.errors_impl.NotFoundError: Op type not registered 'ImageProjectiveTransform'
. This appears to happen on Windows using both CPU and GPU, and does not appear to happen on Linux (Ubuntu 14.0.4, Tensorflow 1.0.1).
Test Case
import tensorflow as tf
images = tf.zeros([2, 2])
rotated_images = tf.contrib.image.rotate(images, 0)
Traceback
Traceback (most recent call last):
File "test.py", line 3, in <module>
rotated_images = tf.contrib.image.rotate(images, 0)
File "C:\Users\tim\didi-car\tf_env\lib\site-packages\tensorflow\contrib\image\python\ops\image_ops.py", line 72, in rotate
angles_to_projective_transforms(angles, image_width, image_height))
File "C:\Users\tim\didi-car\tf_env\lib\site-packages\tensorflow\contrib\image\python\ops\image_ops.py", line 166, in transform
output = gen_image_ops.image_projective_transform(images, transforms)
File "C:\Users\tim\didi-car\tf_env\lib\site-packages\tensorflow\contrib\image\ops\gen_image_ops.py", line 49, in image_projective_transform
transforms=transforms, name=name)
File "C:\Users\tim\didi-car\tf_env\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 768, in apply_op
op_def=op_def)
File "C:\Users\tim\didi-car\tf_env\lib\site-packages\tensorflow\python\framework\ops.py", line 2338, in create_op
set_shapes_for_outputs(ret)
File "C:\Users\tim\didi-car\tf_env\lib\site-packages\tensorflow\python\framework\ops.py", line 1719, in set_shapes_for_outputs
shapes = shape_func(op)
File "C:\Users\tim\didi-car\tf_env\lib\site-packages\tensorflow\python\framework\common_shapes.py", line 610, in call_cpp_shape_fn
debug_python_shape_fn, require_shape_fn)
File "C:\Users\tim\didi-car\tf_env\lib\site-packages\tensorflow\python\framework\common_shapes.py", line 671, in _call_cpp_shape_fn_impl
input_tensors_as_shapes, status)
File "c:\users\tim\anaconda3\Lib\contextlib.py", line 66, in __exit__
next(self.gen)
File "C:\Users\tim\didi-car\tf_env\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 466, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.NotFoundError: Op type not registered 'ImageProjectiveTransform'
System information
- Windows 10 Pro
- TensorFlow 1.1.0 installed via pip into virtual environment
- Python 3.5.1 (Anaconda)
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 16
- Comments: 19 (4 by maintainers)
Commits related to this issue
- [Windows] Include tf.contrib.image ops as part of the Windows build. Fixes #9672. PiperOrigin-RevId: 171098255 — committed to av8ramit/tensorflow by mrry 7 years ago
I have the same problem even with 1.3.0rc0 win7 CPU. tensorflow-1.3.0rc0-cp35-cp35m-win_amd64.whl https://pypi.python.org/packages/44/43/bcacb6d0a1b63bb0e000a5301079dc66f4da842923878b371a63645ee188/tensorflow-1.3.0rc1-cp35-cp35m-win_amd64.whl#md5=95b003c917ce4f535fab12a149a953d1
Jupyter notebook: http://www.anishathalye.com/media/2017/07/25/adversarial.ipynb
NotFoundError: Op type not registered ‘ImageProjectiveTransform’ in binary running on DHUB2362. Make sure the Op and Kernel are registered in the binary running in this process.
Same problem. Did anyone solved it or is there any work around?
I have the same problem . Instead i am trying to apply transformation matrix via contrib.image.transform but it seems to use the same function ‘ImageProjectiveTransform’
The nightly pip packages have this update.
Hello, my work around was to switch to Ubuntu Linux. It took about an hour an 10GB HD space to install VirtualBox on my Windows, and Linux and python and tensorflow, and all the other packages and the rotate operation works. Regards. Tibi