Skip to content

Commit

Permalink
Update LoadImageFromFile, Default backend: None. (open-mmlab#303)
Browse files Browse the repository at this point in the history
Co-authored-by: liyinshuo <[email protected]>
  • Loading branch information
Yshuo-Li and liyinshuo authored May 13, 2021
1 parent 94350e3 commit b6316b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmedit/datasets/pipelines/loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class LoadImageFromFile:
`results` dict with name of `f'ori_{key}'`. Default: False.
use_cache (bool): If True, load all images at once. Default: False.
backend (str): The image loading backend type. Options are `cv2`,
`pillow`, and 'turbojpeg'.
`pillow`, and 'turbojpeg'. Default: None.
kwargs (dict): Args for file client.
"""

Expand All @@ -34,7 +34,7 @@ def __init__(self,
channel_order='bgr',
save_original_img=False,
use_cache=False,
backend='cv2',
backend=None,
**kwargs):
self.io_backend = io_backend
self.key = key
Expand Down

0 comments on commit b6316b8

Please sign in to comment.