私的AI研究会 > ComfyUI15

画像生成AI「ComfyUI」15(実践編Ⅵ) == 編集中 ==

 「ComfyUI」を使ってローカル環境でのAI画像生成を検証する

▲ 目 次
※ 最終更新:2026/06/11 

『Ideogram 4.0』を検証する

 カナダの Ideogram(イデオグラム)社が開発した、最先端のオープンウェイト画像生成AIモデル「Ideogram 4.0」を検証してみる

概要

プロジェクトで作成するワークフロー

画像生成のための環境構築

  1. 必要モデルのダウンロードと配置
    モデル名ファイル名(.safetensors)配置先(/StabilityMatrix/Data/)ダウンロード URL

Step 1:標準テンプレート を検証する

 ComfyUI オフィシャルサイトで公開されているテンプレートのシード値を固定して再現性を確保し動かしながら整理する
  1. ワークフローを選ぶ
    ① 左端のメニューから「Template」を選択
    ②「Video」を押す
    ③ 検索欄に「Ideogram」を入力する

    ・表示された一覧からワークフローを選ぶ
    ④「Ideogram v4: Trxt to Image」Text to Image 基本ワークフロー

    ・ワークフローでエラーが発生する場合は前項のモデルの配置を確認する

    ・生成画像 768x1376
    Ideogram_4.0_00006_m.jpg

  2. 動作確認を行ってから保存する
    テンプレート名ワークフロー保存ワークフロー名
    Ideogram v4: Trxt to Imageimage_ideogram4_t2i.jsonimage_ideogram4_t2i_org.json
    ・オリジナルのワークフロー
    comfyui_934_m.jpg
    image_ideogram4_t2i.json
     Prompt:

    A surreal streetwear mixed-media collage poster featuring a relaxed skateboarder mid-air against a vibrant blue sky, backed by giant puffy 3D letters spelling 'COMFY'. The composition blends retro magazine cutout aesthetics with grunge elements like torn paper banners and distressed red stamps, conveying
    鮮やかな青空を背景に、空中でリラックスしたスケートボーダーが描かれ、その背後には「COMFY」と綴られた巨大なふっくらとした3D文字が配された、シュールなストリートウェアのミクストメディアコラージュポスター。レトロな雑誌の切り抜き美学と、破れた紙のバナーや使い古された赤い切手などのグランジ要素を融合させた構成で、
    ・シード値を固定して整理したワークフロー
    comfyui_935_m.jpg
    image_ideogram4_t2i_org.json
    comfyui_935a_m.jpg
    SubGraph
    ・ワークフローに含まれる注意書き
    本文(英語)日本語訳(AI による翻訳)
    Text to Image (Ideogram v4)
    About the model

    The model is trained on structured JSON captions (scene summary, style block, background, and optional per-object descriptions with bounding boxes and hex color palettes). Official inference validates prompts against that schema. Guidance uses flow-matching with asymmetric classifier-free guidance (the unconditional pass drops text tokens)—not a separate negative prompt string.

    NOTE: If you see "Image blocked by safety filter" it is because of safety training in the model itself, ComfyUI does not have any safety filter.

    How to build prompts here

    (a) Raw input: Paste or type directly into the subgraph. You may use plain natural language, but structured JSON (as in the subgraph default) gives the most predictable layout and style control.
    (b) Model-assisted (LLM): Use the Ideogram4 Caption Prompt Template output with any LLM tools to obtain the JSON format prompt
    モデルについて

    このモデルは、構造化されたJSONキャプション(シーン概要、スタイルブロック、背景、およびオプションのオブジェクトごとの説明(バウンディングボックスと16進数カラーパレットを含む))で学習されています。公式推論では、プロンプトをこのスキーマに照らし合わせて検証します。ガイダンスは、非対称分類器フリーガイダンス(無条件合格の場合はテキストトークンが破棄されます)を用いたフローマッチングを使用しており、別途否定プロンプト文字列は使用していません。

    注:もし「安全フィルターにより画像がブロックされました」と表示される場合は、モデル自体の安全学習によるものであり、ComfyUIには安全フィルターは搭載されていません。

    プロンプトの作成方法

    (a) 生の入力:サブグラフに直接貼り付けるか入力してください。自然言語も使用できますが、構造化されたJSON(サブグラフのデフォルト設定)を使用すると、レイアウトとスタイルの制御が最も予測しやすくなります。
    (b) モデル支援(LLM):Ideogram4キャプションプロンプトテンプレートの出力を任意のLLMツールで使用すると、JSON形式のプロンプトを取得できます。
    Ideogram4 Caption Prompt Template
    This is a prompt construction template. You can copy its input into any LLM to generate matching prompts.
    You may try installing or updating KJNodes and use the Ideogram 4 Prompt Builder KJ node to achieve visual control over prompts.
    これはプロンプト作成テンプレートです。このテンプレートの入力内容を任意のLLMにコピーすることで、対応するプロンプトを生成できます。
    プロンプトを視覚的に制御するには、KJNodesをインストールまたは更新し、Ideogram 4 Prompt Builder KJノードを使用してみてください。
    ▼ Ideogram4 Caption Prompt Templateの システムプロンプト全文

Real shops, stalls, restaurants, vehicles, signage carry text on practically every surface. Generate text generously: shop name sign, sub-signs (`OPEN` / `TODAY'S SPECIAL`), menu board with handwritten items, price labels, jar/bottle labels, name tags, posters, fortune slips, vehicle/equipment labels, sponsor logos. `text: []` is almost always wrong for built environments — if your scene has a shop/stall/restaurant/workshop/market/vehicle, populate text. Specific content, never `various labels` or `menu items`.

**Override:** when the brief explicitly says `minimal`, `sparse`, `empty`, `lonely`, `isolated`, `quiet`, `still`, `negative space`, `alone`, `single subject`, `in the middle of nowhere`, respect the restraint and skip populate.

**Fantastical / sci-fi / fantasy / futuristic briefs get a populate bonus.** Stack sky drama (galaxies, ringed planets, multiple moons, nebulae), opposing focal points (volcano right / waterfall left), mid-distance scale anchors (crystal columns, futuristic cityscape, megastructures), light/energy effects throughout, exotic architecture/geology, deeply saturated palettes.

## TEXT HANDLING

For each text element:
- `text` — literal characters appearing in the image, verbatim. Preserve diacritics, capitalization, punctuation. Never transliterate or strip.
- `bbox` — optional, same coordinate system as obj elements.
- `desc` — free-form prose covering size, location, font style, color, orientation, visual effects.

**Sources of text to include:**
1. **User-quoted text** (single OR double quotes) — verbatim, exact characters.
2. **Format-required text** — headlines, taglines, author names, dates, venues, CTA copy, brand names, publisher marks, edition numbers (when format implies them).
3. **In-scene contextual text** — signage, labels, license plates, badges, jersey numbers, t-shirt prints, awnings, neon signs, name tags.
4. **Numeric content** — race numbers, jersey numbers, dates, prices, scores, time displays, address numbers. Numbers ARE text.
5. **Prominent product brand text** — if an element names a prominent product (bottle, cosmetic, package, beverage) and the user didn't supply a real brand, invent a complete brand identity and list every label as text elements.

**Rules:**
- Exhaustive: if a viewer could read it, it goes in the list.
- Each text element appears ONCE in the list. Do NOT also describe its characters in `description` — refer by role/position instead.
- Use `\n` for line breaks WITHIN a single text element (multi-line sign, stacked headline). Use SEPARATE list items for visually distinct text blocks.
- For stylized hero typography where each letter is a distinct visual unit, stack with `\n` at natural word breaks — long single-line stylized titles produce typos and dropped letters. e.g., `"ENTRE\nVERSOS E\nCONTOS"` not `"ENTRE VERSOS E CONTOS"`.
- **Language scoping:** `scene`/`elements`/`description`/position descriptors are always in ENGLISH regardless of the user's brief language. Only the literal `text` field characters follow the user's brief language. Portuguese brief → English prose + Portuguese `text:` content.

## POP CULTURE, BRANDS, NAMED REFERENCES

When the user idea names or clearly implies a brand, trademark, product (sneaker/car/device), public figure, athlete, musician, actor, fictional character, film, show, game, franchise, team — the output MUST carry an explicit named reference in the relevant element `desc`, not a generic stand-in describing the look.

Don't replace `Nike Dunk Low Panda` with `black and white retro sneakers`, `Spider-Man` with `a red-and-blue masked superhero`, `The Beatles` with `four men in matching suits` — unless the user asked for an anonymous lookalike. Name the specific thing the user pointed at.

## TRANSPARENT BACKGROUND

If the user's idea calls for transparent background, transparent canvas, alpha channel, cutout/isolated subject, sticker-style with no backdrop, or similar, the `background` field MUST be exactly this string, verbatim and nothing else: `transparent background`

Do not paraphrase (no `clear backdrop`, `empty alpha`, `no background`, `PNG transparency`).

In `high_level_description`, include the literal phrase `on a transparent background`.

[USER]
TARGET IMAGE ASPECT RATIO: 768:1376 (width:height).
User idea: A surreal streetwear mixed-media collage poster featuring a relaxed skateboarder mid-air against a vibrant blue sky, backed by giant puffy 3D letters spelling 'COMFY'. The composition blends retro magazine cutout aesthetics with grunge elements like torn paper banners and distressed red stamps, conveying};|

Ideogram_4.0_00004_m.jpg
Ideogram_4.0_00005_m.jpg
Ideogram_4.0_00007_m.jpg
 

更新履歴

 

参考資料