-
Notifications
You must be signed in to change notification settings - Fork 147
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
Is it possible to retrain you model ? #10
Comments
yes ofcourse. Just use the skripts |
Thank you |
Hi, Thanks so much. |
Hey @uzbhutta, I suggest you should first take a closer look at tensorflows original object detection API. Try to understand how training and inferencing works, which scripts are usable. And after that you take a look at my code and what it does. To give you a short overview: So while training you get several checkpoints in an interval that you also set in the config. And finally when you want to use my api to do inference, then you need to export one of those checkpoint files to a frozen model in the pb format. This frozen model can then be included in my api and Adressen correctly in my config.yml. And another thing: make sure to use my checkpoint files as starting point as my speed hack, the split model + multithreading only works if your model has the exact same layer names as mine. I hope i could clearify some things for you. Cheers |
@gustavz where is your checkpoint file? I trained on my own labeled data with tensorflow's object detection api using your config file located in models/ssd_mobilenet_v11_coco/. After training, I replace the frozen graph in models/ssd_mobilenet_v11_coco/. When do inferencing, there comes an error:
I wonder why my frozen graph has the Node 'Preprocessor/map/TensorArray_2' but your frozen graph does not. |
@David-Lee-1990 My checkpoint file is inside the model dir of ssd_mobilenet: https://github.com/GustavZ/realtime_object_detection/tree/master/models/ssd_mobilenet_v11_coco With this checkpoint it should work, at least it did for my retrainings. I hope i could help you! |
@gustavz I retrained my data using the configue file and the model.ckpt files in your model dir of ssd_mobilenet. But after that, I still encounter the same problem ( Node 'Preprocessor/map/TensorArray_2'). I wonder whether this is caused by the version difference of tensorflow? my tensorflow version is 1.8. |
Yes pretty sure. Try tf 1.4 that’s where I started this project. |
tf 1.4 is not available for training tensorflow's object detection api now for the 'AttributeError: module 'tensorflow.contrib.data' has no attribute 'parallel_interleave'. I tried tf 1.5 to retrain the model, but the result graph still has the node 'Preprocessor/map/TensorArray_2'. |
Hi @gustavz, First of all thanks for your work. It's really great. However I have the same problem :/
I have trained my model with tf 1.8, replaced your configuration and model by mines and tried a run. For information :
|
Ok my bad, i turned off SPLIT_MODEL and it works now. |
Dont use v2.0 |
@AnthonyLabaere Hi, after turning on SPLIT_MODEL, your model works now? ValueError: Node 'Preprocessor/map/TensorArray_2' gone? |
Again: the split_model speed hack will ONLY work with ssd_mobilenet_v1 Models that are exported from the exact same checkpoint that I used and published in /models. I have no insight on this as I am not working with ssd anymore. But if you find a solution you are very welcome to contribute / file a PR. Gustav |
@gustavz ok, thanks! |
@David-Lee-1990 I just succeeded to make it work on my computer (on Windows) and on my raspberry (with some updates) with my model. @gustavz If I find a "real" solution I would make a PR but for now I didn't find anything :/ Ok I will use master i nthe future. |
@AnthonyLabaere is your model trained by tensorflow's object detection api? what do you mean by saying ''Preprocessor/map/TensorArray_2' is gone because this part concerns the GPU'? |
@David-Lee-1990 yes it is trained by tensorflow's object detection api. How do you see that ? With tensorboard ? |
Hi, Split model hack solution is only avaiable in ssd_mobilenet_v1 with 300x300. Set your ssd_mobilenet_v1_coco.config with 300x300 size.
|
@naisy Hi, have you tried this 300*300 config? In fact, my config is set with 300 * 300 all the time, but there is still the error. |
Hi @David-Lee-1990, I check config now. config in master branch was changed.
My own training is here: |
@naisy Thank you for your tips. Problem solved! |
Hi,
I was wondering if there is any method that would let us retrain this model using Pascal voc a notion files and images ???
The text was updated successfully, but these errors were encountered: