BachiLi / diffvg

Differentiable Vector Graphics Rasterization
https://people.csail.mit.edu/tzumao/diffvg/
Apache License 2.0
933 stars 156 forks source link

CUDA Runtime Error: operation not supported at /data/home/username/diffvg/scene.cpp:35 #62

Open Jugg1er opened 1 year ago

Jugg1er commented 1 year ago

I ran DiffVG in my project and I got an error with only one line of message: CUDA Runtime Error: operation not supported at /data/home/username/diffvg/scene.cpp:35

Here's my CUDA info returned by command nvcc -V: nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2020 NVIDIA Corporation Built on Wed_Jul_22_19:09:09_PDT_2020 Cuda compilation tools, release 11.0, V11.0.221 Build cuda_11.0_bu.TC445_37.28845127_0

ludysama commented 1 year ago

最好仿着app里的例子来写,目前我用着只有直接优化可学习的坐标是能gpu反传梯度的,如果这个坐标由网络得到,就会报错,只能用.cpu()操作先迁到cpu上才行。 你可以试试

syguan96 commented 8 months ago

Hi @Jugg1er , have you solved this problem?