-
Notifications
You must be signed in to change notification settings - Fork 546
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
base: master
Are you sure you want to change the base?
Conversation
The entire script can be done with the Python standard library, which is better than relying on Unix programs.
This is great, thanks! I would support this PR. My only concern is that this repo uses outdated Therefore, I would also support adding |
@salaniz I have updated to use the version of pycocotools on PyPI, thanks for the feedback! |
@tylin @hao-fang @vrama91 @endernewton is there any chance of merging this? |
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.