· 톺아보기

잡담

어린이용 동화책 만들기

멍멍개찜 ·

조회 7,377 · 공감 7 · 댓글 17

아래는 반나절정도의 시간에 AI만으로 어느정도의 창작활동이 가능한지 실험해 보았습니다.

스토리와 prompt는 다음과 같이 ChatGPT에게 부탁했습니다.


> Hi, can you write a very short bedtime story for kids?

Once upon a time, there was a little pig family that lived in a forest next to a lake. There was the eldest piglet, a boy named Wilbur, the middle piglet, a girl named Oink, and the youngest piglet, a girl named Babe. Their mother and father were both very kind and loving, and they taught their children everything they knew about living in the forest.

Wilbur was a very curious pig, and he loved to explore the forest. Oink was a little more cautious, but she was still brave and adventurous. Babe was the youngest and shyest of the piglets, but she looked up to her siblings and wanted to be just like them.

One day, Wilbur was exploring the forest when he came across a strange creature he had never seen before. It was tall and thin, with long arms and legs, and it had a big head with big eyes. Wilbur was scared at first, but the creature didn't seem to be afraid of him. In fact, it seemed to be friendly.

The creature introduced itself as a giraffe, and it told Wilbur that its name was George. George and Wilbur became fast friends, and they spent many days playing together in the forest. Oink and Babe were introduced to George as well, and they all became best friends.

One day, Wilbur's parents told him that it was time for him to leave the forest and go out into the world. Wilbur was sad to leave his home and his friends, but he knew that it was time for him to spread his wings and fly.

Wilbur said goodbye to George and his sisters, and he left the forest to explore the world beyond. He had many adventures, and he met many new friends, but he always remembered his time in the forest and his best friends, George and the pig sisters.


스토리가 좀 짧다 싶으면 "Can you write a bit longer version of it?" 이라고 부탁하면 조금 더 길게 다시 써줍니다.

다음은 prompt 생성을 부탁합니다. 웹으로 공개된 버전은 아직 Stable Diffusion에 대해 학습이 안되었는지 이해를 못하는 듯 했습니다. AI 이미지 생성에 대해 물어보니 "DALL-E"를 예로 드는것을 확인해서 아래와 같이 하니 그럴듯한 prompt를 생성해 주었습니다.


> With this story, can you generate a list of DALL-E prompts?

Draw the little pig family living in their cozy home in the forest next to the lake.

Create an image of the three piglets playing together in the forest.

Generate an image of Wilbur, the eldest piglet, going on an adventure in the forest.

Draw Oink, the middle piglet, being cautious but brave in the face of danger.

Create an image of Babe, the youngest piglet, looking up to her siblings and wanting to be just like them.

Generate an image of Wilbur meeting George, the tall and friendly giraffe, for the first time.

Draw the four friends, Wilbur, Oink, Babe, and George, playing together in the forest.

Create an image of the little pig family saying goodbye to Wilbur as he leaves to explore the world.

Generate an image of Wilbur having an adventure in a new and unfamiliar place.

Draw Wilbur reuniting with George and his pig sisters after his adventures, happy to be back with his old friends.


여기서 우리의 화가 AI는 캐릭터 이름같은건 잘 모르기때문에, 알아듣기 쉽게 prompt를 좀 손봐주고, 그림 스타일도 추가해서 아래와 같이 스크립트를 만들었습니다.

--prompt "watercolor, three piglets living in their cozy home in the forest next to the lake."

--prompt "watercolor, three piglets playing together in the forest."

--prompt "watercolor, a piglet, going on an adventure in the forest."

--prompt "watercolor, a piglet, being cautious but brave in the face of danger."

--prompt "watercolor, a piglet, looking up to her siblings and wanting to be just like them."

--prompt "watercolor, a piglet meeting the tall and friendly giraffe, for the first time."

--prompt "watercolor, three piglets and a giraffe playing together in the forest."

--prompt "watercolor, two piglets saying goodbye to a piglet as he leaves to explore the world."

--prompt "watercolor, a piglet having an adventure in a new and unfamiliar place."

--prompt "watercolor, a piglet reuniting with a giraffe and two piglets after his adventures, happy to be back with his old friends."


한개의 프롬프트당 넉넉하게 8장씩 그리도록 시켜두고 인간은 책을 편집할 준비를 합니다. 저는 단순히 그림과 글만 들어가면 되었기 때문에, 간편하게 Google Slides를 사용했습니다만, 익숙한 다른 도구가 있다면 무엇이든 상관 없을 것 같습니다.


최종 수정은 어차피 그림이 들어간 다음에 할 것이기에, 간단히 페이지별로 글만 복사해 넣고 폰트 종류와 크기, 디자인 정도만 살짝 손을 봐 줍니다. 그러는 사이에 이미 AI가 앞 페이지에 들어갈 그림을 완성했네요. 배경에 이미지를 넣고 그럴듯하게 다듬어봅니다. 그 이후로는 AI가 뿜어대는 그림중에 마음에 드는 것을 골라서 각 페이지에 넣는 반복 작업입니다. 아래는 그 결과물입니다. slide에서 export한거라 parameter 정보는 없습니다. 다른 그림도 동일한 parameter에 seed와 prompt만 다른거라 첫 페이지 것만 올렸습니다.


parameters

watercolor, three piglets living in their cozy home in the forest next to the lake.
Negative prompt: (worst quality, low quality:1.4),
Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 367629172, Size: 512x512, Model hash: 4c13cf9c00, Model: hasdx_hasedsdx

story1.png

story1 (1).png

story1 (2).png

story1 (3).png

story1 (4).png

story1 (5).png

story1 (6).png

story1 (7).png


작업은 여기서 중단했습니다. 이유는 바로 문제가 된 다음 prompt 때문이었습니다.

"a piglet meeting the tall and friendly giraffe, for the first time."

"three piglets and a giraffe playing together in the forest."


AI가 다른 두 종류의 캐릭터를 동시에 그리려고 하면서 원하는 결과물을 얻을 수 없었습니다. prompt를 정교하게 손을 보던가 아니면 따로 그려서 합성하는 추가 노력이 들어가지 않는 이상, AI에게 모두 시키기에는 어려운 상황인 것 같습니다.


아래는 평화롭게 숲에서 놀고있는 돼기린(?)이들의 모습입니다. 실패작이지만 묘하게 끌리는 매력이 있네요.

watercolor, three piglets and a giraffe playing together in the forest.
Negative prompt: (worst quality, low quality:1.4),
Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 2649201772, Size: 512x512, Model hash: 4c13cf9c00, Model: hasdx_hasedsdx

04399-2649201772-watercolor, three piglets and a giraffe playing together in the forest.png

이와 같은 현상은 Tarot 카드의 "Strength: A woman holding a lion's mouth open with her bare hands." 에서도 자주 목격했던 부분으로, 아래 그림처럼 woman이 lion과 합쳐지는 것과 동일해 보입니다.

Strength: A woman holding a lion's mouth open with her bare hands. art by EMB_skstest3
Negative prompt: (worst quality, low quality:1.4),
Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 3324745849, Size: 512x880, Model hash: dce6b18d01, Model: dalcefoV3Painting_dalcefoV3Painting

8.The Strength.png


마지막으로 개인적인 감상과 결론입니다.

저작권 문제등 법적 해석에 대한 숙제는 남아있지만, AI만으로 어느정도의 창작 활동은 가능하다는 것은 이미 다양한 분야에서 검증이 되어가고 있는 상황이라고 생각합니다.실제로 예전같으면 1~2주는 족히 걸렸을법한 동화책 만들기가 반나절만에 뚝딱 나오는 생산성 향상을 피부로 직접 느낄 수 있었습니다.

다만 아직 완벽하지 않은 부분도 존재하며, 과도기가 지나면 해결될지 모르겠지만, 아직은 인간의 손길이 필요한 부분도 분명히 있어 보입니다.

댓글 17

  1. 멍멍개찜 ·
    @야웅이님 오! 몰랐던 내용이네요. 실험해봐야겠네요. 감사합니다!
  2. 멍멍개찜 ·
    @야웅이님 아, 역시 미세조정이 필요한 부분이군요. 다만 CFG scale은 올리면 그림체가 붕괴하는 단점이 있어 만지기 어렵더라구요.
  3. Marx. ·
    뿔이 난 돼지를 그려서 이야기를 만들어가도 재밌겠네요.
  4. 멍멍개찜 ·
    @Marx.님 오!! 생각치도 못했던 참신한 아이디어 감사합니다. 화가 AI의 피드백을 작가 AI가 받아들이는 시스템이군요. 인간이었으면 설득시키는데 고생할 것 같습니다만 AI는 충분히 하고도 남을 것 같네요.
  5. Runatic ·
    우와~! 동화책 만들어서 아이에게 읽어주고 싶었는데 좋네요!!
    다만, 한글은 못넣겠죠..? ;;;
  6. 멍멍개찜 ·
    @Runatic님 AI와 대화할때 영어로 하는게 품질이 좋아서 그렇게 하고 있습니다만, 편집자가 되어서 책을 만드는 작업은 한글로 하셔도 문제 없습니다. 예를 들어 첫 부분을 구글 번역기에 넣고 돌리니 아래처럼 나오네요. 좀 다듬어서 한글로 쓰면 될 것 같네요.

    옛날 옛적에 호수 옆 숲에 사는 꼬마 돼지 가족이 있었습니다. 가장 큰 새끼 돼지, Wilbur라는 소년, 중간 새끼 돼지, Oink라는 소녀, 그리고 막내 새끼 돼지인 Babe라는 소녀가 있었습니다. 그들의 어머니와 아버지는 모두 매우 친절하고 사랑이 많았으며 숲에서 사는 것에 대해 알고 있는 모든 것을 아이들에게 가르쳤습니다.
  7. XZ ·
    좋은 아이디어 감사합니다!
  8. Runatic ·
    @XZ님 아.. 그림을 생성할 때, 글도 같이 생성해준 것인줄 알았네요.. ^^;;
    암튼, 멋있는 동화 만들어줘야겠어요. .:)
  9. yutio ·
    댓글 이미지
    중간에 멈춘 부분 투샷+컨트롤넷으로 해보심이 어떨런지 이젠 로라도 따로 적용되던데 이렇게 보스 레이드처럼 만들 수 있긴 합니다.
  10. 멍멍개찜 ·
    @yutio님 감사합니다! 이것도 실험해봐야겠네요.
  11. 구타류발자 ·
    동물이 꽤나 잘 뽑히는 모델이 있었네요. 배우고 갑니다.
  12. 래비티 ·
    와.. 생각치도 못 했던 +.+ 아이디어 정말 좋습니다!
  13. LEFT_VIEW ·
    돼기린으로 동화를 계속 연결해도 재미있을 것 같습니다. 다음 이야기 현기증 납니다!
  14. yutio ·
    @야웅이님 투샷이 원래 용도가 2명 위주라서 추가 인원은 더 명시해주는 게 좋습니다. 프롬을 하실때 하나씩 하나씩 분리해서 해보시길 권장하고 첫번째 줄이 그림 전체의 뼈대를 잡아주므로 꼭 '동물4마리'을 의미하는 프롬프트(4animals)를 넣어야 하고 또한 각 줄에도 꼭 '동물4마리'을 의미하는 프롬프트(4animals)를 넣어야 잘 분리해줍니다. 아 그러면 또 융합하니 조심하시고요. and가 4개로 만들어집니다. .그리고 divisions을 1:1,1:4,1:4,1:4,1:4로 . positions도 0:0,0:0,0:1,0:2,0:3 weights도 0.1,1,1,1로 변경해하시길 추천합니다. 즉 각 항목의 숫자 갯수는 전체+2분할이었던 3개에서 전체+4분할로 총 5개여야 잘 분리되서 잘 형성됩니다.
  15. yutio ·
    댓글 이미지
    추가적으로 컨트롤넷을 이용해서 다수의 인원도 가능하니 한번 사용해보시길 기원합니다. 저번에 고양이한테 적용되는 것 같았으니 아마도 기린이나 돼지에게도 가능할 것이라고 생각합니다.
    확장기능 포즈 에디터(https://github.com/fkunn1326/openpose-editor)
  16. yutio ·
    댓글 이미지
    오픈포즈를 잘 이용하면 이런 식으로 다수의 인원을 맏들 수 있습니다. 다만 이경우는 동일한 프롬을 공유하는 지라 조금은 섬세한 작업이 필요합니다.
  17. 멍멍개찜 ·
    @yutio님 감사합니다. 네, 다수가 등장할 때의 가장 큰 문제가 동일한 프롬을 공유한다는 점인 것 같습니다. 자꾸 기린과 돼지를 섞어버리네요. ㅠㅠ

AI그림당 최근 글

AI그림당 목록 더 보기