CyberAgentAILab / OpenCOLE

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

Issue in renderer. #17

Open floppycracken opened 5 days ago

floppycracken commented 5 days ago

When I run the code for the renderer I get this error: ValueError: 'textElement' is not in list The error occurs in the file crello.py file in line 137. The same code used to work a few months back, I wanted to know if something has been changed in the crello dataset since then which may be cause of the error. Thank You

naoto0804 commented 4 days ago

Thank you for reporting the errors! Crello dataset has been updated to v5.0.0, but this codebase assumes v4.0.0. Please load the dataset as follows:

import datasets
dataset = datasets.load_dataset("cyberagent/crello", revision="4.0.0")

I will force the codebase to use v4.0.0. in the near future.

floppycracken commented 4 days ago

Thank you for your quick response, this worked. Also, I had another question, can the text be rendered with a transparent canvas? I want a separate text layer on its own.