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.

Home Page:https://www.lingosub.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: 'SVGRectangle' object has no attribute 'translate' ---Bug while using own svg file

the-star-sea opened this issue · comments

image

here is my code
svg = SVG.load_svg("292366_sunglasses.svg").normalize().zoom(0.9).canonicalize().simplify_heuristic()

image

I have soleved the problem,just add a to_path() before normalize