-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Make vision datasets return PIL.Image as default #28264
Conversation
Thanks for your contribution! |
backend(str, optional): Specifies which type of image be returned: | ||
PIL.Image or numpy.ndarray. Should be one of {'pil', 'cv2'}. | ||
If this option is not set, will get backend from ``paddle.vsion.get_image_backend`` , | ||
default backend is 'pil'. Default: None. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个表述有点怪,是不是直接default值设置为pil就好
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个默认值为None,是用户可以不用管的意思,同时建立和get_image_backend的联系。直接设置为'pil',达不到这样的意思。可以帮忙看看英文表述如何更准确一些
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
New features
PR changes
APIs
Describe
Make vision datasets return PIL.Image as default