Underwater portrait

Updated Categorized as Workflow Tagged , No Comments on Underwater portrait
Underwater photography

Sink below the surface and you will be free.

All images are generated with Colab notebook included in the Quick Start Guide.

Prompt for underwater portrait

Positive prompt:

underwater photography portrait, dress, [amber heard: emma watson :0.6], floating hair, bubbles, sun light breaking through water surface, by ted grambeau

Negative prompt:

goggles, sun glasses, hand

CFG scale7
Sampling steps20
Image size512×512
Face restorationCodeformer
Sampling methodDPM++ 2M Karas
Recommended GUIAUTOMATIC1111
Structured Stable Diffusion courses
Become a Stable Diffusion Pro step-by-step.

Technical notes

  • F222 model helped to generate body part relations correctly. It has high tendency of generating nudes though. The keyword dress is used to suppress nudes and swimming suits, so that the models are in unusual outfits. I specifically refrained from specifying what kind or color the dress is, so I can get some surprises.
  • Perhaps the scene associates with beaches and swimming, it is quite easy to get swimming goggles and sunglasses. goggles and sunglasses are used in the negative prompt to suppress them.
  • Hands are hard to fix so I used it as negative keyword to suppress it.
  • Sunlight through water surface is used to both generate a stronger lighting effect and make the water surface visible, which is (to me) more visually interesting.
  • keyword blending was used to blend two faces. The transition number needs to be adjusted carefully to get a good blend, and it can be slightly different for each image. The first actress not only sets the initial face, but also anchors the pose and the hair style in a particular way. You can experiment with different ones.
  • Turning on face recovery is usually enough if the face is big enough. If the face is small, a second inpainting step at full resolution is needed.
  • Ted Grambeau is an underwater photographer. I added him in the beginning to entice good aesthetics.

By Andrew

Andrew is an experienced engineer with a specialization in Machine Learning and Artificial Intelligence. He is passionate about programming, art, photography, and education. He has a Ph.D. in engineering.

Leave a comment

Your email address will not be published. Required fields are marked *