URAE
URAE copied to clipboard
can we use .txt files instead of .json?
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?
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()