AI
기분을 색으로 바꿔주는 AI - Mood Palette Generator
devkitsune
2025. 10. 2. 14:02
안녕하세요, 개발여우입니다.
재미있는 프로젝트 하나 소개하려고 합니다.
구글에서 만들었으며, EmbeddingGemma라는 임베딩 모델 기반으로 동작하며, 기분 뿐만 아니라 단어 등도 색상 팔레트 5개를 만들어주는 프로젝트입니다.
https://huggingface.co/spaces/google/mood-palette
Mood Palette Generator - a Hugging Face Space by google
huggingface.co
기본 예시인 '딸기 아이스크림'을 입력하면,
다음과 같은 색상이 나옵니다
Lemon Chiffon | #FFFACD | Score: 0.53
Coral | #FF7F50 | Score: 0.52
Hot Pink | #FF69B4 | Score: 0.51
Plum | #DDA0DD | Score: 0.49
Tangerine | #F28500 | Score: 0.48
'눈보라속 따뜻한 오두막'을 입력했더니 아래와 같이 나오네요.
Beige | #F5F5DC | Score: 0.54
Forest Green | #228B22 | Score: 0.53
Sky Blue | #87CEEB | Score: 0.53
Hot Pink | #FF69B4 | Score: 0.52
Coral | #FF7F50 | Score: 0.51
더보기
코드 내부에는 아래와 같은 컬러와 설명들이 들어있네요.
COLOR_DATA = [ |
{ |
"name": "Crimson", |
"hex": "#DC143C", |
"description": "A deep, rich red color, leaning slightly towards purple." |
}, |
{ |
"name": "Scarlet", |
"hex": "#FF2400", |
"description": "A brilliant, vivid red with a hint of orange." |
}, |
{ |
"name": "Coral", |
"hex": "#FF7F50", |
"description": "A vibrant pinkish-orange reminiscent of marine invertebrates." |
}, |
{ |
"name": "Tangerine", |
"hex": "#F28500", |
"description": "A saturated, zesty orange, like the ripe citrus fruit." |
}, |
{ |
"name": "Gold", |
"hex": "#FFD700", |
"description": "A bright, metallic yellow associated with wealth and luxury." |
}, |
{ |
"name": "Lemon Chiffon", |
"hex": "#FFFACD", |
"description": "A pale, light yellow, as soft and airy as the dessert." |
}, |
{ |
"name": "Lime Green", |
"hex": "#32CD32", |
"description": "A bright green color, evoking freshness and zesty energy." |
}, |
{ |
"name": "Forest Green", |
"hex": "#228B22", |
"description": "A dark, shaded green, like the canopy of a dense forest." |
}, |
{ |
"name": "Teal", |
"hex": "#008080", |
"description": "A medium blue-green color, often seen as sophisticated and calming." |
}, |
{ |
"name": "Cyan", |
"hex": "#00FFFF", |
"description": "A vibrant greenish-blue, one of the primary subtractive colors." |
}, |
{ |
"name": "Sky Blue", |
"hex": "#87CEEB", |
"description": "A light, pale blue, like the color of a clear daytime sky." |
}, |
{ |
"name": "Royal Blue", |
"hex": "#4169E1", |
"description": "A deep, vivid blue that is both rich and bright." |
}, |
{ |
"name": "Indigo", |
"hex": "#4B0082", |
"description": "A deep, rich color between blue and violet in the spectrum." |
}, |
{ |
"name": "Lavender", |
"hex": "#E6E6FA", |
"description": "A light, pale purple with a bluish hue, named after the flower." |
}, |
{ |
"name": "Plum", |
"hex": "#DDA0DD", |
"description": "A reddish-purple color, like the ripe fruit it's named after." |
}, |
{ |
"name": "Magenta", |
"hex": "#FF00FF", |
"description": "A purplish-red color that lies between red and violet." |
}, |
{ |
"name": "Hot Pink", |
"hex": "#FF69B4", |
"description": "A bright, vivid pink that is both bold and energetic." |
}, |
{ |
"name": "Ivory", |
"hex": "#FFFFF0", |
"description": "An off-white color that resembles the material from tusks and teeth." |
}, |
{ |
"name": "Beige", |
"hex": "#F5F5DC", |
"description": "A pale sandy fawn color, often used as a warm, neutral tone." |
}, |
{ |
"name": "Taupe", |
"hex": "#483C32", |
"description": "A dark grayish-brown or brownish-gray color." |
}, |
{ |
"name": "Slate Gray", |
"hex": "#708090", |
"description": "A medium gray with a slight blue tinge, like the metamorphic rock." |
}, |
{ |
"name": "Charcoal", |
"hex": "#36454F", |
"description": "A dark, almost black gray, like burnt wood." |
}, |
{ |
"name": "Onyx", |
"hex": "#353839", |
"description": "A deep, rich black, often with a subtle hint of dark blue." |
}, |
{ |
"name": "Emerald", |
"hex": "#50C878", |
"description": "A brilliant green, named after the precious gemstone." |
}, |
{ |
"name": "Sapphire", |
"hex": "#0F52BA", |
"description": "A deep, lustrous blue, reminiscent of the valuable gemstone." |
}, |
{ |
"name": "Ruby", |
"hex": "#E0115F", |
"description": "A deep red color, inspired by the gemstone of the same name." |
}, |
{ |
"name": "Amethyst", |
"hex": "#9966CC", |
"description": "A moderate, violet-purple color, like the quartz gemstone." |
}, |
{ |
"name": "Peridot", |
"hex": "#E6E200", |
"description": "A light olive-green or yellowish-green, named for the gem." |
}, |
{ |
"name": "Turquoise", |
"hex": "#40E0D0", |
"description": "A greenish-blue color, often associated with tropical waters." |
}, |
{ |
"name": "Silver", |
"hex": "#C0C0C0", |
"description": "A metallic gray color that resembles polished silver." |
}, |
{ |
"name": "Bronze", |
"hex": "#CD7F32", |
"description": "A metallic brown color that resembles the alloy of copper and tin." |
}, |
{ |
"name": "Obsidian", |
"hex": "#000000", |
"description": "A pure, deep black, like the volcanic glass formed from cooled lava." |
} |
] |
임베딩 모델은 검색용도로만 사용할 줄 알았는데, 이런 사용법을 보니까 새롭네요.
나중에 시간이 된다면, 재미있는 프로젝트 하나 만들어보면 좋을 것 같습니다.