Python-3 support
See original GitHub issueHi @ruotianluo ,
I looked at the coco-caption codebase.
It seems that we need some modifications like xrange
-> range
etc., to port the code to Python-3.
So, I’d like to know if you have any plans to port the pycoco
tools to Python-3 so that we can use this current codebase for training models in Python-3?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Status of Python Versions - Python Developer's Guide
Supported Versions#. Dates shown in italic are scheduled and can be adjusted. Branch. Schedule. Status. First release. End of life. Release manager. main....
Read more >Python - endoflife.date
Release Released Security Support
3.11 1 month and 3 weeks ago. (24 Oct 2022) Ends in 4 years and 10 months. (24 Oct 2...
3.10...
Read more >Is there official guide for Python 3.x release lifecycle?
Is there an official guide on how long Python 3.x gets support, backports, etc.? I couldn't find any information about Python release ...
Read more >Python 3 Support - Ansible Documentation
Python 3 Support . Ansible 2.5 and above work with Python 3. Previous to 2.5, using Python 3 was considered a tech preview....
Read more >Welcome! — Supporting Python 3: An in-depth guide
Supporting Python 3 doesn't have to be daunting. This book guides you through the process of adding Python 3 support, from choosing a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have implemented Python 3 support for the coco caption metrics: https://github.com/salaniz/pycocoevalcap
I decided against a PR and in favor of a fork of my own because the pycocotools that come with the original repository have diverged with the newest version present in the coco API repository here: https://github.com/cocodataset/cocoapi
Therefore, I am using the pycocotools from the API repository together with my updated caption evaluation code.
You can have a look at the changes. They are all pretty obvious, except maybe the Meteor one which took me a while to debug. If you have any problems, let me know. Also feel free to make a PR with my changes. I have not tested if my code is backward compatible with Python 2.7.
My repository simply adds Python 3 support, but leaves everything else unchanged. So it is really up to how well the metrics and the tokenizer from the original coco-caption repo generalize to the Chinese language. I do not know if that’s the case.