Refining AI Image Outputs

Enhancing and Refining AI-Generated Images

Welcome to the polishing phase of AI image creation! While AI tools are incredibly powerful, they are rarely perfect on the first try. You will often encounter specific "hallucinations" or errors that require a human touch to fix. Common problems include:

  • Incorrect Visual Style: The image doesn't match the intended mood or aesthetic.
  • Presence of Extra Detail: AI adds "hallucinated" objects, extra limbs, or unnecessary clutter.
  • Absence of Important Detail: The AI ignores a core part of your prompt.
  • Mistakes in Small Details: Glitches in textures, eyes, or hands.
  • Garbled Text and Signs: Modern AI can render legible words but struggles to use it properly within the image.

Example: The Struggle with Texts and Specificity

Imagine you want to create an educational poster. You ask the AI for: "An alphabet where every letter is associated with an animal."

We ran this prompt with an old gpt4-o model. Look at these funny mistakes it made. While all the words are spelled correctly, the word-letter-animal association is poor. Could you find all the mistakes?

Of course, newer versions of the model will make less mistakes. However, they will still do them from time to time, so be careful.

Prompt Recommendations for Text Issues:

  • Isolate the Task: Instead of asking for a whole alphabet, generate one letter at a time and then combine them in another tool.
  • Use Post-Processing: Often, it is faster to generate the image without text and add the correct text later using a design tool like Canva or Photoshop.

Example: Other texts

While AI gets better and better with text on images, especially the English text, it still can struggle with other types of signs, symbols and notation. Here are more examples:

Math formulas

You don't need to know math to spot errors and problem on this generated math textbook:

Road sign

This road sign is clearly not a correct US road sign.

Musical score generation

Even if you don't know any of the music theory, you can clearly see that something is wrong with some symbols on this image of a musical score. And if you do, you can notice that the melody, grouping and the whole score in general does not make sense.

To sum up: AI is a powerful tool, but has limitations. Be aware of them when using it.

Sign up

Join the 1M+ learners on CodeSignal

Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal