Models: Does object detection API has a plan to migrate to python3

Created on 19 Jul 2018  路  10Comments  路  Source: tensorflow/models

I have to use python3 on object detection API for project. But there is many conflicts when I use python3. Does API has a plan to migrate to python3, as python2.7 will not be supported soon?

Most helpful comment

I second the motion to port the Object Detection API to python3!

All 10 comments

I managed to get the object detection API in Python3 by simply using the 2to3 official Python conversor and patching a few parts of the code (I don't remember all but I remember to at least have to manually patch https://github.com/tensorflow/models/blob/master/research/object_detection/utils/config_util.py#L326 ).

It should be pretty straightforward, just run the 2to3 conversor and fix the exceptions that you will be encountering.

4844 someone try to do so without any success, @daavoo could you have a look please?

@TedLLH #4844 tried to covert the entire models/research. I have not tried that, I managed to convert models/research/object_detection which was what I needed. The errors in #4844 are not from the object_detection module

@daavoo i tried with _models/research/object_detection_ and it failed. The error was:

TypeError: Expected float32, got 'Loss/BoxClassifierLoss/localization_loss' of type 'str' instead

which was mentioned #4832 , it seems like I will have to stick with python2 at the moment until they fix the issue......

Nope, even with python2, still does not work and encountered the same error, right here: #4832

@TedLLH You can try my solution at https://github.com/tensorflow/models/issues/4832

hey @daavoo do you mind posting the Python-3 compatible object detection library as a separate repo online so that the open source community can make use of it?

I second the motion to port the Object Detection API to python3!

Can someone try this? Im too busy right now to do it but it seems to work with py3.6!
https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/index.html

Hi There,
We are checking to see if you still need help on this, as this seems to be considerably old issue. Please update this issue with the latest information, code snippet to reproduce your issue and error you are seeing.
If we don't hear from you in the next 7 days, this issue will be closed automatically. If you don't need help on this issue any more, please consider closing this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

25b3nk picture 25b3nk  路  3Comments

jacknlliu picture jacknlliu  路  3Comments

mbenami picture mbenami  路  3Comments

frankkloster picture frankkloster  路  3Comments

sun9700 picture sun9700  路  3Comments