question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi @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:open
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
salanizcommented, Feb 6, 2018

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.

1reaction
salanizcommented, Feb 7, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found