Sharp blades

2,651 views
Updated Categorized as Workflow Tagged No Comments on Sharp blades
sword on grass produced by stable diffusion image to image

These swords were created using image-to-image. It did require more work but you would get images you would never be able to produce using text-to-image alone.

Beauty is power; a smile is its sword.

John Ray

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

Prompt for sword:

highly detailed pattern ornated fantasy sword with (sharp: 1.2) blade, metallic titanium blade, cross guard, grip with cross pattern, circular pommel, video game, artstation, black background

Prompt for grass:

close view green grass field texture background

CFG scale7
Sampling steps30
Image size768×512
Seed-1
Face restoration(None)
Sampling methodDPM++ 2M Karras
ModelStable Diffusion v1.5
UpscalerR-ESRGAN Anime6B (for sword)
R-ESRGAN (for sword on grass)
GUIAUTOMATIC1111

Technical notes

These images were generated with image-image using techniques described in this article. First started with a black background. Drew the shape of a sword. Then many rounds of image-to-image using the prompt above.

A sword in black background is convenient to cast into different settings. You can use photo editing software such as Photoshop or Gimp. To test how well it works, I generate an equal-sized image of a close-up view of a grass field.

Of course, when overlapping the sword on the grass, it looks unnatural: The light and shadow are not consistent, and the sword was like floating on top of the grass. Let’s do some more image-to-image.

Image-to-image alone didn’t do it. Neither did increasing denoising strength. In the end, I needed to sketch a few grass leaves AND THEN do image-to-image. After playing with the denoising strength, I got some decent ones.

Avatar

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 *