BachiLi / diffvg

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

Convert arc points to torch.float #55

Closed orenkatzir closed 1 year ago

orenkatzir commented 1 year ago

Currently bezier points are calculated to estimate an arc and then converted to tensor via torch.Tensor. However, these points may be at float64 precision, and torch may (and indeed does) convert it to torch.Double generating errors.

BachiLi commented 1 year ago

Thanks!