Skip to content
This repository was archived by the owner on Jul 2, 2021. It is now read-only.

Accept pathlib.Path type for read_image.#933

Open
sergeant-wizard wants to merge 2 commits into
chainer:masterfrom
sergeant-wizard:accept_pathlib_for_read_image
Open

Accept pathlib.Path type for read_image.#933
sergeant-wizard wants to merge 2 commits into
chainer:masterfrom
sergeant-wizard:accept_pathlib_for_read_image

Conversation

@sergeant-wizard

Copy link
Copy Markdown
Contributor

This patch enables users to pass a pathlib.Path object to read_image, which is currently not possible due to the limitations cv2.imread ( cv2.imread(pathlib.Path('hoge.png')) throws a cryptic error )

@sergeant-wizard

Copy link
Copy Markdown
Contributor Author

Looks like we need to wait for the drop of python 2 support 😭

@Hakuyume

Hakuyume commented Oct 8, 2019

Copy link
Copy Markdown
Member

FYI: Our policy about py2 support is here.

@sergeant-wizard

sergeant-wizard commented Oct 8, 2019

Copy link
Copy Markdown
Contributor Author

Will ChainerCV update to Chainer 7 after its stable release and then drop Py2 support?

@Hakuyume

Hakuyume commented Oct 8, 2019

Copy link
Copy Markdown
Member

After Chainer v7 becomes stable, we can drop py2 support from ChainerCV.

@sergeant-wizard

sergeant-wizard commented Oct 9, 2019 via email

Copy link
Copy Markdown
Contributor Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants