Skip to content
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

Merged
merged 6 commits into from
Jun 29, 2021
Merged

Dev image decode eager #5333

merged 6 commits into from
Jun 29, 2021

Conversation

simonJJJ
Copy link
Contributor

不知要不要提供文档,之前dataset相关的module都没写,我也暂时没写

diff_index = np.where(diff != 0)
diff_abs_values = diff[diff_index]

# only green channel has difference of 1
Copy link
Contributor

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

Copy link
Contributor Author

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吗

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

那就换成cv.imread吧,因为这个检查看的有点懵,还是直接allclose易懂

@simonJJJ simonJJJ requested a review from Ldpe2G June 28, 2021 12:59
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot June 29, 2021 01:01
@oneflow-ci-bot oneflow-ci-bot self-requested a review June 29, 2021 01:15
@oneflow-ci-bot oneflow-ci-bot merged commit 11ece39 into master Jun 29, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the dev_image_decode_eager branch June 29, 2021 01:58
@oneflow-ci-bot oneflow-ci-bot removed their request for review June 29, 2021 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants