기본 콘텐츠로 건너뛰기

구글 AI Studio - 이미지로 부터 promot(프롬프트)를 추출하는 앱 만들기

 구글 AI Studio 를 이용하여 이미지로 부터 prompt(프롬프트)를 추출하는 간단한 앱을 만들어 보자.

chatGPT, GEMINI, qwen3 VL 이용등 여러곳에서 무료로 프롬프트를 만들 수 가 있다.
여기서는 내가 사용하기 편리한 앱을 만들어서 프롬프트를 추출하는 방법을 설명한다.
과거 컴퓨터 전공자의 전유물이었던 코딩이 파이썬 등을 거쳐 이제는 AI 덕분에 코드를 전혀 몰라도 만들고 싶은 내용을 말로 설명만 하면 프로그램이 완성되는 시대가 되었다.

AI Studio by Google

1. 구글 AI Studio  란 ?

    구글에서 제공하는 AI 애플리케이션 개발 플랫폼이다.  가장 큰 특징은 코딩 지식이 전혀 없는 사용자도 강력한 AI 모델인 제미나이(Gemini) 등을 활용하여 자신만의 서비스를 쉽고 빠르게 만들 수 있다는 점이다.  이것은 독자적으로 로컬에서 사용하는 것이 아닌  구글 제미나이의 백그라운드 하에서 사용하기 편하게 나만의 앱을 만들어 사용하는 것이다.
현재는 대부분의 기능이 무료로 무제한 사용 가능하다.

2. 구글 AI Studio 의 특징

  • 코드 없는 개발 (No-Code) : 사용자가 만들고 싶은 서비스의 목표와 기능을 **말로 설명(프롬프트)**만 하면 AI가 자동으로 코드를 생성하고 애플리케이션의 기본적인 구조를 만들어 준다.
  • 제미나이 통합 : 구글의 최신 AI 모델인 제미나이가 백그라운드에서 작동하여, 사용자의 복잡한 요청도 높은 정확도의 서비스로 구현해 준다.
  • 신속한 테스트 및 수정 : 서비스가 완성된 후에도 기능 추가나 UI 변경, 오류 수정 등을 추가적인 '말' 요청만으로 즉시 반영할 수 있어 개발 속도가 매우 빠르다.
  • 무료 및 무제한 사용 : 기본적인 AI 서비스 개발 기능은 대부분 무료로 무제한 사용할 수 있어 누구나 아이디어를 현실화하는 데 제약이 적다.
  • 대략 간단한 앱 생성 속도가 100초 정도면 만들어 진다.
 

3. 구글 AI Studio 를 이용하여 나만의 앱 만들어 보기

    여기서는 이미지를 로딩한후 그 이미지를 분석하고 프롬프트로 만들어 주는 앱을 만들것이다.
  • 구글에서 AI Studio를 검색한 후 사이트에 접속한다.
  • 로그인은 기본적으로 구글계정이 있으면 된다.
  • 초기 화면의 좌측에서 [build] 를 선택한다.
  • "Build your ideas with GEMINI" 아래 입력란에 만들고 싶은 앱의 요구사항을 작성 해준다.
  • 입력 내용 : "이미지를 로딩하여 그 이미지에 있는 1. 인물의 의상 ,2. 포즈, 3. 이미지 색감 및 조명, 4. 이미지 스타일 을 잘 분석하여 prompt 를 만들어 주는 앱을 만들고 싶어, 1,2,3,4 각각을 선택할 수 있고 선택 것들에 관한 것만 만들게 해줘"   이런 식으로 입력해서 실행시켰다.
  • 만약 만들어진 앱을 수정하고 싶으면 수정사항을 추가로 입력한 후 실행하면 된다.
    • 추가 입력 : "선택조건에서 얼굴 및 머리 스타일 을 추가해줘"

  • 최종 결과 앱 화면

4. 사용해 보기

  • 입력 이미지 : 
    load Image

  • Outfit(의상) 선택한 후 Generate Prompt 실행
    • 결과 : The character wears a vibrant green fitted camisole with thin spaghetti straps, paired with a light blue-grey sheer midi skirt that exhibits a striking iridescent or holographic sheen, reflecting hues of pink, purple, and teal, with subtle hints of the legs visible beneath the translucent fabric. Completing the ensemble are elegant black patent leather high-heeled pumps with pointed toes, and stylish purple-tinted sunglasses featuring delicate gold frames.
  • Pose(포즈) 선택 후 실행
    • 결과 : A woman is captured in a relaxed pose, seated comfortably on a white sofa, with her head gently tilted back and face angled upwards as if basking in sunlight. Her right arm is casually extended and resting on the sofa's back cushion, while her left hand rests softly on her lap. Her legs are gracefully crossed at the ankles, conveying an air of elegant repose.
  • Face & Hair (얼굴/헤어) 선택 후 실행
    • 결과 : The woman's face is characterized by fair, smooth skin, a delicate jawline, and full, pouty red lips. She wears stylish purple-tinted sunglasses that cover her eyes, with a subtle golden frame, and her head is tilted upwards in a graceful pose, suggesting she's enjoying the sun. Her long, dark brown hair is neatly pulled back into a high, voluminous ponytail that falls elegantly over her shoulder, with a few soft strands framing her face.
  • Color & Lighting (색감/조명) 선택 후 실행
    • 결과 : The image is characterized by a strikingly bright and airy color palette, predominantly featuring crisp whites for the plush sofa and expansive background, punctuated by a refreshing lime green camisole and a translucent, iridescent skirt that shifts between soft blues, purples, pinks, and greens. Complementary colors include the deep black of her patent leather heels, the warm skin tones, and the vivid purple lenses of her sunglasses. The scene is bathed in intense, directional daylight originating from the upper left, which casts long, sharp diagonal shadows across the pristine white floor and wall, contributing to a clean and modern aesthetic. This strong, high-key lighting brilliantly illuminates the glossy surfaces of the shoes and sunglasses, while dramatically enhancing the holographic sheen and subtle transparency of the skirt, creating a lively and sun-drenched atmosphere.
  • Style(스타일) 선택 후 실행
    • 결과 : The image exhibits a clean and vibrant digital illustration style, characterized by smooth rendering, soft cel-shading, and crisp, defined lines. It blends elements of stylized realism with an anime-inspired aesthetic, featuring polished surfaces, a glowing effect on certain materials, and a bright, almost airbrushed quality that gives it a contemporary and highly polished look. The overall artistic medium appears to be digital art with a focus on graphic precision and luminous color palettes.
  • 두가지 의상 과 포즈를 선택 한 후 실행
    • 결과 : A woman is depicted in a relaxed yet stylish pose, seated on a plush sofa, her head tilted gracefully back and looking upwards with a slightly raised chin. She is dressed in a vibrant lime green fitted spaghetti strap tank top, complemented by a striking translucent midi skirt that flows elegantly around her legs, exhibiting a holographic shimmer with iridescent flashes of pink, purple, and cyan across its surface. On her feet are sleek black patent leather pointed-toe high heels, and she accessorizes with trendy purple-tinted cat-eye sunglasses with delicate frames, positioned on her face. Her right hand rests casually on the sofa cushion beside her, while her left arm is relaxed by her side, with her legs crossed or angled slightly forward.
  • 모두 선택한 후 실행
    • 결과 : A highly polished digital illustration in a semi-realistic, slightly stylized art style, featuring vibrant, high-contrast lighting that casts distinct shadows and bright highlights. The subject is a woman with smooth, fair skin, relaxing comfortably on a light-colored sofa, her body gently angled to the right with her head tilted back and looking upwards as if enjoying the sun. She is dressed in a simple, fitted olive-green spaghetti strap tank top, paired with a stunning high-waisted midi skirt crafted from a sheer, flowing light blue fabric that displays vivid iridescent reflections of pink, purple, and green across its surface. Her ensemble is completed by sleek, pointed-toe black patent leather high heels. Her face is accentuated by striking purple-tinted round sunglasses and a bold red lip, while her long, shiny dark brown hair is styled in a neat, high ponytail. The overall color palette is dominated by cool blues, greens, and neutrals, with dynamic pops of vibrant iridescence, all illuminated by strong, clear sunlight.
각각의 옵션에 따라 프롬프트를 만들어 주기 때문에 다양한 이미지를 병합하고 수정하여 이미지를 만들어보기 아주 쉽다.   모두 선택한 결과 프롬프트를 가지고 QWEN 으로 이미지를 생성 해 보았다.
qwen 이미지
똑 같을수는 없지만 비슷한 형태의 이미지를 만들 수 있다.  여기서 의상을 바꾸고 싶으면 다른 이미지에서 의상만 추출하여 변경하면된다.
의상 변경


얼굴,머리스타일 변경

5. 결론

    구글 AI 스튜디오는 아이디어명확한 설명만 있으면 누구나 개발자가 되어 나만의 AI 기반 웹 서비스를 만들 수 있는 혁신적인 공간이다.   여기서는 이미지로 부터 필요한 부분만을 프롬프트로 추출하는 앱을 만들었지만 다른 업무적으로 필요한 앱을 만들어 사용해도 좋은 아주 유용한 서비스이다.


댓글

이 블로그의 인기 게시물

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 선택 ...