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

read_image's alpha should be 'blend_with_white' as default #931

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chainercv/utils/image/read_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _read_image_pil(file, dtype, color, alpha):
return img.transpose((2, 0, 1))


def read_image(file, dtype=np.float32, color=True, alpha=None):
def read_image(file, dtype=np.float32, color=True, alpha='blend_with_white'):
"""Read an image from a file.

This function reads an image from given file. The image is CHW format and
Expand Down