Showing posts with label experiments. Show all posts
Showing posts with label experiments. 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.

Tuesday, August 25, 2026

Getting clocks right - AI almost there

 kw: experiments, art generation, artificial intelligence, simulated intelligence, clock dials

It takes a child about six years to learn to read an analog clock. It takes even longer to learn to draw one correctly. Art generation software seems to be on the verge of reaching this milestone.

This is the winning image in the experiment I describe below.

The prompt read

A beige wall in a store selling clocks, showing four circular wall clocks, each reading exactly 3:27.

There are two parts to showing the correct time on an analog clock dial. Firstly, the minute hand has to point to the correct minute mark. Here, all four clock dials show this correctly.

Secondly, the hour hand must point to the correct location. In this case, the hour hands should all point 27/60ths (45%) of the distance between the 3 and the 4. I made careful measurements on the original image. The four hour hands point identically to a spot just above the second of the marks between 3 and 4 (~38%). They should point just a little below it. They all are where they should be at 3:23, about six minutes too early. There is one other possible anomaly in the image. The fifth clock shown, near lower left, reads 10:10, as nearly all advertisements for clocks have for decades. This abundance of training material causes clocks reading 10:10 (or sometimes 1:50) to dominate images of clocks produced by nearly all art generators.

This image is the best result that an art generation model has achieved since I began using DALL-E2 almost four years ago. This model is named GPT Image 2. I believe it is the model used when you ask ChatGPT 5.4 to create an image. At this point, GPT earns an A- from me.

For this experiment I tested ten art engines, GPT Image 2 and nine others. I had each of them produce two images and selected the best one to be shown below. My focus was the most recent models offered by Leonardo AI and OpenArt. There is a lot of overlap between these two "umbrella" sites. I began with Leonardo AI, using GPT Image 2 first (The other image by GPT was nearly this good, but the four clocks all pointed at 3:25, and all four hour hands were pointed the same as these). Now I'll discuss the other models tested, in order.

Google's flagship model is Nano Banana 2. It excels in realistic imagery. In this case, it set the beige wall I prompted as though it were above a pass-through into the workshop of the clock store, nicely blurred for a bokeh effect.

The times are not all the same, and none of them is 3:27. They range, according to the minute hands, from 3:09 to 3:18. None of the hour hands is correctly aimed, but a couple of them are close.

I had noticed earlier than when I prompt Nano Banana 2 for an image including a clock, and specify a time to show, the result is only approximately correct. However, I've usually accepted that because for the scene I am creating, almost any time other than 10:10 will do. So for other reasons, I use Nano Banana 2 at least as frequently as GPT Image 2.

The Ideogram model is a private brand. It was among the first to be able to correctly render text (most of the time). This version is P-Image Ideogram.

Text: good if I had asked for any, based on prior experience. Clock dials: not so good. All show 10:10, and even more so, the hour hands point almost exactly at the 10, where they should be one-sixth of the way from the 10 to the 11.

The dial designs are interesting. The blue and black ones are quirky, mixing genres in a way few clock designers would do, and the blue one in particular has inaccurate Roman numerals.

The Seedream series is owned by ByteDance; this is version 5.0.

The minute hands are exactly right. The hour hands have all gotten ahead of themselves, pointing almost all the way to the 4, as though the time were 3:57 rather than 3:27.

Although the other clocks shown in the background are bokeh-blurred, I can see that each reads a different time. This is a plus for Seedream, something I can take advantage of when I actually need multiple clocks in an image, such as depicting a clock repair business.

Finally, under the Leonardo AI umbrella, Lucid Origin is a Leonardo "house brand." It is perhaps a little dated, but new enough to be quite good with many imaging tasks.

As far as showing the time, although these clocks don't show 10:10, the model has entirely gone off the rails. None of the four pseudo-times shown is close to 3:27, and none of the hour hands is in a plausible location.

This "good-looking but implausible" attribute is characteristic of older art generation models, not just regarding clock dials.

Now we'll switch to OpenArt. GPT Image 2 and Seedream and some others are also available here, but OpenArt seems to specialize in rather off-the-wall specialty art models. The first shown here, which is also the newest, is Recraft V4, a specialty art model.

Recraft is also among the first to have good text rendering. It is also known for creativity; to a certain extent, one needs to be very specific with one's prompts, and it will still usually throw in unexpected elements.  For that reason, I use this one when I'm creating more whimsical images.

The times shown are all over the place, similarly to Lucid Origin, but are generally more plausible, as though Recraft has a better handle on the relationship between the minute hand and the hour hand. But check out the second dial, with 22 up there!

WanAI, part of Alibaba, produces the Wan family; this is Wan 2.7. They focus more on video generation, which requires better consistency from image to image. Come to think of it, it has been a good while since I worked with a model that allowed me to set the seed. Most models now keep the seed hidden.

This is also a model that will throw in extra stuff. The four central clocks all read 10:10, and all have the hour hand pointing right at the 10. The other clocks nearby have a variety of readings, and sometimes an extra hand or two. They are more "clock-ish", not really clocks. That makes this a model I might use to create a scene on another planet, where the idea of a "clock" only roughly approximates our own.

Grok Imagine Image 2.0 belongs to SpaceXAI. It aims to be good-to-excellent with everything.

Here, it's better than most of the others, but falls behind GPT Image 2. The four clock dials all have their minute hands aimed at :25, but the hour hands are stuck at the 3.

I do like the little motto at far right. I use this model when I'm trying out a prompt on several models, looking for creative variations.

The Chinese company Kuaishou Technology has the Kling art models; this one is Kling 3 Omni.

Here, the times shown appear random, and there is no relationship between the hour hands and the second hands; none is plausible.

Rather than the "beige wall", this appears to be a display board. The rest of the clock shop is a nice touch. This is another of the models I use to see what creative stuff it might throw in.

Here is the last experimental image. Alibaba also owns the Qwen art models; this is Qwen Image 3.0.

The times shown are approximations to 3:27. None has the hour hand in a proper location. Close, but no cigar.

Qwen models had an early focus on more accurate people, when DALL-E3 was still putting extra fingers and toes and other distortions on them.

This is the only image of the ten that shows prices for the clocks. It must be channeling a future time; the prices are about twice as high as similar clocks at most stores...at least the ones I shop at!

Clocks are one of the edge cases I use, firstly to judge the accuracy and comprehension of an art model, and secondly to detect a deepfake. In particular, I have seen a few AI-generated podcasts recently that showed the avatar in an office setting with a clock in the background. The clocks' hands didn't move.

For the interested: another "tell" is that AI generated images and videos in particular are sharper than "real" photography or videography. As shown above, creating bokeh isn't hard anymore. But the avatars are a little too well-defined.

Thursday, July 30, 2026

Is AI ready for prime time?

 kw: book reviews, nonfiction, artificial intelligence, simulated intelligence, AI, SI, memoirs, experiments


Disclaimer and Pledge: It's a pity I need to say this. I don't use any kind of software to write for me, nor to expand on my writing. The words are all mine, 100%. I do use images I produce using art generation tools touted as "AI art" software, and I (almost) always attribute images produced in this way. If for any reason I use a piece of software-generated text, I'll make that clear. 

This mini-avatar of me was produced by Gemini using a picture from 2015. I look much the same now, just with a few more wrinkles. I wear the hat to keep the sun off my bald head. For those who read this blog regularly, I decided it's time to give you a hint what I look like.

The author of I am Not a Robot: My Year Using AI to do (Almost) Everything, Joanna Stern, spent one year using as many "AI tools" as possible to carry on her life. Kudos to her wife Michelle and their young boys for putting up with it all. This picture shows BookBot, her imagining of an AI scheduler (she actually had two versions running in different software systems), introducing her calendar for the year. This is one of many, many illustrations by Jason Snyder that pepper the book.

Ms Stern begins with her own disclaimer, from which I'll quote, "Every sentence in this book started in my brain and traveled, via my MacBook keyboard, onto the page. AI never wrote anything from scratch, except in places that I've clearly marked."

This book is much more than a series of chapters. Timelines full of blurbs (and Jason's drawings), journal entries, lists of ratings of comparable products, a travelogue (the Way-Mo Fun vacation), interviews, and other side notes enliven the narrative.

I found her experiments, one per season, quite enlightening. The first and most successful was "Search and Information". She set aside Google and its kin in favor of ChatGPT, Perplexity, Gemini, Claude and a few others. She soon adapted to "getting the answer" instead of a long list of blue links. Being able to follow up was a big plus. One aspect she used a lot: pointing her phone's camera at something and asking, "How do I fix this?" or "What is THAT?" (On my Android phone, I use Google Lens similarly). She also tried a couple of versions of smart glasses that can either project information into your line of sight or mutter in your ear about whatever you are gazing at. Though she didn't say so, I'd hope such devices have settings about how much info overload you can tolerate.

The other three experiments involved 

  • Music: listening only to AI generated music for a month. She lasted less than two weeks, and recommends that nobody else try such a thing.
  • Books: reading only AI generated short stories and books for a while. She generated her own short stories, none of which were as imaginative as her prompts, except when the prompt was a measly 8-10 words. She writes that they were like recycled movie scripts. She found an author who publishes AI generated novels, which must be assembled bit by bit. She corresponded with the author, who said, "Overall, the more human ideas and input, the better. Just like the old programming adage: garbage in, garbage out." She really enjoyed his+its novel. Her own words about stories she prompted, rather than wrote: "Flatter, less alive." (Sturgeon's Law of human writing: 90% of it is garbage. When we feed that to a LLM, of course the proportion is going to approach 99%).
  • Video: watching only "AI video slop". She acknowledges that AI generated video getting pretty good and improving fast, but "…it still leans heavily on human creativity, storytelling, and judgment" and she worries about "misinformation, copyright issues, and the use of massive amounts of energy just to make a thirty-second meme."

At the end of all the experiments she asks if we're headed for "a world where simulation starts to feel preferable to experience?" For some people, this is already true. Many science fiction stories dwell on this theme.

Along the way, she and her family used a robot vacuum cleaner, now more enhanced than ever; they "adopted" a robot dog on loan (her son hid the robodog when it was due to be returned); rode only robotaxis, usually Waymo, wherever possible; she tried turning over email responses to ChatGPT—that didn't last long!; she had mammograms with AI enhanced interpretation (but very human oversight) and had dental X-rays with AI enhancement, but found an unfortunate tendency for the dentists to abdicate and upsell; she got a robot massage (and thoroughly enjoyed the way it worked on her butt—no erotic overtones); and they tried a robo-chef, which produced bland but edible meals.

A funny story about riding a Waymo: a photographer was assigned to take pictures of her family in a driverless car. When the Waymo's cameras spotted the camera he stuck out the window of the car ahead, it spooked like a gun-shy horse, stopping abruptly and pulling over to the center divider on the highway. It wouldn't budge thereafter until a Waymo tech got on the radio and "persuaded" it to forget the incident.

There's lots more. Lots and lots. I'll leave it to you to read it. It is well worth it!

I'll finish on this note. All this is, at best, ANI, Artificial Narrow Intelligence. "Agentic AI" is, in the author's view, far from ready and cannot be left unsupervised. The author's definition:

Artificial Intelligence is the creation of intelligent machines that can think, see, learn, and act like humans—and maybe even exceed human abilities.

The supposed emotional content many people claim to get from LLM's (including AI boy/girl friends or even spouses) is actually a consequence of the software being trained using human-generated text, which always has emotional content, and of the software ecosystem in which a LLM sits (every bit human coded). Their relational interactions are thus a mirror of the psychology of the person being interacted with. Actual sentience is the difference between simulating feelings and actually having them. Also, the so-called guardrails (easily sidestepped) that try to keep sex and violence out of the picture are written in human code. No AI tool yet devised can reliably detect "unacceptable content."

When I was teaching computer programming at a university, the department head once said, "Computers excel at detecting differences. Human minds excel at detecting similarities." I built a career on this principle, writing software that helped humans with the stuff we cannot do well, and leaving it to the human user to do what we can do better than any machine. I'll leave further thoughts to future rants.

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!

Thursday, January 30, 2025

Training matters – a lot!

 kw: experiments, simulated intelligence, generative art, photo essays

The following two images share something important:



What is that something? It is this prompt:

The essence of ingenuity

I selected the first image because it is the best of the images that includes a person, and the best overall. The other is shown because it is the best of those that do not include human figures (the great majority). These, and other images to be seen below, share one other, possibly equally important attribute: Each is the cream of between ten and forty images generated by that prompt in a particular art generator, as influenced by various settings offered by the different programs.

I used the prompt above with five art generators: Dall-E3 (Bing's Image Creator), DreamStudio, Gemini (which runs Imagen 3), ImageFX (Imagen 3 running in Google Labs), and Leonardo AI. I frequently use one or more of these programs to produce wallpaper for my computer, which has HD screens with 1920x1080 pixels. Thus, these were all produced with a "16x9" setting. In another post I'll get into the actual pixel ratios the programs use and how I cope with that.

My current session resulted in 22 images. When I noticed I had substituted "innovation" for "ingenuity" while working with DreamStudio, I went back and worked with it some more, producing four more images.

My workspace is the Downloads folder. I run Google One and my main storage area for images is OneDrive. I do this to keep intermediate or early files, that may be discarded later, from being transferred to OneDrive or backed up. Once I have a final set of images to keep I move them to permanent folders in the Pictures area.

A montage of six of the images will help me describe other aspects of my methods:


We have here a screen capture from the Downloads folder. Each program has its method of naming a file. Dall-E3 (DE3) uses a long string of alphanumerics, which probably encode the binary seed and other information. Right after I download an image I rename the file according to a scheme I worked out that includes an abbreviation for the program name, the date, a sequence number, the prompt, and a prompt modifier. In the cases shown here the modifiers, if used, are suffixes. For three of them the modifier is "retro panavision", and you can see that the program responded with Steampunk cameras in various settings. For two images I added "cinematic landscape", which yielded a filmlike atmosphere. Then "digital art", which was the first suffix I tried, also produced a steampunk vibe, and included some persons. Note that each of these images is one of many; others weren't kept. Let's look at some more:


DreamStudio includes the seed number in the file name, so I retained it. It also includes the first 30 characters of the prompt. Note the word "innovation", an error on my part. Thus the lower three images are a kind of ringer. We'll come back to DS. Above them are the first three items from ImageFX. When you download one of these, the file name is just "image_fx_". If the file isn't renamed, the next one is "image_fx_(2)", and so forth. ImageFX doesn't keep your history. It is free and there is no paid version.

The image I kept from running it without a modifier shows five apparently ingenious people doing stuff. When I added "digital art", I got abstract art. I downloaded four of these, two shown here, and two in the next montage:


Three of the abstract images look like impressionistic evocations of a galaxy. ImageFX offers buttons to push to add modifiers, or you can type your own. "Cinematic landscape" yielded a city scape in a valley; I've noticed that many pictures made from a prompt that mentions "landscape" have the "X" arrangement we all learned in kindergarten. The upper arms of the X are the flanks of mountains and the lower arms outline a river valley. Finally, "retro panavision" produced, not a camera, but an ingenious tinkerer in his workshop. This is my most favorite from this project, which is why I set it at the top of the post. Another montage:


These are the Leonardo AI offerings. This program will of course pay attention to modifiers or suffixes as normal parts of the prompt. I offers a rich set of Style and Substyle settings, which I abbreviated in the early part of the file names. Note that five of these images have a Steampunk look. That's not just because I like Steampunk, but because with certain Styles, with this prompt, that's nearly all that was offered. I really like the produce market image. I consider it "most different" from the others.

We round out the experience by making up the error I made when I ran DreamStudio the first time. Here is the final montage:


With DS, one can add modifiers, and there are also 16 Styles you can set with a button, including "Enhance" and "Digital Art". Without a Style set, we get kind of clunky Steampunk, at upper left. With "Enhance", the results were all architectural! "Cinematic" yielded Steampunk vibe on a city-wide scale.

Looking at all these makes me wonder what training data was used for each of the programs. I also wonder if the preset Styles in some of them have training subsets associated with them. All I can do at present is to continue to experiment, so I get a feel for the kind of vibe or atmosphere I want a picture to have.

These programs all had very different training sets. Short prompts like the one used here bring this out the best. However, even very long prompts cannot force conformity. There is just too much latitude in an image for every detail to be pinned down. This is one reason I keep lots and lots of images from these experiments. When I am considering a picture I want to produce, I can look through my "collection" as an archive, a library of "looks".

But…nothing beats playing around with the prompt's wording, suffixes, modifiers, Styles, etc., etc. I'll show one more favorite, a bigger version of one of these last four:


It's kind of compelling…

Wednesday, December 18, 2024

SI struggling to get cats right

 kw: generative art, experiments, cats, simulated intelligence

I spent an interesting hour several days ago "persuading" a few generative art programs to make an illustration for a story I planned to review. In the story, a ship cat (on a spaceship) in patrolling, as cats do, and sees someone (a saboteur, but the cat doesn't know that) release many tiny spiderlike robots from a bag. They are intended to disable the ship. The cat hunts them down and destroys every one (there's other things that happen to the saboteur). I tested various prompts, and settled on this one:

A white-and-black cat fiercely pouncing on small mechanical spiders in a spaceship cargo bay

My first tests were with Dall-E3 in Bing ("Bing Image Creator"). This image, the best of twenty or more images, was the closest to what I was looking for, up to this point.

There is just a one significant problem: The cat appears to be allied with the spiderbots, not attacking them.

Other than that, it's a very good image.

I usually find that Dall-E3 adheres most closely to the prompt. I wasn't satisfied, so I went on to Gemini, which uses Imagen 3 when you ask for an image. 

Imagen 3 produces only a single image, and that image is always square. If you ask Gemini how to ask for a wide format image, it gives instructions, but they don't work. If you just ask, "Please create the same image in a wider format," it will respond, "Sure, here you are," but it will produce another square image, usually very similar. Oh, well.

Here is the image Gemini offered. It was square, but with enough freeboard above and below that I could crop it to a 4:3 aspect ratio. It is the one I ended up using. There are a couple of anomalies, however. Take a close look at the paws. The left paw, that is the one raised, has the dewclaw much too far forward, like a thumb, and there is a sixth digit. Also, one of the digits on that paw, and the corresponding digit on the right paw, have double claws.

An image of a barefoot man that Dall-E2 produced for me a couple of years ago has six toes on one foot and seven on the other. These sorts of errors show that the programs aren't just modifying images of real cats or cartoon humans, but doing something deeper. However, they demonstrate that there is no understanding of the actual nature of cats or humans…or anything else, for that matter.

I went on to ImageFX, part of Google Labs, which I understand uses Imagen 3 also, but it seems to have more flexibility, including settings for aspect ratios. A slip of the mouse set the aspect ratio to Portrait for this one. I kind of like the tiny screens on the spiderbots. As with the Dall-E3 image, it isn't clear whose side the cat is on.

I tried again with a wide aspect ratio setting. This one came out 10:7. This is the only image of the entire set that has the cat in mid-pounce. But is it pouncing on the spiders?

If you look carefully you can see a number of flying spiders.

Hoping to get the cat attacking spiders without ambiguity (though the Gemini image is quite good), I turned to Leonardo AI. Bingo!

This image used the Leonardo Phoenix preset and the Moody style. The cat is not exactly pouncing, but at least it is looking at its prey. I almost used this image, but there is distortion in the hip area, and the even moodier tone of the Gemini image led me to choose that one.

In all, I generated about 100 images to get one I could happily use, and these few others that are "almost there," and interesting in their own right.

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.