Skip to content
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

Python 2+3 and pip #32

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

Python 2+3 and pip #32

wants to merge 21 commits into from

Conversation

flauted
Copy link

@flauted flauted commented Jul 2, 2018

fixes #27
This PR (1) sets up Python 3 compatibility, and (2) a setup.py so that this repo can be pip installed locally.

I cloned tylin/coco-caption. Then I manually merged with salaniz/pycocoevalcap to get a working version with Python 3. Last, I went back and added support for Python 2. I verified that the ipynb returns the same scores on both Pythons. (Do note the images/captions with low CIDErs are different - Python 2 gives a train image still, Python 3 gives a man on a bicycle. I would expect the difference is due to dictionary key ordering behavior changes in Python 3.6.)

I would love to see coco-caption added to PyPI, but I leave that to the original authors.

@salaniz
Copy link

salaniz commented Jul 11, 2018

This is great, thanks! I would support this PR.

My only concern is that this repo uses outdated pycocotools (current version: https://github.com/cocodataset/cocoapi).
But since the package is on PyPI, it can be easily installed with pip install pycocotools

Therefore, I would also support adding pycocoevalcap to PyPI (stand-alone, with pycocotools dependency).

@flauted
Copy link
Author

flauted commented Jul 24, 2018

@salaniz I have updated to use the version of pycocotools on PyPI, thanks for the feedback!

@flauted
Copy link
Author

flauted commented Feb 20, 2019

@tylin @hao-fang @vrama91 @endernewton is there any chance of merging this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python-3.x support
2 participants