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

Tensor sizes do not match

mnoemayr opened this issue · comments

@alexandre01 congratulations on your work! I have a question to a tensor problem that I encountered.

When using 'interpolate_icons(icon1, icon2)' on different SVGs (created with Adobe/Rhino3d + preprocessed using preprocess.py + to batch convert SVGs to *.pkl tensors from @matuz-z here: #5), I got the following message:

RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 35 and 32 in dimension 1 at C:\w\1\s\windows\pytorch\aten\src\TH/generic/THTensor.cpp:612

For some SVGs created with Adobe Illustrator this worked and there was no error.

Have I misunderstood something? I would appreciate very much your help!

@mnoemayr can you fix this error?