URAE icon indicating copy to clipboard operation
URAE copied to clipboard

can we use .txt files instead of .json?

Open CodeAlexx opened this issue 9 months ago • 1 comments

i have many high res pictures and they have .png/.txt pairs. can i use those instead of .json? if not, what is the format of the .json?

CodeAlexx avatar Mar 26 '25 03:03 CodeAlexx

Hi @CodeAlexx ,

If you want to use the codes directly, you have to use .json. The .json file for each image is like:

{"prompt": "dog"}

or

{"prompt": "dog", "generated_prompt": "a white dog."}

Also make sure the .json file has the same name as the corresponding .png file, e.g., image_0.json and image_0.png.

Alternatively, you can change the code in this line to:

f.readline()

Huage001 avatar Mar 26 '25 07:03 Huage001