私的AI研究会 > ComfyUI15
「ComfyUI」を使ってローカル環境でのAI画像生成を検証する
| カナダの Ideogram(イデオグラム)社が開発した、最先端のオープンウェイト画像生成AIモデル「Ideogram 4.0」を検証してみる |
| このプロジェクトで作成するワークフローと関連データは下記にアップロードしている(更新されている場合は再度ダウンロードのこと) |
📂ComfyUI ├─📂input ← ワークフローに含まれる入力画像 └─📂user └─📂default └─📂workflows ← ワークフローの保存場所 : ├─📂~beta ├─📂Ideogram ← この章で作成するワークフロー :・解凍してできる「ComfyUI/」フォルダを「StabilityMatrix/Data/Packages/ComfyUI」へ上書きコピーする
| モデル名 | ファイル名(.safetensors) | 配置先(/StabilityMatrix/Data/) | ダウンロード URL | 共通で使用 | |
| checkpoints | ideogram4_fp8_scaled | Models/ | DiffusionModels/ | ideogram4_fp8_scaled.safetensors | |
| ideogram4_unconditional_fp8_scaled | ideogram4_unconditional_fp8_scaled.safetensors | ||||
| text_encoders | qwen3vl_8b_fp8_scaled | TextEncoders | qwen3vl_8b_fp8_scaled.safetensors | ||
| gemma4_e4b_it_fp8_scaled | gemma4_e4b_it_fp8_scaled.safetensors | HiDream-O1 | |||
| vae | flux2-vae | VAE/ | flux2-vae.safetensors | FLUX.2 | |
| ComfyUI オフィシャルサイトで公開されているテンプレートのシード値を固定して再現性を確保し動かしながら整理する |
| テンプレート名 | ワークフロー | 保存ワークフロー名 | |
| ④ | Ideogram v4: Trxt to Image | image_ideogram4_t2i.json | image_ideogram4_t2i_org.json |
| 本文(英語) | 日本語訳(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ノードを使用してみてください。 |
| Step 1 のワークフローを整理して「Text to Image」の基本部分だけで構成する(JSON フォーマットのプロンプトを想定) |
| Gemini 入力テキスト |
|
【Ideogram 4プロンプトガイドライン】に従って、以下の【自然文のプロンプト】の内容の画像を Ideogram 4 で生成するための JSON 形式のプロンプトを英語で生成してください。 ----- 【Ideogram 4プロンプトガイドライン】 https://github.com/ideogram-oss/ideogram4/blob/main/docs/prompting.md ----- 【自然文のプロンプト】 旅行雑誌「Ideogram」の表紙。美しくて壮大な自然の風景。上部と左右の余白に、おしゃれな雑誌のロゴ、季節の特集記事のタイトル、サブテキスト、発行月と年を配置。雑誌特有の洗練されたレイアウト、シネマティックな照明、高画質、クリアで鮮明。 |
| Step 1 ワークフローの「Caption Prompt Template」部分を整理して構成する。LLM 入力用テキスト生成 |
| 「Ideogram」8000_ideogram4_prompt.json | 8000 SubGraph |
![]() | ![]() |
| 入力プロンプト (自然言語) | LLM 向け出力テキスト |
| 旅行雑誌「Ideogram」の表紙。美しくて壮大な自然の風景。上部と左右の余白に、おしゃれな雑誌のロゴ、季節の特集記事のタイトル、サブテキスト、発行月と年を配置。雑誌特有の洗練されたレイアウト、シネマティックな照明、高画質、クリアで鮮明。 |
| {"aspect_ratio":"896:1184","high_level_description":"A sophisticated travel magazine cover for 'Ideogram' featuring a breathtakingly grand and beautiful natural landscape photograph with professional editorial typography layered seamlessly over the top-third and side margins.","compositional_deconstruction":{"background":"A majestic mountain range at sunrise, with jagged peaks catching the first amber rays of light against a crisp, cool-neutral sky filled with soft, wispy clouds. A calm, glassy alpine lake in the lower half reflects the mountains perfectly. The global color balance is clean and natural, avoiding artificial warm grading outside of the physical sunlit highlights on the stone peaks. The entire landscape serves as a deep, receding architectural backdrop for the cover elements.","elements":[{"type":"obj","bbox":[40,150,160,850],"desc":"The primary background element of the upper frame, acting as the main magazine masthead bar that anchors the title text over the sky."},{"type":"text","bbox":[50,160,150,840],"text":"Ideogram","desc":"The main magazine title logo, rendered in an elegant, bold serif typeface, centered horizontally near the top edge. The color is a crisp, clean white that contrasts sharply with the sky behind it."},{"type":"text","bbox":[180,160,210,400],"text":"AUTUMN SPECIAL","desc":"A seasonal feature banner text, written in a clean, all-caps, light sans-serif font. It is positioned directly beneath the main logo on the left side, colored in a subtle cream tone."},{"type":"text","bbox":[220,160,320,600],"text":"THE GREAT\nESCAPE","desc":"The main feature article headline, split into two lines. It uses a bold, modern display serif typeface in pure white, commanding attention in the upper-left quadrant of the layout."},{"type":"text","bbox":[340,160,390,550],"text":"Discovering the untouched wilderness of the northern peaks.","desc":"A multi-line editorial subtext block located beneath the main headline, rendered in a small, regular upright sans-serif font with a clean white color."},{"type":"text","bbox":[180,780,210,840],"text":"ISSUE 42","desc":"Issue numbering text positioned on the upper-right side, aligned with the seasonal banner, in a light, small sans-serif font."},{"type":"text","bbox":[220,740,240,840],"text":"OCTOBER 2026","desc":"The publication month and year text, written in a small, regular sans-serif typeface, aligned vertically below the issue number along the right margin."}]}} |
| Step 2 のワークフロー「8001_ideogram4_t2i.json」のSubGraph を展開 |
#ref(): File not found: "comfyui_939b_m.jpg" at page "ComfyUI15"