Closed
Bug 1941985
Opened 10 months ago
Closed 7 months ago
[WebGPU] https://huggingface.co/spaces/webml-community/remove-background-webgpu is not working as expected
Categories
(Core :: Graphics: WebGPU, defect)
Core
Graphics: WebGPU
Tracking
()
RESOLVED
FIXED
People
(Reporter: mayankleoboy1, Unassigned)
References
(Blocks 1 open bug, )
Details
Attachments
(2 files)
Go to https://huggingface.co/spaces/webml-community/remove-background-webgpu
Input the attached image
Click process.
Compare this with Chrome
AR:
The generated image is very different in Nightly compared to Chrome and looks incorrect. The image generated by Chrome looks correct (i.e. with hte background removed).
| Reporter | ||
Comment 1•10 months ago
|
||
Comment 2•10 months ago
|
||
When clicking the Process button in the linked page, I get the two distinct shader compilation issues in the console:
WebGPU compilation info for shader module "Resize" (1 error(s), 0 warning(s), 0 info)
Shader validation error: Function [5] 'getInputValue' is invalid
┌─ Resize:63:5
│
63 │ ╭ fn getInputValue(batch: u32, channel: u32, row: u32, col: u32) -> f32 {
64 │ │ var input_indices: vec4<u32>;
65 │ │ input_indices[2]=max(0, min(row, 21 - 1));;
│ │ ^^^ naga::Expression [8]
66 │ │ input_indices[3]=max(0, min(col, 16 - 1));;
· │
70 │ │
71 │ │ return get_inputByIndices(input_indices);
│ ╰───────────────────────────────────────────────^ naga::Function [5]
│
= Expression [8] is invalid
= Argument [1] to Min as expression [7] has an invalid type.
Shader validation error: Entry point main at Compute is invalid
┌─ InstanceNormComputeChannelScaleShift:24:30
│
24 │ for (var i: u32 = 0; i < min(64, uniforms.H); i++) {
│ ^^^ naga::Expression [34]
│
= Expression [34] is invalid
= Argument [1] to Min as expression [33] has an invalid type.
This is bug 1829879.
Updated•8 months ago
|
See Also: → https://github.com/gfx-rs/wgpu/issues/6443
Comment 3•7 months ago
|
||
This works now.
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•