-
Notifications
You must be signed in to change notification settings - Fork 45.7k
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
Compatibility issues with Python3 in the refactored API #4982
Comments
I am facing similar issue while training: Python3 does not have iteritems() anymore, should use items() instead. |
Another problem related to Python3: replace this: category_name = unicode(category_name, 'utf-8') |
If I run the API with Python2, as per these instructions given in the docs:
I cannot see the training steps progress in my terminal. |
AakashKumarNain, add tf.logging.set_verbosity(tf.logging.INFO) to model_main after the imports. |
Did you meet the problem: |
@fernandorovai I met with the same issue with iteritems(). After changing it to items() there is some other error:
|
@fisheess Your error and a fix has been reported in #4780 |
@sraimund Thanks. It works. |
Closing as this is resolved |
Did you reslove this question? |
I still have this problem. |
I am new to object detection api. What works for me is to make the replacement in "object_detection_evaluation.py" under "x:...\Lib\site-packages\object_detection-0.1-py3.7.egg\object_detection". I don't know the reason, but it also works. |
System information
Describe the problem
With the refactored API, which was done after the Open Image Challenge was hosted on Kaggle, there are too many incompatibilities issues when using the API with Python3. Two of the sample errors that I faced today while trying to run the mobilenet version of
RetinaNet
are:Both the issues are because of the syntax error if you run it with Python3. The first error can be resolved by using the line
reversed(list(zip(output_feature_map_keys, output_feature_maps_list))))
at 225 infeature_map_generators.py
and the second error is because of the fact thatitervalues()
was removed inPython3
Can you please look into all the files once again?
The text was updated successfully, but these errors were encountered: