기본 콘텐츠로 건너뛰기

한복이미지를 아주 잘 만들어 주는 QWEN - 한복, 동양화, 전통 한식 등

 한복을 입은 한국여성의 이미지를 생성하기 위하여 프롬프트를 만들어 실행을 해도 우리가 원하는 그런 이미지를 얻기가 참 어려웠다.

대부분의 Diffusion Model 들(Stable diffusion, SD3, Flux 등)은 보통 Traditional korean style 라고 해도 중국 풍과 일본풍이 섞여진 별로 전통한국 스타일이 아닌 이미지를 만들어준다.
이것을 해결하기 위하여 보통 사용하는 방법이 한복 또는 한국화 관련 Lora 를 적용하여 만들고 있다.

전통사극에서 볼수있는 궁중 복식

그런데 QWEN 모델은 프롬프트로 한글을 잘 인식할 뿐만 아니라 한복을 입은 여성의 이미지도 아주 잘 생성해 준다.   안타깝지만 생성형 이미지 모델을 우리나라에서 출시된 모델은 없기 때문에 한복이미지도 포기 상태였는데 중국에서 만든 QWEN 모델이 잘 만들어 주기 때문에 중국도 역시 같은 동 아시아권의 이웃 국가가 맞다는 생각을 하게 된다.

QWEN 을 이용하여 전통 한국 이미지를 만들어 본다.

1. 한복을 입은 아름다운 한국여성

  • 프롬프트 : 전통 한복을 입은 젊은 여성이 키 크고 흔들리는 황금빛 풀밭에 서 있는 사실적인 디지털 페인팅입니다. 검은 머리카락은 깔끔하게 정돈되어 있으며, 올린 머리에 몇 가닥의 느슨한 머리카락이 얼굴을 감싸고 있습니다. 그녀의 표정은 차분하고 사색에 잠긴 듯하며, 오른손은 부드럽게 가슴에 손을 얹고 있습니다. 그녀는 미묘한 질감의 흰색 저고리와 짙은 청록색 치마를 입고 있으며, 허리에는 풍성하고 흐르는 듯한 짙은 적갈색 리본이 묶여 있습니다. 배경에는 밝고 맑은 푸른 하늘과 옅은 구름이 몇 개 떠 있고, 두 마리의 화려한 나비가 근처에서 날아다닙니다. 분홍색 꽃잎이 공중에 떠다니며 장면에 부드러움을 더합니다. 전체적인 구도는 고요함과 우아함을 발산하며, 전통적인 아름다움과 자연과의 평화로운 조화를 모두 포착합니다.
흰색저고리, 청록색 치마,  올린머리
한국의 전통 한복이 맞다.  이 프롬프트를 영어로 하여 flux로 생성을 시키면,
  • prompt : A realistic digital painting of a young woman in traditional Korean attire, standing in a golden field of tall, swaying grass. She has short, dark hair styled neatly, with a few loose strands framing her face. Her expression is calm and contemplative, with her right hand gently touching her chest. She wears a hanbok with a white jeogori (jacket) that has subtle textures, and a deep teal chima (skirt) with a wide, flowing ribbon in a rich maroon color tied at her waist. The background features a bright, clear blue sky with a few wispy clouds, and two colorful butterflies flutter nearby. Pink flower petals drift through the air, adding a touch of softness to the scene. The overall composition exudes serenity and elegance, capturing both traditional beauty and a sense of peaceful harmony with nature. 
  
한복이라기 보다 중국 복장에 가깝다.

  • 프롬프트 : A highly detailed, realistic painting of a young woman in traditional Korean hanbok attire, standing outdoors at night under a full moon. The woman has a serene expression with smooth, porcelain-like skin, dark hair styled in a traditional updo adorned with intricate ornamental hairpieces and floral accessories. The hanbok features a richly embroidered jeogori (jacket) with floral and gold patterns, and a full, flowing chima (skirt) with subtle gold motifs. She stands near a traditional Korean folding screen with calligraphy and ink wash painting of mountains, pine trees, and lotus flowers. The background depicts a dark, cloudy sky illuminated by a bright, full moon, creating a tranquil and elegant atmosphere. The overall style combines realism with traditional Korean art elements, emphasizing grace, cultural heritage, and natural beauty.

QWEN 한복입은 여성 이미지
영어로 프롬프트를 해서 QWEN 으로 만들어보면 이런 고급스러운 한복입은 여성도 잘 만들어 주고 뒤에 병풍 이미지도 우리에게 친숙한 병풍 이미지이다.
  • 프롬프트 : 기생의상을 입은 기녀, 어우동,A highly detailed digital painting of a young woman dressed in traditional korean attire, combining historical and fantasy elements. She wears a gisaeng cloths, Her hair is styled in an elegant updo adorned with delicate flowers and hairpins. She holds a traditional pipe in her right hand, with a calm and serene expression on her face, one eye winking playfully. She is also wearing a large, semi-transparent, lavender-colored veil with floral patterns, draped over her head and shoulders, secured with a pink ribbon tied in a bow at her neck. The background features a soft lavender sky with a crescent moon, floating white sparkling orbs, and blooming peonies in shades of pink and white. There is a red seal or signature in the upper left corner, adding an artistic touch. The overall aesthetic blends traditional Korean or Chinese elements with a dreamy, fantasy atmosphere.

기생 갓, 곰방대, 한복
공방대도 친숙한 이미지 이고 머리에 쓴 것도 기생들이 썼던 것과 비슷하다.

2. 한국화 그림

  • 프롬프트 : A modern digital black-and-white ink wash illustration in Korean style, depicting a tender romantic moment between a young couple in traditional hanbok. The man wears a fully traditional Korean male hanbok, including a jeogori (jacket), durumagi (long overcoat), traditional pants, and a gat (traditional Korean hat), drawn with graceful brush-like lines, gently embracing the woman from behind in a soft, affectionate pose. The woman stands in front with a serene smile, her long flowing hanbok skirt rendered in delicate ink strokes and subtle shading. Their figures are stylized and artistic, not photorealistic, with a charming and timeless atmosphere. The background features a gracefully drooping willow tree and a full moon, softly illuminating the scene with gentle light. The composition has the warm, poetic feeling of a traditional Korean painting, reimagined in a modern black-and-white sumi-e style. Minimal background with soft ink gradients, light brush textures, and a dreamy, romantic aura. Illustration style, black-and-white, elegant and lovely mood, masterpiece.

수묵화, 한복입은 여성과 남성
수묵화에 나타난 남성의 복장도 우리 전통 한복이 맞다.
  • 프롬프트 : 전통한국화, 흑백 수묵화, 오랜 종이 바탕에 세밀한 붓으로 그린 그림, 주제는 매끄러운 매화꽃 나무가지에  한마리는 앉아 있고 한마리는 날고 있는 모습, 오래된 그림 느낌. 글씨는 없는 그림만 그려진 작품.  

한국화 , 매화나무, 새
전통 한국화의 느낌은 나지만 뭔가 아쉬운 한국화이다.  그리고 한글이 정확하게 구현되지 못하기 때문에 한국화 생성은 어렵다.

3. 한옥 마을

  • 프롬프트 : A scenic view of a traditional Korean hanok village at sunset, featuring narrow, winding stone-paved streets flanked by wooden hanok houses with ornate, curved tiled roofs. Lush greenery and colorful autumn foliage surround the houses, with a backdrop of modern Seoul skyscrapers and the N Seoul Tower visible in the distance against a pastel pink and blue sky. The scene captures a harmonious blend of historical architecture and vibrant natural surroundings during golden hour.
한옥마을
실사 처럼 북촌 한옥마을에서 찍은 듯한 이미지이다.  전통한옥을 잘 묘사해 준다.

4. 궁궐

  • 프롬프트 : A digital illustration of a young woman walking in a traditional korean palace during spring. The scene features pink cherry blossom trees in full bloom framing the top of the image, with petals gently falling. The woman has long, dark hair and is dressed casually in a gray and white striped jacket, a beige skirt, and black sneakers, carrying a small black bag. The courtyard has stone-paved pathways, traditional wooden fences, and potted plants. In the background, there is a traditional korean palace with ornate green, red, and black architectural details, and a cloudy sky overhead. The overall mood is serene and picturesque, capturing the beauty of springtime , masterpiece, high detailed,

디지털 일러, 궁궐
한국인 이라면 딱 봐도 저것은 경복궁이네 라고 생각할 이미지 이다.
중국이나 일본의 성이 아닌 한국 전통 궁궐이 맞다.
한옥 이미지
여는 한옥 고택에서 만나 볼수 있는 모습이다.  우리에게는 너무나 친숙한 우리의 전통 가옥이다.

5. 갓을 쓴 전통한복을 입은 남성

  • 프롬프트 : A young man dressed in traditional Korean hanbok attire, sitting on a tiled rooftop with one leg crossed over the other. He is wearing a deep blue jeogori (jacket) with a white inner layer, tied with a silk sash, and white baji (pants). He has a large, black gat (traditional Korean hat made of horsehair) with a wide brim, secured with a chin strap, and decorative strings hanging down. His expression is calm and composed, with a slight, subtle smile. The background features a traditional Korean wooden building with colorful, intricate eaves and a tiled roof, set against a bright, clear sky. Lush green foliage is visible in the lower part of the scene, and the sunlight creates a soft glow with lens flare effects. The overall mood is serene and historical, blending traditional Korean culture with a slightly modern artistic style.
갓을 쓴 모습
이제는 전통 갓도 세계적으로 유명한 복장이 되어서 인지 아주 정확하게 묘사해 준다.
뒷 배경의 가옥도 전통 한옥으로 그려져 있다.
물론 일반 한옥 처마가 저렇게 색칠이 되어 있지는 않다.

6. 결론

    그 무엇보다 QWEN 이미지 생성 AI 모델이 가장 잘 우리나라 전통 복장과 전통 스타일을 잘 생성해 준다.  사실 한글 고유명사를 영어 프롬프트로 옮겨서 만들기도 어려운데 QWEN 은 그냥 한글 프롬프트를 해도 인식을 해서 만들어 주니 좋다.   중국 알리바바에 대한 고마움을 느낀다. 





 




댓글

이 블로그의 인기 게시물

Comfyui Wildcard 사용법 - Stable Diffusion , Flux 에서 쉽게 Random Prompt 로 이미지 만들기

 Comfyui Wildcard 사용법에 대하여 알아본다. Comfyui 로 Stable Diffusion 또는 Flux 로 이미지를 만들 때 Prompt 가 이미지를 결정하는데 매우 중요한 역할을 한다.  영어가 모국어가 아닌 이상 영어로 prompt 를 만드는 것이 참 어려운 일이다. 물론 처음에는 많은 다른 사람들이 사용한 prompt 들을 모방하여 수정하고 사용하는데 이런 일을 하나하나 해 보기가 시간이 많이 걸리고 어렵다.   그래서 Random 으로 prompt 가 만들어 져서 이미지가 생성되고 그 이미지 중에서 마음에 드는 이미지들을 골라 그 이미지의 Prompt들 만을 가지고 보완하고 개선하면 더 편리하고 좋지 않을까 생각이 든다.  그런 식의 Random Prompt 생성이 가능하게 해주는 것이 wildcard 사용이다. Joker는 card game에서 wildcard 이다. 1. Wildcard 의 의미      와일드 카드(Wildcard)란 카드 게임에서 유래되었다.  이런 카드 게임에서 모든 카드의 대용으로 쓸 수 있는 비장의 카드를 와일드 카드라고 한다. 포커나 훌라를 할 때 조커가 이런 역할을 하는데 ,  이 의미가 컴퓨터와 스포츠로 확장되어 사용되는 것이다. 컴퓨터 용어로 쓰일 때는 한 디렉터리 내에 여러 파일이 존재하거나, 파일 이름의 뒷부분을 정확히 알지 못하는 경우에도 사용할 수 있는 명령어를 말합니다. '*'을 넣으면 빠진 것에 어떤 문자열이 있든지 대신할 수 있고,  '?'는 임의의 한 문자에만  대응한다. Comfyui 에서 wildcard 사용은 "--문자열--"  이런 식으로 wildcard 사용 가능한 노드에 prompt 를 입력해 주면 그 노드는 "문자열" 에  해당되는 파일을 찾아 그 파일 내용 중에서 임의의 일부분을 prompt 로 대체해 준다. 2. Wildcard 사...

Pinokio 앱 설치 - 오픈 소스 AI 플랫폼

  Pinokio 는 오픈 소스 AI 플랫폼이다. 로컬에서 AI 애플리케이션을 쉽게 설치하고 실행할 수 있게 도와주는 오픈 소스 AI 플랫폼이다. 이 플랫폼은 사용자가 복잡한 설치 과정 없이 클릭 한 번으로 AI 도구들을 설치할 수 있도록 설계되어 있다. 이를 통해 기술적인 배경 지식이 없는 초보자나 비전문가들도 쉽게 AI 애플리케이션을 사용할 수 있다.   이미 설치되어 있는 애플리케이션이 있어도 별도의 독립된 공간에서 문제없이 사용할 수 있게 해준다.   우리가 stable diffusion 을 comfyui 에서 사용하기 위해서는 "Python", "git ....", "conda"  뭔지 모르지만 설치해야 하는데 pinokio 브라우저에서 원 클릭으로 알아서 설치를 해주기 때문에  컴맹인 일반인도 쉽게 설치하고 사용 할 수 있다. pinokio.computer 1. Pinokio 주요 기능 원클릭 설치 : 복잡한 환경 설정이나 명령어 입력 없이도 다양한 AI 모델을 한 번의 클릭으로 설치할 수 있다. 예를 들어, Comfyui 나 Flux 같은 AI 도구들을 손쉽게 설치할 수 있다. 다양한 AI 애플리케이션 제공 : Pinokio는 다양한 오픈 소스 AI 애플리케이션을 제공하는 허브 역할을 하며, Pinokio 브라우저 나 홈페이지에서 쉽게 찾아 설치할 수 있다. 브라우저 기반 인터페이스 : 모든 설치된 애플리케이션은 Pinokio 웹 브라우저에서 관리할 수 있어, 친숙한 인터페이스로 쉽게 사용이 가능하다. 독립적인 가상 컴퓨터 : Pinokio는 백엔드 작업을 자동으로 처리하여, 애플리케이션이 로컬에서 실행되는 동안 인터넷에 연결되어 있지 않아도 된다. 2. Pinokio 설치 구글에서 pinokio 를 검색하여 " pinokio.computer " 를 클릭 Download 클릭 다운로드 된 pinokio 압축 파일을  푼다. pinokio 설치파일을 실행하여 설치 설치과정은 복...

Flux Lora 제작 - Local 에서 Fluxgym 을 이용하여 자체 Lora 만들기

 Flux Lora 는 일관된 이미지를 만드는데 꼭 필요하다. 특히 일관된 얼굴의 이미지를 만드는데 있어서 다른 기능들 (ipadapter , controlnet, imgtoimg 등) 을 이용하는 것 보다 훨씬 일정한 캐릭터를 생성하게 해준다.  문제는 이런 Lora는 주로 CIVITAI , Tensor, Hugging face 등 사이트에서 다운 받아 사용하면 되지만  그것은 나만의 독특한 캐릭터가 아니고 나의 취향과 일치 되기가 어려워서 Lora를 구하기가 어렵다.  아니면 그런 사이트 내에서 자체 Lora를 제작하면 되는데 모두 비용이 필요하다. 여기 소개하는 Fluxgym AI 는 Local 컴퓨터에서 VRAM 12G 이상이면 자체 Lora를 만들 수 있게 해준다.   소요되는 시간도 생각보다 많이 걸리지 않는다.   이제 설치하고 자체 Lora를 한번 만들어 보자. Fluxgym 으로 만든 Lora 대표이미지 1. fluxgym 설치 pinokio 앱을 실행한다. ( pinokio 앱 설치 참조 ) 우측 상단 맨 처음 아이콘 (discover) 클릭 fluxgym 을 찾아서 클릭 fluxgym 이것을 클릭하면 된다. 여러가지 파일들을 설치하기 때문에 시간이 좀 소요될 것이다. 모든 설치가 끝나면 pinokio 브라우저 하단 부분에 fluxgym 메뉴가 추가된다. fluxgym 나중에 불필요하면 삭제(쓰레기통 아이콘 클릭) 하면 모두 unintall 된다. 2. fluxgym 실행 항상 pinokio 앱을 실행하여 pinokio 브라우저에서 fluxgym 을 클릭하면 된다. flux화면3-1 -. 1번항 : 여기에 입력한 대로 fluxgym/outputs/ 의 하위 폴더를 만들어 준다. -. 2번항 : Lora를 작동시키는 trigger word 를 입력한다. (예,  hart_style_a......) -. 3번항 : 자신의 가능한 VRAM 선택 : 나는 12 G 선택 ...