Closed fgraffitti-cyberhawk closed 1 year ago
Hello, I am facing the same problem. Did you solve yours, please?
Thank you
Same here! Any news about it?
Hi @fgraffitti-cyberhawk ,
Could you please check the recently released documentation in official Model Garden for Object detection API Tutorial.Please let me know if it helps you to resolve your issue.
Thanks
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.
Closing as stale. Please reopen if you'd like to work on this further.
Just to clarify... This is not solved as the tutorial is just for training via scripts provided. It is not possible to train by building the graph from scratch and fine tune layers you would want to for fine tunnning except for SSD metaarch.
What's more, there are feature extractors in some metaarch that are not trackable objects so that It is not possible to restore them (for example, the fasterrcnn one). I'm currently training my models via scripting similar as what it shows at the tutorial indicated in the previous comment when I work with Tensorflow but I think it is not that flexible for a developer.
Thanks anyways for the collaboration!! Much appreciated.
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/blob/master/research/object_detection/colab_tutorials/eager_few_shot_od_training_tf2_colab.ipynb
2. Describe the bug
When running the tutorial notebook with a different model (e.g. centernet or faster_rcnn) I get the error: RuntimeError: Groundtruth tensor weights has not been provided when I try to train (fine-tune) the model. I noticed that I don't get this error when using the efficientdet architecture, that however has an SSD backbone as the ssd_resnet50 in the original tutorial notebook.
When trying the faster_cnn, I can't even get to the training point, as I get the error:
RuntimeError: Groundtruth tensor boxes has not been provided
when I run the model on the dummy image with the following code:prediction_dict = detection_model.predict(image, shapes)
3. Steps to reproduce
In the linked notebook, replace the code in:
Create model and restore weights for all but last layer
with the following:and the following code:
Select variables in top layers to fine-tune.
with:
4. Expected behavior
I would expect the model to train as in the tutorial case.
5. Additional context
However I get the following error:
6. System information