Skip to content

Python 2+3 and pip#32

Open
flauted wants to merge 21 commits into
tylin:masterfrom
flauted:python23
Open

Python 2+3 and pip#32
flauted wants to merge 21 commits into
tylin:masterfrom
flauted:python23

Conversation

@flauted

@flauted flauted commented Jul 2, 2018

Copy link
Copy Markdown

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

salaniz commented Jul 11, 2018

Copy link
Copy Markdown

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

flauted commented Jul 24, 2018

Copy link
Copy Markdown
Author

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

@flauted

flauted commented Feb 20, 2019

Copy link
Copy Markdown
Author

@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