Defected background when generating with WebGPU 使用WebGPU生成图片背景异常
dedztbh opened this issue · 3 comments
While generating a image with WebGPU, there are large chunks of black space in the background. Provided here are the images generated on Chrome (normal) vs. generated with Safari Teh Preview WebGPU (defective), as well as the noise.
I am using MacBook Pro (Retina, 15-inch, Mid 2014) with NVIDIA GeForce GT 750M.
用WebGPU生成图片时背景会有大块的黑色。上面的图片是chrome生成的(正常)和用WebGPU生成的(不正常)。噪音也已经给出。
我是用的是MacBook Pro (Retina, 15-inch, Mid 2014)。显卡是 NVIDIA GeForce GT 750M。
Thanks for reporting the issue, I will forward it to WebDNN after further investigation.
Since WebGPU is still an experimental feature, I am not sure whether the problem comes from WebGPU itself or the WebDNN framework.
I suspect NaN comes from the batch normalization operation, it seems that NVIDIA GPUs have some precision problems with WebGPU.
As a temporary remedy, we have converted all NaN to 1 in our web demo.
This problem is solved in mil-tokyo/webdnn@8284048