Closed george14georgiou closed 4 years ago
@george14georgiou
Can you please refer the below tutorial and see if it helps you.Thanks!
I’ve seen this tutorial and run it with my images many times. I understand the variables “valid_context_size” and “context_features”. I don’t understand why the meta architecture cant read them from my tf.Example records. Thank you in advance, George
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: ravikyrammailto:notifications@github.com Sent: Monday, October 12, 2020 3:17 PM To: tensorflow/modelsmailto:models@noreply.github.com Cc: george14georgioumailto:georick14@hotmail.com; Mentionmailto:mention@noreply.github.com Subject: Re: [tensorflow/models] Context RCNN: TypeError: _compute_second_stage_input_feature_maps() missing 2 required positional arguments: 'context_features' and 'valid_context_size' (#9367)
@george14georgiouhttps://github.com/george14georgiou
Can you please refer the below tutorialhttps://notebook.community/tombstone/models/research/object_detection/colab_tutorials/context_rcnn_tutorial and see if it helps you.Thanks!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/tensorflow/models/issues/9367#issuecomment-707084764, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQWRRQQGQRNXR2EVPOQO5M3SKLXWHANCNFSM4SMWU5XA.
I found the problem , it was actually in my config file
I found the problem , it was actually in my config file
can you please let me know what you changed in config file. because i am also facing same issue.
I changed the entire config file with the suggested one: models\research\object_detection\test_data\context_rcnn_camera_trap.config , and updated all the paths.
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: sulata2mailto:notifications@github.com Sent: Wednesday, October 14, 2020 5:30 PM To: tensorflow/modelsmailto:models@noreply.github.com Cc: george14georgioumailto:georick14@hotmail.com; State changemailto:state_change@noreply.github.com Subject: Re: [tensorflow/models] Context RCNN: TypeError: _compute_second_stage_input_feature_maps() missing 2 required positional arguments: 'context_features' and 'valid_context_size' (#9367)
I found the problem , it was actually in my config file
can you please let me know what you changed in config file. because i am also facing same issue.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/tensorflow/models/issues/9367#issuecomment-708441583, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQWRRQTZ7ICCF7COC6SOZADSKWYWTANCNFSM4SMWU5XA.
I changed the entire config file with the suggested one: models\research\object_detection\test_data\context_rcnn_camera_trap.config ,
Thank you for your reply. Did you try with your own custom data or you tried with below test data (having 5 test images ) /content/models/research/object_detection/test_images/snapshot_serengeti/context_rcnn_demo_metadata.json . ?
you followed this link https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/context_rcnn.md#generating-tfrecords-from-a-set-of-images-and-a-coco-cameratraps-style-json ?
I changed the entire config file with the suggested one: models\research\object_detection\test_data\context_rcnn_camera_trap.config , and updated all the paths. Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10 From: sulata2mailto:notifications@github.com Sent: Wednesday, October 14, 2020 5:30 PM To: tensorflow/modelsmailto:models@noreply.github.com Cc: george14georgioumailto:georick14@hotmail.com; State changemailto:state_change@noreply.github.com Subject: Re: [tensorflow/models] Context RCNN: TypeError: _compute_second_stage_input_feature_maps() missing 2 required positional arguments: 'context_features' and 'valid_context_size' (#9367) I found the problem , it was actually in my config file can you please let me know what you changed in config file. because i am also facing same issue. — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub<#9367 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQWRRQTZ7ICCF7COC6SOZADSKWYWTANCNFSM4SMWU5XA.
Thank you for your reply. Did you try with your own custom data or you tried with below test data (having 5 test images ) /content/models/research/object_detection/test_images/snapshot_serengeti/context_rcnn_demo_metadata.json . ?
you followed this link https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/context_rcnn.md#generating-tfrecords-from-a-set-of-images-and-a-coco-cameratraps-style-json ?
I followed the link but with my data . I did a check to see if my json file is legit and it was.. Though when the training comes to an end I have this error :” Value_Error: Please make sure context_features and valide_context_size are in the features” which comes from the context rcnn meta arch
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: sulata2mailto:notifications@github.com Sent: Thursday, October 15, 2020 2:18 PM To: tensorflow/modelsmailto:models@noreply.github.com Cc: george14georgioumailto:georick14@hotmail.com; State changemailto:state_change@noreply.github.com Subject: Re: [tensorflow/models] Context RCNN: TypeError: _compute_second_stage_input_feature_maps() missing 2 required positional arguments: 'context_features' and 'valid_context_size' (#9367)
I changed the entire config file with the suggested one: models\research\object_detection\test_data\context_rcnn_camera_trap.config , and updated all the paths. Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10 From: sulata2mailto:notifications@github.com Sent: Wednesday, October 14, 2020 5:30 PM To: tensorflow/modelsmailto:models@noreply.github.com Cc: george14georgioumailto:georick14@hotmail.com; State changemailto:state_change@noreply.github.com Subject: Re: [tensorflow/models] Context RCNN: TypeError: _compute_second_stage_input_feature_maps() missing 2 required positional arguments: 'context_features' and 'valid_context_size' (#9367https://github.com/tensorflow/models/issues/9367) I found the problem , it was actually in my config file can you please let me know what you changed in config file. because i am also facing same issue. — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub<#9367 (comment)https://github.com/tensorflow/models/issues/9367#issuecomment-708441583>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQWRRQTZ7ICCF7COC6SOZADSKWYWTANCNFSM4SMWU5XA.
Thank you for your reply. Did you try with your own custom data or you tried with below test data (having 5 test images ) /content/models/research/object_detection/test_images/snapshot_serengeti/context_rcnn_demo_metadata.json . ?
you followed this link https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/context_rcnn.md#generating-tfrecords-from-a-set-of-images-and-a-coco-cameratraps-style-json ?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/tensorflow/models/issues/9367#issuecomment-709211640, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQWRRQWLHVAFS3LWNT4AUG3SK3LA5ANCNFSM4SMWU5XA.
I followed the link but with my data . I did a check to see if my json file is legit and it was.. Though when the training comes to an end I have this error :” Value_Error: Please make sure context_features and valide_context_size are in the features” which comes from the context rcnn meta arch Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10 From: sulata2mailto:notifications@github.com Sent: Thursday, October 15, 2020 2:18 PM To: tensorflow/modelsmailto:models@noreply.github.com Cc: george14georgioumailto:georick14@hotmail.com; State changemailto:state_change@noreply.github.com Subject: Re: [tensorflow/models] Context RCNN: TypeError: _compute_second_stage_input_feature_maps() missing 2 required positional arguments: 'context_features' and 'valid_context_size' (#9367) I changed the entire config file with the suggested one: models\research\object_detection\test_data\context_rcnn_camera_trap.config , and updated all the paths. Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10 From: sulata2mailto:notifications@github.com Sent: Wednesday, October 14, 2020 5:30 PM To: tensorflow/modelsmailto:models@noreply.github.com Cc: george14georgioumailto:georick14@hotmail.com; State changemailto:state_change@noreply.github.com Subject: Re: [tensorflow/models] Context RCNN: TypeError: _compute_second_stage_input_feature_maps() missing 2 required positional arguments: 'context_features' and 'valid_context_size' (#9367<#9367>) I found the problem , it was actually in my config file can you please let me know what you changed in config file. because i am also facing same issue. — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub<#9367 (comment)<#9367 (comment)>>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQWRRQTZ7ICCF7COC6SOZADSKWYWTANCNFSM4SMWU5XA. Thank you for your reply. Did you try with your own custom data or you tried with below test data (having 5 test images ) /content/models/research/object_detection/test_images/snapshot_serengeti/context_rcnn_demo_metadata.json . ? you followed this link https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/context_rcnn.md#generating-tfrecords-from-a-set-of-images-and-a-coco-cameratraps-style-json ? — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub<#9367 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQWRRQWLHVAFS3LWNT4AUG3SK3LA5ANCNFSM4SMWU5XA.
even the same error i am getting durring training even though i am using the same config file only. but the issue this conext rcnn accepting only coco cameratrap json format . but json file i got from cvat in coco 1.0 format . what you did to get the correct tfrecord ?
during the training I got the following error:
Please switch to tf.train.create_global_step
Traceback (most recent call last):
File "/content/models/research/object_detection/legacy/train.py", line 186, in
Any idea for the above error. I used tfrecord
Prerequisites
Please answer the following questions for yourself before submitting an issue.
1. The entire URL of the file you are using
https://github.com/tensorflow/models/tree/master/official/... and training via Google Collab
2. Describe the bug
During last training step , i have this error from faster_rcnn_meta_arch.py: TypeError: _compute_second_stage_input_feature_maps() missing 2 required positional arguments: 'context_features' and 'valid_context_size'
3. Steps to reproduce
followed the steps from the link given : https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/context_rcnn.md
4. Expected behavior
I expected to training phase to finish without error
5. Additional context
Include any logs that would be helpful to diagnose the problem.
6. System information