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

detection API for 4 channels objects #2

Open
laupl0082 opened this issue Nov 27, 2017 · 5 comments
Open

detection API for 4 channels objects #2

laupl0082 opened this issue Nov 27, 2017 · 5 comments

Comments

@laupl0082
Copy link

Hi,
first of all, thanks for your work and for sharing it.
I am trying to modify the detection API for 4 channels objects, RGB+Depth.
I followed and modified the files as you suggested, but when I try to start training, I get the following error:

Traceback (most recent call last):
File "/home/xxx/.local/lib/python3.5/site-packages/tensorflow/python/framework/common_shapes.py", line 654, in _call_cpp_shape_fn_impl
input_tensors_as_shapes, status)
File "/home/xxx/anaconda3/lib/python3.5/contextlib.py", line 66, in exit
next(self.gen)
File "/home/xxx/.local/lib/python3.5/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.InvalidArgumentError: Dimensions must be equal, but are 3 and 4 for 'Preprocessor/sub' (op: 'Sub') with input shapes: [1,?,?,3], [1,1,4].

I am working on trying to resolve it and I was wondering if you encountered anything similar and you alredy know what must be modified.
In addition, I would like to know which tensorflow version you used (my guess is not the latest) because, for example, the modification
optional uint32 num_input_channels = 28 [default=3];
in object_detection/protos/faster_rcnn.proto has to be modify to
optional uint32 num_input_channels = 30 [default=3];
since the following
optional HardExampleMiner hard_example_miner = 28;
is present.
So, I would like to understand if my error is due to TF version (new TF requires additional changes) or something else.

BTW, thanks again!

@laupl0082
Copy link
Author

actually [1,1,4] refers to the channel_means in faster_rcnn_resnet_v1_feature_extractor.py, so I think the input tensor is not properly recognized as it should be

@ghost
Copy link

ghost commented Feb 8, 2018

@laupl0082 I have the same issue,
object_detection/protos/faster_rcnn.proto:136:40: Field number 28 has already been used in "object_detection.protos.FasterRcnn" by field "hard_example_miner".

Is this a version specific bug?

How did you tackle the preprocessing error?

@Shiro-LK
Copy link

Shiro-LK commented Jun 5, 2018

change the value to a number which is not in the file. 31 works for me.

@cmbowyer13
Copy link

Make sure you are using the older commit version of TOD

@Falmi
Copy link

Falmi commented Nov 5, 2018

@laupl0082 Did you solved your issue? If you solved it pls tell us the tricks you used. Thanks

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

4 participants