BachiLi / diffvg

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

RuntimeError: diffvg not compiled with GPU #61

Open zhenzi0322 opened 1 year ago

zhenzi0322 commented 1 year ago

error:

File "/usr/local/lib/python3.8/dist-packages/diffvg-0.0.1-py3.8-linux-x86_64.egg/pydiffvg/render_pytorch.py", line 366, in forward
    scene = diffvg.Scene(canvas_width, canvas_height,
RuntimeError: diffvg not compiled with GPU
huuquan1994 commented 1 year ago

@zhenzi0322 I think it's been solved in #41 Please re-install with the flag DIFFVG_CUDA=1 For example, when installing using python DIFFVG_CUDA=1 python setup.py install