Showing posts with label ai art. Show all posts
Showing posts with label ai art. Show all posts

Saturday, November 14, 2026

Revisiting the Mountainous Landscape

 kw: generated art, photo essays, art generation, AI art, experiments

A few days ago I posted about the first image I generated using DALL•E 2, four years ago, and the way the most recent art engines responded to the same prompt. I noticed that the four images from November 2022 were quite diverse, while the various sets of four images from the newer software tended to be more similar to one another. I did a test of the internal diversity of one of those engines, which I'll discuss below, but first, my favorite among them:


This image and its three siblings were produced by the Seedream 5.5 model (what I call an engine). (See Coda at the end)

Here is a montage of the 16 images produced four days ago:


From top to bottom, the engines (also identified in brief in the file names) were

  • Nano Banana 2.1
  • Seedream 5.5
  • GPT Image 2.6 Flare
  • GPT Image 2.6 Sunburst

When I was making the images I was immediately struck by the similarity of all those produced by GPT Image 2.6: Deciduous trees at the left, a river from near-center to lower right, a range of mountains dominated by one peak, great similarity of cloud styles, and the setting sun either in the image or just outside the frame. Secondly, the four Nano Banana 2.1 images resemble one another nearly as much: masses of trees both left and right, a river from near center more directly toward the viewer, similarity of cloud styles, and upon close examination, one or two people in each image in the middle ground toward one side; however, the mountains are more diverse from image to image, and one image has a nice set of sunbeams.

The Seedream 5.5 images are not so obviously similar: the trees vary more in size and location, the water features are more diverse, the clouds vary more, but the mountains are also single-peak dominated in three of the four images.

Some of the art engines I used in the past had the option to set the Seed, or to leave it up to the software. The Seed is used in a random-number generator to produce the initial spate of noise, which is then run many times (20 to 50) through a "denoising" algorithm until it settles on the final image. What is not stated in the "help" text is that the Seed also affects the placement of elements of the image, and perhaps the identity of some of them. Thus, when I would set the Seed to, for example 142857 (which is 999,999/7), a specific prompt would always yield exactly the same image. However, when the prompt is changed, even a little, but the Seed is the same, a different image is produced. By experimentation I found that if I set the seed to 142857 and asked for four results (four "generations"), the actual Seeds used would go in sequence: 142857, 142858, 142859, 142860. One of the older engines, no longer available, would helpfully include the Seed in the file name.

From the notes above I conclude that the engines I used to produce these images vary in the amount of influence the Seed has on the contents and arrangement of elements in the final images. Noting that Seedream 5.5 produces images with the greatest diversity, at least using such a short prompt, I experimented further. This time I set the number of images to produce at 2, and ran it twice. Here are the preview images; the first pair is on the right, and the second pair is on the left:


I have to say, without really digging into the weeds, that running Seedream 5.5 twice produced about the same level of diversity as running it to produce four images all in one go. My favorite is the fourth image, which is on the left of this montage, and shown at the top of this page. It is the only one with people clearly visible; one other has a few distant dwellings and perhaps very small people in a meadow in the distance. This fourth image also has overall coloration I like better than the others.

I hope to find out more about how an art engine actually composes an image, so that denoising has a target, a conceptual image to denoise towards.

To conclude, I'll supply the other three images full size, and you're free to download them for your own use if you like.




CODA, 8 hours later. It occurred to me to try this with Nano Banana 2.1: Produce two images, wait a bit, and produce two more. The images thus produced were a little different from those produced four days ago, but the overall diversity was still significantly less than the images produced by Seedream 5.5. My advice? Pick the engine to use depending on the amount of variation you prefer.

Thursday, November 12, 2026

A few more early images

 kw: generated art, art generation, AI art, history

Yesterday I compared my first generated image to four images produced using the same prompt, four years later. Here I present four more very early images, without updates this time; maybe I'll get into that later. These were all outpainted from square 1,024 x 1,024 images by DALL•E 2.

1. We had gone to an exhibit of Cezanne's paintings in Philadelphia. Soon after, I prompted thus:

Still Life with apples, pomegranates, and bananas in the style of Paul Cezanne


This does look remarkably like a Cezanne still life. The final image is 1,984 x 1,280 and is a PNG, as are all DALL•E productions. The image above was reduced to 992 x 640 and saved as a JPG. The wallpaper version is 1,984 x 1,116, which cropped out some of the table cloth.

2. I used to read a great deal of science fiction. I still read SciFi, mostly short stories. I wanted a SciFi image of an alien landscape.

Futuristic city on hilly alien planet with violet sky and two moons


Here I outpainted only right and left. The original square had the two ringed moons, and outpainting added a couple more plus a flying saucer. As I discovered over the years, art generators have a hard time realistically depicting moons or nearby planets, pasting them onto the sky rather than showing them as beyond it and usually partly obscured by it. The final image is 2,624 x 1,024 PNG, a wide panorama. This is reduced by half and was saved as a JPG. This time, rather than remove the logo, I put my initials and the date into it: LJV23 in a bold sans-serif typeface. This image is well suited to the panoramic format.

3. I enjoy the deserts of the American southwest, particularly in early winter, the best season for rock collecting.

Desert landscape with mesas and saguaro cactus


This was probably the shortest prompt I used in those first few months. The original outpainted image is a 2,624 x 1,664 PNG file. This version is half the dimensions, saved as a JPG. The wallpaper version is 2,624 x 1,476 cropped from the bottom. I would have prompted ocotillo and cholla cacti to achieve a Mojave Desert look; this is more like Arizona.

4. One more: I like the style of early paintings by Thomas Kinkade (and I'm nearly as fond of his later works). For the prompt I didn't specify an era, however.

A mountain cabin in the style of Thomas Kinkade


I didn't really want the extra cabin at upper right, but it hides the rootlessness of the mountain behind it. The mountain on the left is also nearly rootless. Outpainting is tricky. Image dimensions are 2,432 x 1,664. I didn't produce a smaller version. This was saved full size as a JPG. The wallpaper version is 2,432 x 1,368. As I mentioned, this is more like the artist's earlier work. These days his paintings have a much more luminous appearance.

In the folder stack where I keep nearly everything I generate I have lots of experiments. I want to know ahead of time the limitations of the software so I can get good images with less back-and-forth negotiation, which costs credits.

Thursday, October 08, 2026

Illustrating a favorite hymn

 kw: photo essays, hymns, illustrations, ai art

I know many hymns. I usually have a hymn tune running through my head, which is why I am not to be found wearing earbuds. Certain hymns have such vivid imagery that I get a lovely scene in my mind's eye. I decided to illustrate one of these using the current version of Gemini Flash, which relies on Nano Banana 2 for image generation.

The first stanza and chorus of this hymn are:

Savior, lead me up the mountain,
  Where the Lord alone is seen,
Where we hear the voice from heaven,
  Where the air is pure and clean.
 
Lead me higher up the mountain,
  Give me fellowship with Thee;
In Thy light I see the fountain,
    And the blood it cleanses me.

I first asked Gemini how to properly format a prompt to produce an illustration for a poem or hymn. Following its suggestions I wrote a detailed prompt containing about 220 words. That yielded this image:


Then I began editing. I prompted Gemini to have the couple walking uphill. This was the result:


Now there is an uphill path, but the couple haven't started up it. So I asked for that:


Now we are getting somewhere. I could have requested them to be further up the path, but this is very good as it is. It's time for some finishing touches. 

At this point, the image size is 1376x768, Gemini's default for 16:9 aspect ratio (1.778:1). I make these images to run in a slide show on an HD screen (1920x1080), so the images need to be larger than that. I used the free program Upscayl to double the dimensions to 2752x1536. This is slightly wide, a ratio of 1.792:1. I like exact multiples of 32x18 for the slide show. All further work was done in IrfanView.

  • I first resized to 2741x1530.
  • I cropped a bit to achieve 2720x1530 (85 times 32x18), using a tool in Irfanview's Edit menu called Create Maximized Selection, picking 16:9 as the ratio to use.
  • I added the text of the stanza and chorus, using drawing tools in IrfanView.

This is the final result:


For the file in my slide show, I added a signature; I sign with my name and date and the AI tool used, near a lower corner.

Note: You can click on the images to get the full size versions. The last image is 4 Mpx, midway between HD and 4k.

Tuesday, January 27, 2026

AutoArt folder distribution

 kw: analytical projects, art generation, ai art, statistics, statistical distributions, lognormal, scale free

I began using art generating software in November 2022, when DALL-E2 became available. Since then, I've enjoyed having a series of art generating "engines" available, including numerous engines (called "models") in the aggregators Leonardo AI and OpenArt. As often as I can, I generate images for this blog; in some cases, I download images I find on the Internet. However, my primary artistic pastime is creating images of things and scenes I imagine.

Just in the past few days I was inspired by a heavy snowfall to find short poems about snow, and use them to create wintry images. This image was drawn by Nano Banana Pro, under the Leonardo AI umbrella with "None" as the style; that is, native NB Pro. The aspect ratio was set to 16:9. It displays the entire poem, something NB Pro can do better than any other art engine I have found. The prompt was "Watercolor painting evoked by a poem:", followed by the text of the poem "The First Snow" by Charlotte Zolotow.


The image is particularly evocative in shifting to an exterior view as the window dissolves. I suspect there are a number of images that use this device in the training material for NB Pro.

When I made signed versions of this and several others that were generated in the same session, to be included in a folder for a "screen saver" slide show, I began thinking about the various numbers of different image types I've created in the past three-plus years. Last year I went through my (poorly organized) folder stack of "AutoArt" and reorganized it into 35 categories, each in its own folder. To date, there are 1,472 signed images in 35 folders containing between two and 405 images. My inner statistician began to stir…

The image below shows two analyses of the statistical distribution of the numbers of files in these folders.

Charts like these make it quite evident which statistical treatment is appropriate to a particular set of data. I'll explain what these charts mean and how they were created.

"Scale Free" is a type of power law distribution related to the Pareto distribution. It is easy to analyze, which makes it popular. To analyze a series of numbers graphically in Microsoft Excel:

  • Enter the numbers in column B, starting in cell B2.
  • Put an appropriate header in cell B1
  • Highlight these data (B1:B36 in this case)
  • Sort from largest to smallest, using the Sort & Filter section under Editing in the Ribbon.
  • Enter 1 in cell A2 and 2 in A3.
  • Put a header in cell A1; I usually put "N".
  • Highlight cells A2 and A3.
  • Double-click the fill handle at the lower right of A3. This will fill the rest of the column with numbers in order, as far as the data goes in column B. In this case, we get numbers from 1 to 35.
  • Highlight these two columns to the end of data. In this case, from A1 to B36.
  • In the Ribbon, use Insert and in the Charts section, select the icon showing scattered dots with axes; this is X-Y Chart.
  • The title of the chart is whatever the header text is in B1. Edit as you wish.
  • Double-click one of the axes to open the Format dialog.
  • Click Logarithmic Scale near the bottom of the menu.
  • Click the other axis and also click Logarithmic Scale. This is now a log-log chart.

The result will be similar to the upper chart. Now for the lognormal analysis, beginning with these two columns of numbers:

  • Insert a new column between A and B; this is the new column B.
  • In cell B1 enter a header such as "Prob.". You are going to create a probability axis.
  • In cell B2 enter this formula (where the largest number in column A is 35):

=NORM.S.INV((A2-0.5)/35)

  • Double-click the fill handle at the lower right of A2 to fill the column with the formula.
  • Highlight the data in B and C (B1 to C36 in this case).
  • Use Insert as before to create an X-Y Chart.
  • Edit the chart title.
  • Note that the vertical axis is now centered above the zero. 
  • Assuming the Format dialog is still open, click the horizontal axis.
  • In the middle of the menu in the section "Vertical Axis Crosses", click the bubble at "Axis Value".
  • Enter "-3".
  • Click the vertical axis and click Logarithmic Scale. This is now a log-probability chart.
  • If you want the markers to be a different color, click one of them. The Format Data Series menu appears at the right.
  • Select the icon of a paint bucket pouring paint.
  • Click the Marker tab
  • For both Fill and Border, select the color you want.

This will be similar to the lower chart. For the data I used, the chart shows the points scattered approximately along a straight line. By contrast, in the upper chart there is a definite downward bend. In a log-log chart such a shape is diagnostic that the distribution is not scale free, but is more likely to be lognormal, or even normal (Gaussian). In this case, the second chart shows that lognormal is a good model of the data distribution.

This is an illustration of the Theory of Breakage, formally described by A.N. Kolmogoroff in 1941. When an area is divided (US state or county areas are good examples), the distribution is lognormal. When a sheet of glass is broken, the weights of the pieces also have a lognormal distribution (I've done this experiment). Some recent publications claim that a theory of breakage produces a power law distribution, but this is false. Certain phenomena in nature tend to be normally distributed. The classic example is the height of adult men, or of women (but not both) in a population, such as the residents of a particular town or county. However, most phenomena produce groups of measurements that are lognormally distributed, in which the logarithm of the quantity being measured is distributed as a normal, or Gaussian, curve.

I could go further into this, but this is enough for the purpose of this post.

Thursday, March 06, 2025

OPUS 500

 kw: art generation, ai art, simulated intelligence, milestones

I have been learning how to use art generation programs since November 2022. That is just a little more than two years. Initially DALL•E2 was all that was available. I used it until it went out of service a year later in favor of DALL•E3, which powers the Bing Image Creator. In the first few days using DALL•E2, with lots of experimentation, I produced two images that still please me a lot. One is a still-life "painting" in the style of Cezanne, the other is a "painting" of mountains in the style of the Hudson River School of painters:



Note the color blocks at lower right. That is DALL•E2's "signature". Pictures by DALL•E2 were 1024×1024, and to make them bigger one could Outpaint. I did that a lot. Eventually I began to make images that would be useful as screen wallpaper. I would prepare a large image and then crop it to 1920×1080, or a larger size with a 16×9 aspect ratio, and sign it in one of the lower corners with my name plus "/ Dall-E2", to give credit to both myself and my "commissioned artist".

At the very beginning I also tried out MidJourney and Stable Diffusion, but I wasn't too thrilled by the available toolsets, and SD required Discord, which I don't like to use.

Fast forward a couple of years. Over time I learned of other art generators:

  • PlaygroundAI - I used it for 2-3 weeks during January 2024, but soon came across Playground, which may be related but had a better credit and subscription structure.
  • Playground - I loved the Canvas mode, which also had Outpainting. It was taken out of service in November 2024, the company having decided to concentrate on graphic arts rather than fine art.
  • I had been using Bard in Chrome as an alternative to ChatGPT. When its name was changed to Gemini, it was announced that it could generate art also. At first it would make four images at a time, but then it dropped three and now it only makes one per prompt, and it is always square, but 2048×2048. I've used it since February 2024.
  • I found Leonardo AI in August 2024 and I've been using it since then. After a few months of using the free service, I bought a passel of credits.
  • DreamStudio showed up the most recently, in November 2024. After a couple of months testing the free service, I bought some credits.
  • Lastly, also in November 2024, I found Google Labs' ImageFX, which is free, but they don't keep history. Download what you want to keep right away or it'll vanish. It has some interesting features that I like, but not the rich feature set of DS or Leo AI.

My current "stable" of artists is DALL•E3, DreamStudio, Gemini, ImageFX, and Leonardo AI. All of these except Gemini can make images with various aspect ratios, although in the case of DALL•E3 the only alternative to square is "Resize to 4:3" which is actually nearly 16:9 (1792×1024), and it is a fresh image, similar to the one you "resized", but not a direct expansion of it. 

Recently I checked the folders that contain my "wallpaper" images, and found there were nearly 500. I had decided to try a different kind of image, similar to a piece of art we have that is embroidery on a floral theme. I wrote a few prompts and tried them out with the various art generators. I concluded that Leonardo AI and DALL•E3 worked with these prompts the best. At first I wanted a depiction of one artwork in a horizontal format, but none of the programs offered pictures that filled a 16×9 frame, or nearly so. Leonardo AI prepared a couple of images that featured two pieces side-by-side on a wall, so I began to concentrate on that. This is the prompt that produced the pictures of lilies:

Two pictures, finely detailed embroidery, of lily flowers of various colors and foliage within a pale green mat and dark green frame, mounted next to one another on a white wall



The upper image is of peonies, with a similar prompt but without "various colors". I also wanted an image with different flowers in each frame, and tried a prompt that said something like "peonies" first and "roses" next, but I kept getting peonies everywhere. Then I tried "roses" followed by "peonies", and still got only peonies! It seems that in existing art, peonies are a much more common theme for embroidery than roses. So I wrote a prompt that only mentioned roses, and got some images showing two pieces of art with roses. As I went along I produced wallpaper images from the ones I liked best.

I noticed at this point that I had 499 wallpaper files. I fired up Gimp (a Photoshop "cousin"), copied roses from one image with all roses and pasted them into one with all peonies, to produce my 500th wallpaper:

PS: I know that "opus" mainly refers to musical works, but I have seen it used for other creative products also.

Thursday, February 20, 2025

DreamStudio Style Gallery

 kw: ai experiments, ai art, art generation, styles

I find that strong contrast of elements provides a real test of prompt adherence by an art generating program. This came to light while I was enjoying the Man Cave (Troglodyte) concept, depicting offices, living rooms, kitchens, and so forth inside caves, using the various programs. Generally speaking, Dall-E3, ImageFX, and certain Presets for Leonardo AI produced more pleasing and realistic caves while depicting the "rooms" I prompted for, compared to Gemini and DreamStudio.

I began to investigate the SDXL 1.0 engine in DreamStudio a bit more to see what it takes to induce it to make better caves, choosing it over Gemini because it has more "knobs" I can turn. I decided to first gather a "style book" of the seventeen styles, using a fixed seed (142857, which is 999999/7) and a square aspect ratio. You might find these image montages a useful reference. I grouped them six at a time. The prompt is included in all the file names, right after the Style name and the seed value.

These first six show some commonality: The main desk a little to one side, an opening in the ceiling, and an archway at the back that usually leads deeper into the cave. The number of chairs, the presence of secondary workstations and bookshelves, and the style of flooring are all quite variable. Only the Digital Art style actually has any cave decoration (stalactites). The next six:

The common features seen in the first six are generally present. Fantasy Art style also has stalactites. The Origami style is quite spare, and while a ceiling opening is not seen, the lighting indicates that one is probably present. The last five:

Numbers 16 and 17 are out of order because I neglected to download #16 until after I had downloaded #17, and I have a sequence order of "file date" set in File Explorer. Note that the 3D Model style is the most similar to the Enhance style (#2). The trends seen before continue. Pixel Art style takes a whack at making stalactites.

If I want to make a Troglodyte series using DreamStudio, the best style to use is either Digital Art or Fantasy Art. The other styles mostly produce a cave that looks like the undecorated portions of Mammoth Cave, which resembles a series of long concrete tunnels.

Friday, February 14, 2025

For AI art, word order matters, but less than I expected

 kw: art generation, ai art, experiments, word order, semantics

Continuing my Troglodyte series of generated images, I began rewriting the long prompts I'd been using, putting the main description of the room first, followed by a phrase about the cave, followed by other items and details. I noticed after a while that it has been harder to elicit images with lots of cave decoration (stalactites, etc.). I began to wonder if the elements of a prompt were somehow treated like the ingredients list on a cereal box, in order by quantity (or by importance in this application). For example, here is a prompt I used a year ago for "Cave Dining Room":

A room in a spectacular cave that has many stalactites and stalagmites, with flowstone on the room's walls, fitted out as a grand dining room with a long table and at least twelve chairs, a chandelier over the table, and a buffet stand nearby

This is the prompt I used in the past few days:

A dining room in a spectacular natural cave with stalactites and stalagmites and flowstone, with seating for twenty or more, with buffet to the side and chandeliers from the ceiling, plus a grandfather clock and a large pantry, and the floor is natural stone with a patterned rug under the table

Here are the resulting images, both from Leonardo AI. Note that the settings were not exactly the same, but here my focus is on the difference in the amount of cave decoration.



The upper image is a little more "cavey"; the lower image is the best of a dozen or more attempts to get the feel I wanted. Some of the images had ceilings that looked more like tangled tree roots, others were almost smooth, though rounded and arched.

In some settings Leonardo AI has an option for "AI Enhancement" of the prompt. It also implements the Style and other settings by modifying the prompt internally. I could only get an inkling of the latter phenomenon by saving an image, because about 50 characters of the prompt used are included in the file name. I say "an inkling" because an AI-enhanced prompt balloons to a few hundred characters. In either case, by studying prompt enhancement, I find that enhancement is primarily done by adding adjectives and sometimes adjective-noun groups (such as the phrase "vibrant cinematic photo").

I designed an experiment to see how much word order matters when a prompt consists entirely of nouns:

meadow, mountains, flowers, butterflies, birds

In Leonardo AI's Classic Mode (its other mode is Flow, which I'll say more about in another post), I first used the Flux Schnell model and the Creative style, 16x9 aspect ratio, small image size (1184x672), with a fixed seed of 142857. When I downloaded the image, the file name was

Flux_Schnell_a_surreal_and_vibrant_cinematic_photo_of_meadow_m_0.jpg

Thus, the prompt had been enhanced because of the Creative style. The program also appends a number so it can distinguish repeated uses of a prompt.

To keep to the bare 5-word prompt only I switched the style to None. Here are the two resulting images, full size (1184x672), enhanced prompt above, 5-word prompt below:


The images are very similar, with some interesting differences. The upper (enhanced) one has no birds; of the five birds in the lower (ordinary) one, the two birds at upper left replaced ambiguous-looking butterflies and a butterfly at far left appears to be a bird-butterfly hybrid. The trees are similar, but the mountains have certain differences, and the enhanced image appears more stormy or foggy. Take note of the yellow flower at bottom center. It is one of several persistent elements from image to image, with only one significant variation I'll point out later on.

The next two images have "rotated" prompts, first "mountains, flowers, butterflies, birds, meadow" and then "flowers, butterflies, birds, meadow, mountains".


In each image there are three birds flying in the distance, and in the upper image in particular, a couple of rather ambiguous flying things. You may have noticed that all the butterflies are Monarchs. A significant change from the upper to the lower image is the bokeh (out-of-focus look) in the distance below, whereas the mountains are sharp above. The next two images are from the next two rotated prompts, "butterflies, birds, meadow, mountains, flowers" and "birds, meadow, mountains, flowers, butterflies".


The upper image has no clearly-defined birds. The five butterflies at the top in a cluster are all distorted, having either birdlike aspects or extra wings. The upper image also has out-of-focus mountains and trees, but in the lower image everything is in focus, plus there are added trees to the left. That is all the prompt rotations.

As a further experiment I added a few words to the prompt, and then as a last experiment, added more words to make it a descriptive phrase. The two prompts are:

birds in the foreground, meadow, mountains, flowers, butterflies

birds in the foreground of a mountain meadow with flowers and butterflies


In each image, a single bird is in the foreground, as requested, but not "birds". Nothing is in the sky; all the butterflies are also in the foreground. The big yellow flower has been replaced in the upper image by three smaller flowers. Both images have significant bokeh, in both background and the immediate foreground. The trees and mountains are also a bit more different from the prior six images, moreso than those six differ among themselves.

Note that all of these use the same seed: 142857. It's a favorite number of mine, being the repeating unit of the decimal expansion of 1/7. A couple of times I tested seed consistency by repeating the generation without changing anything. So far as I could tell, the images were pixel-by-pixel identical. So the only thing available to cause differences between the images would be differences in the prompt.

I don't know how a prompt is turned into "tokens", which are numbers that represent conceptual entries in a database of "meanings", as "meanings" might be understood in the context of generative AI. The order that they occur clearly matters, but not by a great deal. Adding directive words, such as "in the foreground" and "glue words", the little articles, conjunctions, and prepositions between the nouns, also made a difference, otherwise the last two images would be identical.

I don't know why some images are in focus throughout, while others have various levels of bokeh in the background and/or immediate foreground.

I have learned a couple of things, and uncovered further mysteries about art generation. The adventure continues!

Saturday, February 08, 2025

Techniques of wallpaper generation

 kw: instruction, ai art, upscaling, wallpaper, screen shows

Introduction

I am a collector. One type of collection is sets of images that make good screen wallpaper. My folders of screen wallpaper images includes masses of flowers, mineral crystals (particularly in masses), selections from Hubble and JWST astrophotographs, waterfall photos, and landscape paintings. Now that I've been experimenting with art generation using various SI (Simulated Intelligence) programs, I have a growing body of work in several genres.

My computer setup has two screens with resolutions of 1920x1080, or standard HD. Anticipating that sometime in the future I may transition to one or two 4K screens (3840x2160 or UHD), when I encounter an image that size or larger I don't reduce its size, but keep it for the future. However, I usually reshape an image by cropping it to a 16:9 aspect ratio. I use the "screen saver" program gPhotoshow to cycle through one or more folders of images I want to display during idle time.

This post is in two parts. Firstly I discuss the production of an image of appropriate size and aspect ratio, beginning with the seven image sizes produced by the five programs I have been using. Secondly I explain how I sign an image to give credit to myself and the program that I used, especially matching the signature size with the image size.

Image Sizes and How to Treat Them

This is a reduced version of an image I produced in my "Troglodyte" series. A troglodyte is a cave dweller. I call my basement library-and-computer-room my Man Cave, though most men who have such a space use it for watching sports. I decided to play with the idea of having an office in a real cave. Eventually I produced more than ten rooms, as though I owned a cave large enough to convert into a sort of mansion, which was dry enough that my furnishings would not mildew.

I was also experimenting with lengthy prompts for this project, but that is less critical just now. I used Leonardo AI, with the style Leonardo Lightning and substyle Creative, and Aspect Ratio set to 16:9, to produce images sized 1368x768 pixels. It didn't take long to find that the ratio was off a bit: 57:32. What's going on?

All art generating programs produce images that are made up of square blocks. In this case, the blocks are 24x24. There are a few ways to get 16:9, or 1.77777…, from 57:32, or 1.78125. However, I am a purist, so I want the vertical dimension to be a multiple of 9, and better yet, I decided to restrict images to multiples of 18 pixels high, and thus, also having horizontal dimension the same multiple of 32.

Considerations Regarding File Locations and Naming

Whatever program I use, when I download the image, it is put in the Downloads folder. Thereafter I do any work on the file, which may be several steps through intermediate files, in the Downloads area. Sometimes I use folders under Downloads to keep things organized.

Whichever program I use, right after I download it I rename the file. I have two ways depending on the length of the prompt.

Short Prompts (less than ~120 characters)

From a recent project: 

IFX 250203-08 Two naturalists and two medium-sized dinosaurs sitting together at a table having tea and croissants, digital art

This image was produced by ImageFX on the date shown (a few days ago), and is the 8th image I made that day using ImageFX. This prompt is 113 characters, a bit longer than usual, but it doesn't make the file name overflow the namespace in the disk's file system.

Long Prompts

I keep a file of long prompts, dated and labeled. The image above has the file name Leo 241108-03 LLightning Creative Prompt 241108-02, Cave Office

This was produced by Leonardo AI using Leonardo Lightning style and Creative substyle; the rest of the file name identifies the prompt.

If I have just one or two files I'm working on, I do so individually. Otherwise I use batch mode.

Convert Files as Needed

All but one of the programs I use produces files that are smaller than 1920x1080. Gemini produces only square images 2048x2048. I'll show how to deal with that later. For all the others I use Upscayl to make the image larger and sharpen it.

One caveat with Upscayl: although it will make a valiant effort with a PNG image, the resulting image is monochrome (gray), so I first convert PNG files to JPG, for which I use IrfanView, also in batch mode if I have more than two images. Furthermore, image files produced by ImageFX have a JPG extension, but they are PNG files. I open them one at a time using IrfanView (it can quickly skip from file to file, so this isn't too time consuming). Before opening a file it asks if I want the extension corrected. I click "Yes" and continue. Then you are ready to convert these to JPG.

DreamStudio also produces PNG files. They need to be converted. The following image shows the IrfanView batch edit screen:


Here are the steps:

  • Select Batch Conversion at top left
  • Select JPG as the output format
  • Select the output folder at middle left (I already made a folder named OutPix under Downloads). Next column:
  • Select the input folder at top right (I already put all the files to be converted into a folder named PNGPix under Downloads).
  • Select PNG as the input format (file type).
  • Highlight all the files and click "Add".
  • Click Start Batch at lower left.

This will convert the files and put them in the folder OutPix, ready for upscaling.

Upscaling

For upscaling an image by 2x, 3x, or 4x I use Upscayl. It has several upscaling models. I usually use FAST REAL-ESRGAN, which takes about ten seconds to convert a ~1K image on my computer. When I want ultimate quality from a highly detailed image, I use REMACRI, which takes about two minutes per image. Upscayl has a batch mode, which works on a folder at a time. 

This is the screen that appears when you set Upscayl to batch mode:


Here are the steps:

  • Step 1, I put the files to upscale into a folder called OutPix that is in the Downloads folder, as noted above. This would include files from programs that produced JPG natively.
  • Step 2, select the model and ratio (2X in this case)
  • Step 3, I choose the Downloads folder. I work in the Downloads folder because files there don't get backed up to OneDrive. That lets me work and then clean up, followed by putting the files I plan to keep in their final folder(s) later.
  • Step 4, click Upscayl to start the process. 

For the 14 files shown, this model ran a little more than two minutes. Had I used REMACRI, I could go get a snack: it would take half an hour.

Image Sizes in Each Program

IrfanView has a wonderful item in its Edit menu: "Create maximized selection (ratio:)" with a caret off to the right. Click that to see available ratios. You can add any ratio you like by using the prior Edit menu item: "Create custom selection...". 

If you have an image, for example, 1920x1200, that you want to crop to 1920x1080 (and there is headroom or footroom to do so), you can click this option, then the caret, then the 16:9 item, and cut lines will appear. You can use the up or down arrows on the keyboard to slide the selection, then CTRL/Y to crop the image. Save with a new name.

Dall-E3

1024x1024 → 1792x1024 (1.75:1=7:4). You initially get four square images. Click an image to work with it. There is a button "Resize" with a "4:3" option. It actually produces an image close to 16:9 but not quite. The image is similar to the square one, but not the same, and it can be quite different.

Process: Upscale by 2X to 3584x2048, then crop to 3584x2016.

DreamStudio

There are two Stable Diffusion models. In either case, there is a setting to modify the pixel count. Only DreamStudio can do this at present.

  • Stable Diffusion v1.6 with 16:9 selected sets the size to 910x512 (1.7773:1=455:256); reset to 896x504, which is (16x9) times 56. Then upscale 3x to 2688x1512.
  • Stable Diffusion XL v1.0 with 16:9 selected sets the size to 1344x768 (1.75:1=7:4); reset to 1344x756, which is (16x9) times 84. Then upscale 2x to 2688x1512.

Gemini

2048x2048. Negotiate by asking for "wide format" and possibly tinkering with the prompt until there is sufficient headroom and/or footroom to crop to 2048x1152, which is (16x9) times 128. No upscaling is needed.

ImageFX

1408x768 (1.833:1=33:18). Upscale 2x to 2816x1536, and then in IrvanView use the Resize function to get 2805x1530 and (using the Edit subfunction) crop to 2720x1530, which is (16x9) times 170.

Leonardo AI

At least one style mode produces a larger size.

  • Most styles produce 1368x768 (1.78125:1=57:32). Upscale 2x to 2736x1536, resize to 2725x1530, crop to 2720x1530.
  • Leonardo Phoenix produces 1472x832 (1.769:1=23:13). Upscale 2x to 2944x1664, and then crop to 2944x1656, which is (16x9) times 184.

There are some other methods one can use. For example, for a Dall-E3 image that is 1792x1024, you could use the Resize function in IrfanView to produce 1920x1097, and then crop it to 1920x1080. The Resize is only by 7%, so it produces an image with a good appearance. You can also crop out a 1920x1080 image from a Gemini image. A lot depends on the image you are working with.

Signing the Image

Style of Signature that I use

Having several different image sizes, it's a bit tricky to add a signature to an artwork that is of a consistent size. I like to use a signature in two or three parts. The more usual two part signature, using my first two initials plus last name, is like this:

OK Myname / Dall-E3 2025

For an image I produced this year using Dall-E3. I use abbreviations for the others:

  • DreamS = DreamStudio
  • Gem = Gemini
  • IFX = ImageFX
  • Leo = Leonardo AI

Sometimes an image is part of a series, such as the Cave (Troglodyte) series. Then I'll use a 3-part signature on two lines, such as:

OK Myname / Dall-E3 2025
Cave Master Bedroom

I set the second line to a smaller type size, typically about 0.7 of the first line.

Size and Placement

Most images have an area near lower left or lower right where a signature can be placed. I use the Paint dialog (F12 key) and select the "A" for text input. The cursor becomes a little plus that shows where the lower left corner of the first line is to go. Using a signature on the right is harder because it's often hard to tell how long the text is going to be. 

The greatly differing image sizes mean it is best to use corresponding type sizes. After some experimentation, I settled on using this basis: 14 points for an image 1988 pixels wide, which is suitable for images with horizontal dimensions from 1920 to 2194. This grows to 28 points for the range 3840 to 4114. This table shows the sizes I use:


This is a picture because tables are hard to produce in Blogger. The Paint/text tool's list of type sizes is all even numbers, but you can type in an odd number. All I can say is, experiment with it to find out a procedure that you like, or can live with.

Color

I looked at paintings by several artists. Some use a black signature, but many use a color from elsewhere in the painting that contrasts with the area of the signature. I like this method. The Paint tool has plenty of flexibility in this regard.

Font

Many years ago I designed a few fonts for a project. One of these is a strongly-weighted Sans Serif font that I like, so that's what I use. The Paint/text menu lets you select any installed font.

This isn't wholly comprehensive, but I hope it is enough to get you started turning generated art projects into wallpaper for your computer screen(s). Also, whatever art you produce, if it's for the public to see, signing it is a good idea.


Monday, February 03, 2025

AI can't tell time

 kw: ai experiments, prompts, ai art, failures

In various corners of the universe of knowledge, SI (Simulated Intelligence) is manifestly ignorant. This can be seen in certain everyday tasks, such as reading (or drawing) an analog clock. I heard mention that most advertising for clocks and watches shows the hands set to 10:10 because ad writers think that has the most attractive appearance. Since SI has no knowledge of what clocks even are, or how the hands show time, they are dependent on their training image sets, which are only useful if there is text accompanying the images. I decided to see how various art generators would handle this prompt:

An image of a very decorated mantel clock showing the time as 4:15

I first used Gemini. This is the result, showing my prompt (one has to tell Gemini this is to be an image or picture):

The program did a good job with the decoration. That is its strength. But, sure enough, the clock's hands are pointed at 10:10, or very nearly so. If you look closely, the hour hand is exactly at the 10, where it should be 1/6th of the way to the 11. 

Gemini produces only one image at a time, in contrast to all the other programs at my disposal.

I next tried DreamStudio, the most recent program I use. I set the number of images to make at 2, because I pay for credits, and each image costs something. Using the same prompt:


DreamStudio is playing a trick in the first image. The hands have a "head" at both ends, so the time being indicated is ambiguous, but one interpretation is still 10:10. Though the hands have different shapes, it's also hard to tell hour from minute hand, so eight interpretations are possible! Don't try to teach your kid to read a clock that has such pathological hands!

The second image at least has a hand pointed at the 4, but given that the other is pointed at the 8, indicating 4:40, the hour hand should be a bit more than halfway between the 4 and the 5.

Next victim: ImageFX (driving Imagen 3, the same as Gemini). It is free to use, so I let it run four images. I also left the aspect ratio at 16:9, the setting I usually use with this program.


All hands point to 10:10. the expected result. Next, Leonardo, using the "bare bones" Leonardo Lightning style and the default (Dynamic) substyle:


Here we find an interesting variety of responses. 

  • Upper left: The hands are so nearly the same length it's hard to say if this is 10:10 or 2:50, although whichever hand is the hour hand, it's pointed right at the digit, not advanced as it should be.
  • Upper right: This looks the most like a real clock. The hour hand is between the 4 and the 5. It still isn't showing 4:15.
  • Lower left: The hour hand is near the 6, but on the wrong side of it, unless it is just a little too far over and the time should be read as 5:40.
  • Lower right: 4:40, with a misplaced hour hand, as seen before.

Finally, here is the response from Dall-E3 in Bing:


Assuming I've figured out correctly which hand is which in each case, the times shown are 10:07, 2:50, 10:09 and 12:55.

So there you have it. Not one 4:15 in the bunch.

Saturday, March 09, 2024

Guidance Parameter in Playground AI

 kw: experiments, ai art, generated art, artificial intelligence, simulated intelligence, comparisons, photo essays

Another parameter to explore in Playground AI is Guidance. This influences how closely the generated image conforms to the prompt, so they say. I decided to find out. In earlier experiments I had kept a few images I particularly liked. One had the seed 260650348, and I decided to use that for this experimental project, and to use only the Euler a Sampler.

The three Models have very different sets of Guidance parameters:

  • Stable Diffusion XL (SDXL) has levels from 0 to 30, and Guidance above 30 is available to subscribing (paying) users. The default is 7 and in FAQ's they recommend primarily using between 7 & 10. After some pre-work I decided to use 2, 4, 7, 11, 16, 24, and 30.
  • Playground v2 (PGv2) has levels from 0 to 5. The default is 3. I determined that levels 0, 1, and 2 produce identical results, so I decided to use levels 2, 3, 4, and 5.
  • Playground v2.5 (PG25) doesn't use a Guidance parameter. It also doesn't have multiple Samplers. It's a "point and shoot" generator.

I've learned from others' reviews and some "help" YouTube videos that longer prompts give the software more to work with. It stands to reason that there could be a greater difference among Guidance levels with a long prompt, compared to a short one. I decided to test four prompts of a wide range of lengths; the word counts below are "meaningful" words, ignoring articles:

  1. 1 word: Cosmology
  2. 5 words: Quaint village near a mountain stream
  3. 13 words: A rocky beach grading into a sandy beach below sea cliffs beneath a partly cloudy sky
  4. 28 words: Fantastical clock with a big dial for the time using roman numerals, the second hand on a small dial of its own, and indicators for month and day and phases of the moon

I'll present the resulting images half size (512x512) in pairs or groups of 4, beginning with PGv2 and Prompt 1.



A number of trends are seen as Guidance (G from now on) goes from 2 to 5:

  • The sky arch begins with a look like a multiverse, and goes to more of a dynamic universe look.
  • The observer is bigger at G4 and 5, while the child seen at G2 turns to a rock which progressively shrinks.
  • Trees appear at G3 and move around.
  • The nebula of G2 gradually turns into a galaxy.
  • Sundry planets come and go.

However, there is no dramatic change in the overall look of the image.

Next, 7 images from SDXL, plus one by PG25.





The SDXL images all have a Medieval look to them. The two that look best are the third and fourth, with G07 and G11. Above G16 they kind of go off the rails. At G30 in particular the frame is quite detailed, but the rest of the image has lower quality, as the FAQ warned. The PG25 image is quite fetching, similar to the central portion of the PGv2 images, with a kind of swirly surround. This one could be fun to run a bunch of with random Seed turned on.

Now for Prompt 2, the village by a stream. PGv2 first:



As before, these are all very similar, with added details at each increased G level. Next, SDXL and PG25.





The frame seen in the earlier series is still with us. Here, the overall look gets a dramatic overhaul after G11. The image for G16 has a bookplate look, while G24 and G30 seem to emanate from confusion, perhaps due to conflicting requirements.

The PG25 image is very pleasing, similar to any of the four PGv2 images, but more detailed and dramatic. Next, the beach scene, PGv2 first.



The differences between these are a matter of increasing detail. I note that the main cliff attains an overhang in the fourth image, and while it looks like the sun is higher, it's just that the second headland is lower, with a notch in it. Now for SDXL and PG25.





I see that these retain the frame. The first two images, at G02 and G04, are from a high perspective; it would have taken more words to specify where eye level is. The next one, G07, is about what I had in mind. The fourth image, at G11, is very good and G16 is almost as good, if a little exaggerated. After that things go downhill, and the frame is even breached.

PG25 has a very good look, with more diverse scenery than the PGv2 images. Now for the final series, the clock, beginning with PGv2.



I had something in mind when I wrote Prompt 4, which I'll get into below. Only the fourth image, with G5, appears as if it could be a real clock. All four of these have the "smaller dial for the second hand" concentric with the main dial. That's not what I had in mind, but I didn't specify "next to" or "below" the main dial. Now for SDXL and PG25.





It's pretty clear by now that, however many words one uses, the best range is usually from G07 to G16. The first two images are rather primitive, and the last two go wonky. I suppose the best is at G07.

PG25 has produced an entire clock, not just a dial in a frame. It still doesn't meet all the criteria. 

Here is what I had in mind, a clock with a moon dial and a separate second hand dial above the center. The day indicator is in the square window; numerous variations on showing days have been produced. This is a modern dial, in a style going back 150 years.


Had I specified "many dials" I might have expected something more like this, a French clock from the Louis XIV era. The "dial" at the top signals a speed control, typically adjusted for the seasons as temperature affected the length of the pendulum.

This last image is from a clock tower in Belgium. Clearly, the AI interpretation of "fantastical clock" is still somewhat limited.