Drawing with kids and ChatGPT

Drawing with kids and ChatGPT

Today, I spent some time with my oldest son discussing the advancements in technology. I introduced him to ChatGPT by OpenAI and explained how this powerful tool can generate explanations in seconds that even experts with 10 years of experience in a specific field might struggle to articulate. Despite being only seven years old, he posed an intriguing question that I hadn't considered before.

Can it draw?

That was an interesting question for 2 reasons:

  1. ChatGPT was conceived as a text based language model based on Generative Pre-trained Transformer architecture.
  2. There are other specialized models like OpenAI DALL-E 2, Stable Diffusion, Midjourney that specialize on generative painting and image creation.

So we decided to try and experiment.

As with all my research we started with Google and got an expected answer:

No alt text provided for this image

We were not convinced, since Google Search picked an answer from last year. I looked through the other results and found another one from 2 months ago from someone on Reddit.

No alt text provided for this image
Asking ChatGPT "Draw me a simple circle"


It sounded plausible that "No" the answer, but we decided to ask ChatGPT itself.

No alt text provided for this image
Asking ChatGPT "can you draw?"

I can work with that. SVGs are not my forte but I have worked with them extensively in my frontend development past and it's based on XML which I used quite a bit.

My son wanted to draw a person, so he asked ChatGPT:

cancan you write the code for drawing a person?you write the code for drawing a person?        

It answered with this Scaled Vector Graphics markup:

<?xml version="1.0" encoding="UTF-8" standalone="no"?
<svg xmlns="https://www.w3.org/2000/svg" width="100" height="200" viewBox="0 0 100 200">
? <!-- Head -->
? <circle cx="50" cy="30" r="20" fill="#FFC0CB" stroke="black" stroke-width="1" />

? <!-- Body -->
? <rect x="45" y="50" width="10" height="60" fill="#87CEEB" stroke="black" stroke-width="1" />

? <!-- Arms -->
? <line x1="45" y1="60" x2="20" y2="80" stroke="black" stroke-width="3" />
? <line x1="55" y1="60" x2="80" y2="80" stroke="black" stroke-width="3" />

? <!-- Legs -->
? <line x1="45" y1="110" x2="30" y2="180" stroke="black" stroke-width="3" />
? <line x1="55" y1="110" x2="70" y2="180" stroke="black" stroke-width="3" />
</svg>
        

Which we converted to a .svg file and it looks like this:

No alt text provided for this image
This code will draw a simple person with a pink head, blue body, and black limbs. The person's proportions are not perfect, but you can modify the values to create a more realistic representation.

Something was missing, so we asked for a favor :)

No alt text provided for this image
A SVG for a body with eyes by ChatGPT

Much better as per me and my son liked the eyes too.

No alt text provided for this image

We asked for nose to make it cute :-

No alt text provided for this image

We ended up spending some time tweaking colors and running through some other ideas like these.

No alt text provided for this image

We concluded that ChatGPT can draw and it also makes it fun for kids.

You could check our source code on GitHub: https://github.com/Miciurash/experiments-with-kids-and-chatgpt

Karen Sykes

Chief Business Advisor at UNL Solutions LTD

7 个月

Mircea, thanks for sharing!

回复
Phani Kumar Varma Kalidindi

Product and Engineering Leader | Growing High Performing Teams | Focus on Innovation, AI-ML and Automation

1 年

This is nice!!!

要查看或添加评论,请登录

社区洞察

其他会员也浏览了