salaniz / pycocoevalcap

Python 3 support for the MS COCO caption evaluation tools
Other
293 stars 82 forks source link

add the platform judge #7

Closed Yudezhi closed 4 years ago

Yudezhi commented 4 years ago

if windows, then change the '\' to '/'. Because the '\' can not be used in the ZipFile to get file info in windows platform.

Yudezhi commented 4 years ago

'\'

salaniz commented 4 years ago

Thank you very much for your contribution. I didn't realize it behaves this way on Windows. I decided to solve this issue slightly differently in 38c2534 so that it should also work on any other OS that has the same problem (in case there is another). Please let me know if there is still any problem for you.

Yudezhi commented 4 years ago

thanks for your reply. and your implementation is more effective