Showing posts with label dall-e. Show all posts
Showing posts with label dall-e. Show all posts

Thursday, June 01, 2023

Nonsense in , interestingness out

 kw: ai experiments, generated art, dall-e, nonsense processing

I read that an AI researcher made up a word, "crungus", and used it to prompt a generated art app. He reported that this yielded several pictures of ogre-like monsters. I decided to try the same "word" with DALL-E2. I ran it twice, with these results:



While the program primarily associates the prompt with food, it threw a human-ish character into each set of replies. Most of the foods have a crunchy look, like tempura. It is refreshing, however: no monsters for me.

I should mention that every time I run DALL-E2 I use a freshly-opened Incognito Chrome browser window. OpenAI has history of what I've been doing in its own database, but any cookies DALL-E2 may have dropped get erased when I close the browser.

I made up another nonsense word, "knorb", which yielded this:


It's a pity DELL-E2 doesn't have an "Explain" button, but if its neural net consists of many layers of millions of nodes, who wants to read through an "explanation" anyway? This word somehow triggered images related to tools and mechanical things. Next I chose a word made up by a comedian in a funny article about punctuation, "flabbergasterisk". Here the results were so surprising I ran it a second time:



The first set of returns produced more food. The second set also has a food theme, but I rather like the still life composition of the second one in the second set. As originally conceived, the flabbergasterisk looks like this:

To check DALL-E2's vocabulary, I picked three obscure, but genuine, words. The first was "Limerence":


Limerence is a psychological term defined as involuntary, intense, obsessive desire for another person, without sexual overtones. The three women pictured could be objects of desire, but at least one of the images is a bit suggestive in nature. I don't know what kind of bird is pictured at the left. The next real word was "Omnishambles":


Here the program is in uncharted territory. "Omni" means "everything" and "shambles" means to be in disorder, so the word means "disastrous disorder" (it's how I would describe the Biden Presidency). It isn't a geographical term. The final word is "Velleity":


"Velleity" is a mild wish or inclination without motivation; it doesn't lead to action. One could call it the "wishy" side of "wishy-washy". The flower pictures are nice, but are total non sequiturs. I am not sure how a near-empty jar of rolled oats relates to anything.

It has been a fun exercise.

Tuesday, November 22, 2022

Computer-aided artistry

 kw: experiments, reviews, art, dall-e, artificial intelligence

I can't draw, or paint, or sculpt. All the manual artistry in my family resides in my younger brother, who is a professor of art history. However, I can think creatively, which any child can do, as can many adults, if the skill hasn't been educated out of them. Perhaps if I had taken art lessons, long ago…

But now, AI can help! I read a review of three "art generator" applications and decided to try them. Rather than write a blow-by-blow account, I'll present my progress and conclusions. The three applications are 

  • DALL-E 2, the first and currently the best.
  • MidJourney, which runs on a server within the Discord environment.
  • Stable Diffusion, also in Discord, but a beta version of an improved product is in DreamStudio.

I planned to use three prompts. A prompt is a text instruction, which can be up to the size of a tweet. The longer and more detailed, the better the results (usually). Two of the three applications return four small images; you can pick one to edit. The editing tools depend on the application. Quite frankly, the tools in MJ and SD are obscure and apparently limited (more experienced folks can correct me on this; just comment). The tools in DE2 were easier for me to comprehend and to use, so I did a lot more with that one.

I used only one prompt with MJ and SD, and then gave up. The first prompt:

Mountainous Landscape in the style of the Hudson School

DALL-E:

I selected the second one to edit. I first downloaded the image, a 1024x1024 pixel PNG file nearly 2 Mby in size. Converting to a JPG reduced it to 475 Kby. This panel is shown about half size. I'll discuss the little bit of editing I did below.

MidJourney:

I selected the first one to (try to) edit. Saving the 1024x1024 image produced a 662 Kby WEBP file. Converting to a JPG reduced it to 517 Kby. This panel is shown full size.

I couldn't figure out whether extending the image (I'll get to that shortly) is even possible, so at this point I stopped and didn't send MJ any more prompts.







Stable Diffusion:

This single return seemed odd. It must be two halves of a panorama. Saving it produced a 1024x1024 PNG file (though I had to select the size at the outset; a slider runs from 512 to 1024). 

I couldn't do much with this. I tried a different prompt, which produced slightly better results, but not too pleasing to me.









I returned to DALL-E 2. I primarily wanted to extend the image. I'm interested in images big enough to use for screen saver wallpaper (1920x1080). In the edit toolset, you extend an image by adding a Generator Frame (AKA a Marquee), moving it where you like, and clicking Generate.

I first put the marquee next to the image and clicked Generate. The marquee filled with a different take on the prompt, independent of the image next to it. I clicked Reject, moved the marquee to overlap about 1/8th of the image and clicked Generate. Much better. I clicked Accept. This is the image I kept, 1920x1024 in size (a bit panoramic, but I like that). I reproduce it here half size.


You might have noticed that all DALL-E images have a little color bar at lower right. This is to be used if you want to print an image on canvas, to guide the color-rendering software; you'd hide the lower edge behind the frame. To make an image for use on the screen one must extend it enough to crop that lower edge out for the finished image.

The editor lets you erase part of an image and paste in other stuff. You can also start by downloading an image and editing it, rather than using a prompt.

I used the second and third prompts at this point. I'll show the final, extended images (half size).

Second prompt:

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


This image is 1984x1280. The original 1024x1024 extends from the middle of the blue ewer to the end of the top banana, and to a little below the edge of the table.

Third Prompt:

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


This panoramic image is 2624x1024; the original square is about the middle 40%. The added moons showed up during extension.

DALL-E 2 gives a new user 50 free credits for the first month of use, and 15 free credits per month thereafter (use 'em or lose 'em). Each time you click Generate you consume one credit. Credits can be purchased, $15 for 115. Using this program can consume a lot of time, and some funds. It can easily become addicting. I have read of online artists who produce images and sell them as NFT's. That's one way to fund the addiction!

At this point I had 35 credits left. I couldn't resist trying one more prompt:

Desert landscape with mesas and saguaro cactus

The 4 returns:

These look like scenes near Tucson. I chose #3 and extended it, to both sides and below:


This image is 2624x1664, plenty big enough for me to use as wallpaper. It consumed 8 credits, leaving me with 27. Yo-ho! What to do next? Stay tuned!