Actually, wait… I’ve created a file with the format given under “Image Captioning” on the doc page, but I’m hitting an error when running train_text_to_image.py
:
Exception has occurred: ArrowInvalid
JSON parse error: Missing a name for object member. in row 0
Obviously something is wrong, but I’m not sure what…
I have a data folder with all my png files and my metadata.jsonl
file, formatted as:
{"file_name": "something_1.png", "text": ["caption_1", "caption_2", ..., "caption_n"]}
{"file_name": "something_2.png", "text": ["caption_1", "caption_2", ..., "caption_n"]}
...
{"file_name": "something_n.png", "text": ["caption_1", "caption_2", ..., "caption_n"]}
What am I not understanding here… ?