-
Notifications
You must be signed in to change notification settings - Fork 825
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
Dev image decode eager #5333
Dev image decode eager #5333
Conversation
diff_index = np.where(diff != 0) | ||
diff_abs_values = diff[diff_index] | ||
|
||
# only green channel has difference of 1 |
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.
为什么 green 会差1,和 用 Image有关系吗,用 opencv 呢,我看 image_decode_kernel 的实现也是用 opencv
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.
是的,是Image和opencv的差异,我测试了用cv2.imread, 和image_decode的结果是完全一样的,要改成cv2.imread吗
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.
那就换成cv.imread吧,因为这个检查看的有点懵,还是直接allclose易懂
不知要不要提供文档,之前dataset相关的module都没写,我也暂时没写