-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Faster RCNN - InvalidArgumentError: Value for attr 'N' of 0 must be at least minimum 2 #22
Comments
I also am getting this issue. Looks like the network predicts all classes to be the zeroth class. So network is not predicting anything. So, in _get_bboxes_single() it first runs which produces an array of zeros then:
so keep is of length zero and eventually we try to fun tf.concat on an array of length zero which produces the error. I am just trying to overfit from a randomly initialized network, since I cannot download the weights (drive link is dead and I cannot download from baidu). Perhaps the network is behaving correctly? It has just convered to predict nothing, however it manifests in a corner case that is not caught by the code (ie no class proposals at all) |
I have downloaded the weights and have the same behaviour. |
Ah interesting, so it is predicting nothing even when you have trained weights? I wonder if you could possibly share the weights? I just tried for a couple of hours to try and get a Baidu account but without Chinese phone number it seems impossible :( |
I'll try to share it somehow today. In fact it did predict something if you don't train it again and try it on some example, it is during the training that we got some gradients error, and after that the network can't "recover" (I'm sorry for the lack of explanation, It's been a 'long' time since I tried it) |
Thanks that explanation makes sense. At least a good place for me to start debugging anyway :) That would be really awesome if you could. |
Hi, have you solved the problem? I am also stopped here. |
我遇到了这个问题? OpKernel 'ConcatV2' has constraint on attr 'T' not in NodeDef '[N=0, Tidx=DT_INT32]', KernelDef: 'op: "ConcatV2" device_type: "GPU" constraint { name: "T" allowed_values { list { type: DT_UINT64 } } } host_memory_arg: "axis"' [Op:ConcatV2] name: concat Call arguments received: |
when i run train_model.py |
hello, running with no change in code got me an error in inspect_model notebook,
this line:
detections_list = model.bbox_head.get_bboxes(
rcnn_probs_list, rcnn_deltas_list, rois_list, batch_metas)
got this error:
InvalidArgumentError: Value for attr 'N' of 0 must be at least minimum 2
; NodeDef: {{node ConcatV2}}; Op<name=ConcatV2; signature=values:N*T, axis:Tidx -> output:T; attr=N:int,min=2; attr=T:type; attr=Tidx:type,default=DT_INT32,allowed=[DT_INT32, DT_INT64]> [Op:ConcatV2] name: concat
using python 3.7 and tf 2.0.0-beta1
The text was updated successfully, but these errors were encountered: