mcpField
S
style-transfer

style-transfer

github.com/eachlabsクリエイティブ・メディア44385 回インストール今日更新
リポジトリ

style-transfer について

style-transfer は each::sense を使う画像スタイル変換スキルです。写真の構図や被写体を保ちながら、絵画・イラスト・デジタルアート風に変換し、参照画像や効果の強さも指定できます。

主な機能

  1. 01古典絵画やデジタルアートのスタイル
  2. 02参照画像からのスタイル適用
  3. 03顔の特徴と構図の保持
  4. 04強度を変えたバリエーション生成

活用シーン

  1. 01風景写真を印象派風に変換
  2. 02ポートレートをアニメやドット絵に変換
  3. 03指定作品のスタイルを写真に適用

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/eachlabs/skills --skill style-transfer

インストール後、Claude Code で/style-transferを入力して読み込まれたか確認します。

同梱ファイルreferences/SSE-EVENTS.md

詳細

画像のスタイル変換

each::sense を使って、あらゆる写真を見事な芸術スタイルに変換します。このスキルでは、元の構図と被写体を保ちながら、有名な画家の技法、イラストのスタイル、デジタルアートを画像に適用できます。

特長

  • クラシックアートのスタイル:Van Gogh、Monet、Picasso、Rembrandt
  • 伝統的な画材:水彩画、油絵、鉛筆スケッチ、木炭画
  • デジタルアート:アニメ/漫画、ピクセルアート、ポップアート、コミック
  • カスタム参照画像:任意の参照画像をスタイルの元として使用
  • 保持オプション:顔の特徴、構図、重要な細部を維持
  • 複数の出力:強度の異なるバリエーションを生成

クイックスタート

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Transform this photo into Van Gogh Starry Night style with swirling brushstrokes and vibrant blues"}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/my-portrait.jpg"],
    "mode": "max"
  }'

スタイルのカテゴリ

カテゴリスタイル最適な用途
印象派Monet、Renoir、Degas風景、庭園、柔らかな雰囲気の場面
ポスト印象派Van Gogh、Cezanne肖像、表現豊かな場面
キュビスムPicasso、Braque肖像、抽象的な解釈
伝統的水彩画、油絵、鉛筆画あらゆる被写体、クラシックな雰囲気
デジタルアニメ、ピクセルアート、ポップアートモダンでスタイリッシュな表現
カスタム任意の参照画像特定の美的スタイルに合わせる

使用例

1. Van Gogh の「星月夜」風

Van Gogh を象徴する渦巻く筆致と表現豊かな色彩を使って写真を変換します。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Apply Van Gogh Starry Night style to this cityscape photo. Use swirling, dynamic brushstrokes, deep blues and bright yellows, expressive post-impressionist technique. Make the sky dramatic with spiral patterns."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/cityscape.jpg"],
    "mode": "max"
  }'
2. Picasso のキュビスム風

Picasso の革新的なキュビスムのスタイルで、写真を分解して再構成します。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Transform this portrait into Picasso cubist style. Fragment the face into geometric shapes, show multiple perspectives simultaneously, use muted earth tones with bold accents. Analytical cubism approach."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/portrait.jpg"],
    "mode": "max"
  }'
3. Monet の印象派風

風景や場面に、Monet の柔らかく光に満ちた印象派の技法を適用します。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Apply Claude Monet impressionist style to this garden photo. Soft dappled light, loose brushstrokes, focus on atmosphere and light rather than details. Like his Water Lilies series - dreamy and ethereal."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/garden.jpg"],
    "mode": "max"
  }'
4. アニメ/漫画風のスタイル変換

写真を日本のアニメや漫画のイラスト風に変換します。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Transform this photo into anime style. Large expressive eyes, clean line art, cel-shaded coloring, vibrant colors. Studio Ghibli inspired aesthetic with soft backgrounds and detailed character rendering."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/person-photo.jpg"],
    "mode": "max"
  }'
5. 水彩画風

流れるような色彩と柔らかな輪郭で、写真を繊細な水彩画に変換します。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Convert this landscape photo into a watercolor painting. Soft washes of color, visible paper texture, gentle color bleeds, transparent layers. Traditional watercolor technique with wet-on-wet effects."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/landscape.jpg"],
    "mode": "max"
  }'
6. 油絵風

豊かな質感の油絵の技法を適用し、美術館に飾れるような芸術作品に仕上げます。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Transform this portrait into a classical oil painting. Rich impasto brushstrokes, dramatic chiaroscuro lighting, deep saturated colors. Renaissance master style with visible paint texture and depth."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/portrait.jpg"],
    "mode": "max"
  }'
7. 鉛筆スケッチ風

写真を、クロスハッチングと陰影を施した細密な鉛筆画に変換します。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Convert this photo into a detailed pencil sketch. Fine crosshatching for shading, clean outlines, graphite texture on paper. Photorealistic pencil drawing style with subtle gradients and precise details."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/subject.jpg"],
    "mode": "max"
  }'
8. ポップアート風

Warhol や Lichtenstein に着想を得た、大胆でカラフルなポップアートに写真を変換します。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Apply pop art style to this portrait. Bold flat colors, Ben-Day dots, high contrast, Andy Warhol inspired. Bright neon palette with black outlines, comic book aesthetic meets fine art."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/portrait.jpg"],
    "mode": "max"
  }'
9. ピクセルアート風

限られた色数を使ったレトロなピクセルアートに写真を変換します。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Transform this photo into pixel art style. 16-bit retro gaming aesthetic, limited color palette, visible pixels, clean edges. Like classic SNES or arcade game sprites but detailed."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/character.jpg"],
    "mode": "max"
  }'
10. カスタム参照画像のスタイル

任意の芸術作品をスタイルの参照として使い、その美的な特徴を写真に反映します。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Apply the artistic style from the first image (the reference artwork) to the second image (the photo). Match the color palette, brushwork, texture, and overall aesthetic of the reference while preserving the composition of the photo."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": [
      "https://example.com/reference-artwork.jpg",
      "https://example.com/my-photo.jpg"
    ],
    "mode": "max"
  }'

ベストプラクティス

スタイル変換のヒント
  • 具体的に指定する:希望するスタイルの要素(筆致、色、技法)を詳しく説明します
  • 画家を指定する:より正確な結果を得るため、特定の画家や作品に言及します
  • 特徴を保つ:肖像の場合は、顔の特徴を保つかどうかを指定します
  • 強度を調整する:「控えめに」「ほどほどに」「大胆に」などの言葉を使って効果の強さを調整します
画像のガイドライン
  • 高解像度:最良の結果を得るため、品質の高い元画像を使用します
  • 被写体を明確にする:明るく照らされ、被写体がはっきりした写真は、より良く変換できます
  • 構図も重要です:シンプルな構図のほうが、よりすっきりとしたスタイルの結果を得られることがよくあります
スタイル変換のプロンプトのヒント

プロンプトには次の情報を含めます。

  1. スタイル名:具体的な画家または技法(Van Gogh、水彩画、アニメ)
  2. 重要な要素:希望する筆致、色、質感
  3. 雰囲気:ドラマチック、柔らかい、鮮やか、落ち着いた
  4. 保持する要素:元画像から残すもの(顔、構図)
  5. 強度:スタイルをどの程度強く適用するか
プロンプトの構成例
"Apply [style name] style to this [subject type].
[Describe key style elements: brushstrokes, colors, technique].
[Mood and atmosphere].
[What to preserve from original]."

モードの選択

生成する前にユーザーに確認します。

「高速で低コストな仕上がりと、高品質な仕上がりのどちらを希望しますか?」

モード最適な用途速度品質
max最終作品、印刷、プロフェッショナルな用途遅め最高
ecoクイックプレビュー、スタイルの検討、下書き速め良好

複数ターンでのスタイル調整

スタイル変換を繰り返し調整するには、session_id を使用します。

# Initial style transfer
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Apply Van Gogh style to this portrait"}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/portrait.jpg"],
    "session_id": "style-project-001"
  }'

# Refine the style
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Make the brushstrokes more pronounced and add more yellow tones like in Starry Night"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "style-project-001"
  }'

# Try a variation
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Now create a version with cooler blue tones instead"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "style-project-001"
  }'

スタイルの一括探索

比較用に複数のスタイルバリエーションを生成します:

# Van Gogh variation
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Apply Van Gogh style to this photo"}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/photo.jpg"],
    "mode": "eco"
  }'

# Monet variation
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Apply Monet impressionist style to this photo"}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/photo.jpg"],
    "mode": "eco"
  }'

# Anime variation
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Transform this photo into anime style"}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/photo.jpg"],
    "mode": "eco"
  }'

エラー処理

エラー原因解決策
Failed to create prediction: HTTP 422残高不足eachlabs.ai でチャージしてください
コンテンツポリシー違反禁止されているコンテンツ入力画像がコンテンツポリシーに準拠していることを確認してください
タイムアウト生成処理が複雑クライアントのタイムアウトを最低10分に設定してください
スタイルが認識されないスタイルの説明が曖昧希望する芸術スタイルをより具体的に指定してください

関連スキル

  • each-sense - コア API ドキュメント
  • image-generation - テキストから画像を生成
  • image-editing - 画像を編集・強化
  • product-photo-generation - EC 向け商品写真

コメント