alexandre01 / deepsvg

[NeurIPS 2020] Official code for the paper "DeepSVG: A Hierarchical Generative Network for Vector Graphics Animation". Includes a PyTorch library for deep learning with SVG data.
https://www.reshot.ai
MIT License
981 stars 99 forks source link

SVG.from_tensor() #21

Open myfeet2cold opened 3 years ago

myfeet2cold commented 3 years ago

Hello! I'm trying to get a svg file from tensor by using your method from_tensor() in deepsvg.svglib.svg, but as I open the svg file exported, there is nothing displayed, it's just all white in the Chrome. I don`t understand the reason. Thank you!

orgicus commented 2 years ago

I'm not sure if you're experiencing the same issue I am, but I've noticed when loading my own svg which had no fill and a black stroke that in the jupyter notebooks it appeared a white box. However, using the Inspect Element features of browser's developer tools I could highlight the svg element within the jupyter cell result and the svg element indeed contained the expected paths.

Could this be happening in your case as well ?