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

Incorrect output after GPU to GPU inference via VideoFrame and Gray8 models #10425

Merged
merged 2 commits into from
Jan 28, 2022

Conversation

smk2007
Copy link
Member

@smk2007 smk2007 commented Jan 28, 2022

Issue: The detensorization pipeline incorrectly interpreted Gray8 outputs as BGR8 outputs, and so detensorization was calling into incorrect shaders for conversion back from NCHW to NHWC.

Related Issues:
#10410 : [WinML] [C++/WinRT] Empty output after GPU to GPU inference via VideoFrame
Models which produce 1 channel (Gray8) format outputs fail to produce correct output when binding output VideoFrames that are D3D11 backed surfaces.

Fix: When the output tensor is marked as Gray8, honor the format (which calls the appropriate shader later on).

ryanlai2
ryanlai2 previously approved these changes Jan 28, 2022
…eing compared to constant and not DXGI_FORMAT
@smk2007 smk2007 merged commit 2dd5e75 into master Jan 28, 2022
@smk2007 smk2007 deleted the user/sheilk/fix-grayscale-gpu-binding branch January 28, 2022 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants