---
title: "2D Asset Generation: AI for Game Development #4"
description: "Stable Diffusion's Image2Image mode can be used as one step in a conventional 2D art workflow rather than a replacement for it: rough hand sketches are fed in, the output is painted over in an image editor, and the result is fed back in."
url: "https://swe.quest/articles/2d-asset-generation-ai-for-game-development-4-01cd732635277696"
canonical: "https://huggingface.co/blog/ml-for-games-4"
source: "Hugging Face"
published: "2023-01-26"
difficulty: "medium"
kind: "How-to"
reading_minutes: 8
tags: ["computer-vision","gaming"]
---

# 2D Asset Generation: AI for Game Development #4

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2023-01-26, 8 min read, How-to. Original: [https://huggingface.co/blog/ml-for-games-4](https://huggingface.co/blog/ml-for-games-4)

## Summary

Stable Diffusion's Image2Image mode can be used as one step in a conventional 2D art workflow rather than a replacement for it: rough hand sketches are fed in, the output is painted over in an image editor, and the result is fed back in. Denoising strength sets how far the output strays from the input. A corn icon was produced in under 10 minutes by starting at 0.8 for exploration and dropping to 0.6 for refinement. A scythe icon was harder because training data skews toward weapons. That kind of bias can be countered with prompt engineering and negative prompts, or with customization techniques such as DreamBooth, textual inversion and LoRA.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Computer vision](https://swe.quest/tags/computer-vision.md) (AI & ML)
- [Games](https://swe.quest/tags/gaming.md) (Domains)

## Prerequisites

- Stable Diffusion setup
- image editing basics

## Keywords

Stable Diffusion, Image2Image, DreamBooth, LoRA, textual inversion, Photoshop

## Related posts

- [Open Preference Dataset for Text-to-Image Generation by the 🤗 Community](https://swe.quest/articles/open-preference-dataset-for-text-to-image-generation-by-the-community-51063f2eca79d4de.md): Hugging Face · 2024-12-09 · Easy · 7 min read · Model training, Computer vision, Evaluation, Open source
  Data is Better Together released an Apache 2.0 text-to-image preference dataset of 10K pairs, with over 30K annotations from more than 250 community members collected in under two weeks.
- [Create an infinite icon library by fine-tuning Stable Diffusion](https://swe.quest/articles/create-an-infinite-icon-library-by-fine-tuning-stable-diffusion-bfc1ceb5caaf1412.md): Modal · 2024-05-21 · Medium · 12 min read · Model training, Computer vision, Inference & serving, Serverless, Python
  Stable Diffusion v1.5 is fully fine-tuned on the ~300-icon Heroicons set to generate new icons in a similar black-and-white line style.
- [Instruction-tuning Stable Diffusion with InstructPix2Pix](https://swe.quest/articles/instruction-tuning-stable-diffusion-with-instructpix2pix-2ba1ff22f8e3f013.md): Hugging Face · 2023-05-23 · Hard · 11 min read · Computer vision, Model training, Machine learning
  Fine-tuning InstructPix2Pix on FLAN-style instruction-prompted datasets teaches Stable Diffusion to follow specific image transformation instructions such as cartoonization and low-level image processing (deraining, denoising, deblurring, low-light enhancement).
- [Stable Diffusion with 🧨 Diffusers](https://swe.quest/articles/stable-diffusion-with-diffusers-03ca8448e680e397.md): Hugging Face · 2022-08-22 · Medium · 15 min read · Computer vision, Inference & serving, Machine learning, Python
  Stable Diffusion is a latent diffusion model that denoises compressed 64×64 latents rather than pixels, combining a VAE, a text-conditioned U-Net with cross-attention, and a frozen CLIP text encoder.
- [How we used evals and inference-time compute scaling to generate beautiful QR codes that actually work](https://swe.quest/articles/how-we-used-evals-and-inference-time-compute-scaling-to-generate-beautiful-qr-92cc5efa8fe78c6a.md): Modal · 2025-07-02 · Medium · 13 min read · Evaluation, Computer vision, Inference & serving, Machine learning
  Generating aesthetic QR codes (QArt codes) with Stable Diffusion and ControlNet often produces images that don't scan, so the team built automated evals: the QReader library for scannability and a community aesthetic predictor.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
