FastMaskRCNN
FastMaskRCNN copied to clipboard
unable to run this project under tf '1.2.0-rc1'.
iter 108: image-id:0355947, time:0.916(sec), regular_loss: 0.202654, total-loss 1.7344(0.0361, 0.4038, 0.008075, 0.6090, 0.6774), instances: 8, batch:(21|100, 12|76, 12|12)
2017-06-16 11:52:03.372505: W tensorflow/core/framework/op_kernel.cc:1165] Invalid argument: Input to reshape is a tensor with 1 values, but the requested shape has 0
[[Node: Reshape = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/gpu:0"](DecodeRaw_1/_555, Reshape/shape)]]
iter 109: image-id:0355904, time:0.278(sec), regular_loss: 0.202653, total-loss 1.7551(0.0260, 0.4771, 0.003275, 0.5715, 0.6772), instances: 2, batch:(2|34, 4|68, 4|4)
Traceback (most recent call last):
File "train/train.py", line 222, in
I can confirm that the issue exists with TF 1.2 and it will go away if you use TF 1.1 instead.
@realwecan I have same error. How can I downgrade tensor version to 1.1 ?
@inspire12 Use virtualenv and install tf1.1
I also met this problem and downgrading TF to 1.1 solves this problem.
Not sure anyone knows why? I guess there might be some API incompatibility?
What was your process for downgrading to TF 1.1? Did you have to completely reinstall FastMaskRCNN?
You just downgrade tensorflow version like this
ex) pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.1.0-cp36-cp36m-linux_x86_64.whl
It will work uninstall and reinstall tensorflow.
This worked for me by
- Move MaskRCNN to another folder
- Uninstall Tensorflow
sudo pip uninstall tensorflow-gpu
- Install Tensorflow 1.1.0 from https://pypi.python.org/pypi/tensorflow-gpu/1.1.0rc0
sudo pip install https://pypi.python.org/packages/ad/70/4ed5a455f0e64b357c844c348e3ad6bc1424ed9fc1b99e7e09d5eebffb12/tensorflow_gpu-1.1.0rc0-cp27-cp27mu-manylinux1_x86_64.whl
- Move the MaskRCNN folder back into the appropriate DIR
Tensorflow 1.3.0 encountered the same problem. Are there anyone who solved this matter?
I have the same problem on tf-1.4. Is there any way to fix this ?
same problem on tf-1.4.1, try to fix it
same problem on tf-1.5
guess what... Same problem on tf-1.10