SoulCanvas: A Gentle Companion for Creative Healing

Track: General Track

Inspiration

More than 300 million people live with depression, yet fewer than one in four can reach adequate support, especially at 3 AM. When I was diagnosed with bipolar disorder in middle school, my school counsellor's unwavering, gentle presence helped me recover. SoulCanvas is my humble attempt to offer a little of that presence to anyone, at any hour, through Expressive Arts Therapy: healing by talking and by creating.

What It Does

  • Counselling conversations: a fine-tuned bilingual (Chinese/English) counselling language model that listens, validates feelings, and gently guides creative exercises, with natural speech through Qwen3-TTS.
  • Companion creation: users design their own supportive figure in any style, from anime to photorealistic, which is itself a recognized therapeutic exercise.
  • Creative studio: text-to-image, photo-to-anime style transfer, manga and comic generation, virtual try-on, object removal, multi-subject scenes, image fusion, colorization, and character-consistent video.

How We Built It

Stack: Python, PyTorch, Diffusers, and Gradio, running SDXL, FLUX.1-Kontext, Wan2.2, and CogVideoX-5b with full NVIDIA CUDA compatibility.

Architecture: more than ten features across six model classes share a single DPSModel base class. Models load only when needed and are cleanly reset when the user switches base models, which keeps memory low and lets new features be added without disturbing existing ones.

What Is New

The visual engine is built upon our research, which we were grateful to have accepted at CVPR 2026 (SyntheticManga: Training-Free Manga Generation with Phased Diffusion).

How an AI draws. An image generator begins with something like TV static and gradually cleans it up over roughly two dozen steps until a picture appears. Along the way, two small but meaningful difficulties can arise. A user's character may slowly drift, so that by the final step their companion no longer quite resembles the one they designed; and details borrowed from a reference image can leave visible seams, a little like a sticker on a photograph. As a running example, let us imagine Mia, a user's silver-haired companion, being drawn into a new manga panel.

A simple observation: different steps do different work. The middle steps tend to sketch the overall picture (pose, face, layout), while the final steps polish fine details (hair, eyes, fabric). Building gratefully on methods that guide every step in the same way, we explored offering each stage the particular help it seems to need, without any additional training:

  1. Stage 1, sketching: a gentle cruise control for identity. At each middle step, we estimate how far the image may be drifting from the user's character and pass that measure, \(d(t)\), to a PID controller, the familiar tool that helps cars hold a steady speed and drones stay level in the wind: $$u(t) = 1 + K_P\,\text{(drift now)} + K_I\,\text{(drift so far)} + K_D\,\text{(drift trend)}$$ The drift is estimated by comparing the model's predictions for the half-finished image \(z_t\) under the new prompt and under Mia's reference: $$d(t) = \big|\epsilon_\theta(z_t, t, C_{\text{new}}) - \epsilon_\theta(z^{\text{ref}}_t, t, C_{\text{ref}})\big|_1$$ If her silver hair begins to turn brown, \(d(t)\) rises, and the image is softly guided back toward her grey hair: $$z_t \leftarrow \big(1-\alpha(t)\,u(t)\big)\,z_t + \alpha(t)\,u(t)\,z^{\text{ref}}_t$$ The controller responds promptly when drift appears, patiently when it lingers, and eases off as it fades, which helps to avoid over-correction, which often leads to a rigid, pasted-on look in the final generated image.

  2. Stage 2, polishing: the part we found most rewarding to develop. Imagine a rubber sheet pinned down at a few points: the rest of the sheet naturally settles into the smoothest shape it can, without creases. This is described by Laplace's equation, and a classical result in mathematics, the maximum principle, tells us that such a shape has no bumps or seams between the pins. We therefore "pin" the most distinctive features of the user's character and allow the remaining details to settle smoothly around them, so that the blending is supported by a well-established theorem rather than by trial and error. Concretely, the pins \(M\) are the top \(k\%\) reference features by strength \(s = |F_{\text{ref}}|_2\) (for Mia, her overall most prominent traits like clothings and body shape). In each round, every unpinned point takes the average of its four neighbours, and in the end of the round the pins are then gently restored, so they stay in place: $$F^{(k+1)}_{i,j} = \tfrac{1}{4}\big(F^{(k)}_{i-1,j} + F^{(k)}_{i+1,j} + F^{(k)}_{i,j-1} + F^{(k)}_{i,j+1}\big)$$ $$F^{(k+1)} \leftarrow M \odot F_{\text{ref}} + (1 - M) \odot F^{(k+1)}$$ Solving this exactly would be slow (\(O(n^2)\)), so we were glad to find that about fifteen rounds of this parallel averaging on the GPU are enough, adding roughly 1.6% to generation time.

  3. Stage 3, letting go. For the final few steps, we step aside so that lighting and texture can settle naturally. We have come to feel that thoughtful guidance includes knowing when to stop.

One solver, many features. We were happily surprised to find that the same solver can support many features, needing only a different choice of which points are pinned. For virtual try-on, everything except the clothing is pinned; for group scenes, each person's centre and the distant background are pinned, so their edges can blend gently together; and for photo-to-anime style transfer, the composition is pinned while the art style is free to settle.

From pictures to video. For video, we add time as a third direction, so that each point also averages with the same spot in the previous and next frames. For frame \(f\): $$F_{f,i,j} \leftarrow \tfrac{1}{6}\big(F_{f-1,i,j} + F_{f+1,i,j} + F_{f,i-1,j} + F_{f,i+1,j} + F_{f,i,j-1} + F_{f,i,j+1}\big)$$ In this way, the same smoothness extends across time, which helps faces remain steady from frame to frame. With some care, the approach also adapts to FLUX.1 Kontext, a newer and quite different model design, with almost no additional memory.

Beyond images. We were curious whether the same idea might help a neural network learn. On MNIST, a well-known set of handwritten digits, the PID controller adjusts the learning rate from the training loss, and the rubber-sheet idea steadies weights that have settled. Each part, and both together most of all, improved loss and accuracy over plain gradient descent, a small but encouraging sign.

We were grateful to find that SoulCanvas generates an image in about 3.65 seconds on under 9 GB of GPU memory, so it can run on a consumer 12 GB card. Alongside respected systems we have learned a great deal from, including FLUX.2, Qwen-Image-Edit, MS-Diffusion, and OmniGen, it showed encouraging results in our evaluation, such as an improvement of around 52% in identity similarity (DreamSim) for multi-subject scenes, and an average rating of 4.8 out of 5 from 50 kind volunteers in a blinded study.

What Is Finished

The complete journey works end to end: chatting with the companion, hearing it speak, designing its appearance, and creating comics, outfits, or short videos together. Every listed feature works in the current Gradio app.

Challenges

  • Generality: finding one principled framework for manga, inpainting, composition, and video took many failed attempts, each one instructive.
  • Speed: a naive Laplace solver would be far too slow for live use; running parallel Jacobi iterations on the compressed latent grid made it practical.
  • Working solo: building the research, fine-tuning, and interface alone required careful prioritization and a modular design from the first day.

What We Learned

The most helpful ideas come from asking what different problems share. In technology and in healing alike, gentle consistency matters more than perfection.

What's Next

SoulCanvas will never replace therapists; we simply hope to offer comfort between sessions. Next, we plan a clinical pilot with university counselling centres (measured with PHQ-9 and GAD-7), an on-device mobile app, a consent-based therapist dashboard, and lightweight versions for underserved communities.

Built With

  • cogvideox
  • flux-kontext
  • qwen3-tts
  • sdxl
  • wan2.2
Share this project:

Updates

Submission history