CyberAgentAILab / OpenCOLE

OpenCOLE: Towards Reproducible Automatic Graphic Design Generation [Inoue+, CVPRW2024 (GDUG)]
Apache License 2.0
46 stars 5 forks source link

Renderer input format #6

Open Sudeeksha2308 opened 4 months ago

Sudeeksha2308 commented 4 months ago

I only want to use the Graphic Renderer from your pipeline. How should the typography .json format look like for the inference. Can you please provide more details on what keys should be present in the json file?

bjtuln commented 2 months ago

I have generated examples for your reference: { "angle": [ -9.286449875947982e-15, -9.286449875947982e-15, -9.286449875947982e-15 ], "letter_spacing": [ 25.6, 25.6, 3.4638958368304884e-14 ], "font_size": [ 326.42683781590375, 326.42683781590375, 34.08895371565813 ], "text": [ "HELL", "PRESIDENT", "MEZ" ], "width": [ 0.6967922449111938, 0.6190618732396294, 0.20348270661358175 ], "height": [ 0.31240726236639355, 0.31240726236639355, 0.0324459424470183 ], "left": [ 0.13696749689001025, 0.18654085041546242, 0.39318807335460887 ], "top": [ 0.39554983644343134, 0.39554983644343134, 0.5952026392962482 ], "font": [ 47, 47, 1 ], "color": [ [ 255.0, 255.0, 255.0 ], [ 166.5625, 135.26315789473685, 107.5925925925926 ], [ 237.68965517241378, 207.0, 192.0 ] ], "text_align": [ 2, 2, 2 ], "capitalize": [ 0, 0, 0 ], "line_height": [ 0.9999999999999986, 0.9999999999999986, 0.9999999999999986 ] }