mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-23 19:32:23 +00:00
Incorrect output after GPU to GPU inference via VideoFrame and Gray8 models (#10425)
* If the tensor is of gray8 format, we should call the gray8 shader * other check (which resolves to unknown in this case) is incorrectly being compared to constant and not DXGI_FORMAT Co-authored-by: Sheil Kumar <sheilk@microsoft.com>
This commit is contained in:
parent
feae842a7c
commit
2dd5e75ba8
1 changed files with 2 additions and 1 deletions
|
|
@ -483,7 +483,8 @@ void TensorToVideoFrameConverter::ConvertGPUTensorToDX12Texture(
|
|||
PipelineStateCacheFormat formatFrom = PipelineStateCacheFormat::kBGR8;
|
||||
if (tensorDesc.channelType == kImageTensorChannelTypeRGB8) {
|
||||
formatFrom = PipelineStateCacheFormat::kRGB8;
|
||||
} else if (inputDesc.Format == kImageTensorChannelTypeGRAY8) {
|
||||
} else if (inputDesc.Format == DXGI_FORMAT_R8_UNORM ||
|
||||
tensorDesc.channelType == kImageTensorChannelTypeGRAY8) {
|
||||
formatFrom = PipelineStateCacheFormat::kGRAY8;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue