Skip to content

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