alievk / npbg

Neural Point-Based Graphics
MIT License
324 stars 51 forks source link

Viewer renders only a triangular half of the texture #31

Closed jadenPete closed 2 years ago

jadenPete commented 2 years ago

Because I possess an AMD GPU rather than an NVIDIA, CUDA-supporting one, I've replaced pytorch with pytorch-directml and offloaded unsupported function calls to the CPU while doing most of the work on the GPU. However, despite having modified no viewer code, it seems to render half of the image in a skewed triangle transposed across the diagonal.

Does anyone know why this is?

NOTE: I used the numpy-based viewer pasted here and my own fork here.

image

seva100 commented 2 years ago

@jadenPete unfortunately, I don't have an AMD GPU to reproduce the issue... The only idea I have is that you can use it to render some funny memes.

jadenPete commented 2 years ago

Update: I committed a sin and ported everything to Windows rather than WSL, which worked.