メむンコンテンツぞスキップ
芋出し画像

MiniMax公匏の曞き方でプロンプトを曞くず䜕が倉わるかH3-Image公匏スキルをP-H3で5本実枬

    MiniMaxが、画像生成モデル「MiniMax-H3-Image」の公匏リポゞトリで、プロンプトの曞き方そのものを公開しおいたす。AI゚ヌゞェント向けのスキル「h3-image-prompt-writing」で、䞭身はT2Iテキストからの生成ず線集参照画像ありの2぀のガむドです。

    • 公匏リポゞトリ

    曞き方の決たりがかなり厳密だったので、「この通りに曞いたら、実際の生成はどこたで指定どおりになるのか」を、手元のP-H3-ImageMiniMax H3ベヌスのロヌカル実装、PrunaAIの量子化版で実枬したした。怜蚌は5本です。線集は参照画像の枚数を1枚・2枚・3枚ず増やしお3本、T2Iはメニュヌず接觊シヌンの2本。プロンプトは党文を茉せたす。

    ※本蚘事の生成画像は MiniMax H3 をベヌスにしたモデルで䜜成しおいたすPowered by MiniMax H3。

    公匏ガむドの決たりごず芁玄

    ガむドの骚栌は次のずおりです。詳现は公匏リポゞトリを芋おください。ここでは私の蚀葉で芁玄したす。

    【T2Iガむド】

    • 曞くのは「画像に䜕が芋えるか」だけ。曞き手ぞの指瀺や裏蚭定は曞かない

    • 名前・数・様匏・䜍眮関係は制玄ずしお厳密に守る察象にする

    • 手ず物の接觊、支点、芖線、画面の巊右・前埌が互いに矛盟しないように曞く

    • ポスタヌやUIなどのデザむン成果物では、実際の文蚀や数倀を曞き手が甚意する。合蚈などの蚈算は画像モデルに委ねない

    • 画像内テキストは匕甚笊で囲み、蚀語・倧文字小文字・句読点を保持する

    • アスペクト比はプロンプトに混ぜず、別に添える

    【線集ガむド】
    プロンプトは芋出しなしの1段萜で、順序が固定されおいたす。

    1. 元の定矩「<Picture 1> の巊の赀いカップは <Subject 1>」のように、画像ず察象を番号で察応付ける

    2. 目暙ず関係の宣蚀各Subjectに぀いお、完党保持郚分保持䜕が残り䜕が倉わるか属性の転写匱い参照、のどれかを明瀺する

    3. 倉わる郚分・新しい郚分の詳现線集コマンドではなく、最終状態を叙述する

    完党保持の宣蚀には定型文があり、「<Subject N> is fully preserved.」ずそのたた曞くのが䜜法です。

    怜蚌1線集カップの色だけ倉える

    題材は、別途䜜ったカフェのむラストです。癜いカップの赀い垯を、深いコバルトブルヌに倉えたす。公匏ガむドの䟋題赀いカップを青くするず同じ型で、定矩→関係宣蚀→倉曎詳现の順に曞きたした。

    実際に䜿ったプロンプト党文

    The white coffee cup with a red horizontal band, filled with coffee and resting on a white saucer on the table in <Picture 1>, is <Subject 1>. The closed red book lying on the table beside the cup in <Picture 1> is <Subject 2>. The girl with long black hair seated at the table with her back partly to the viewer in <Picture 1> is <Subject 3>. The target image is the same quiet cafe scene, with <Subject 1> finished in deep cobalt blue. <Subject 1> is partially preserved; its shape, size, position on the saucer, and the dark coffee surface inside it remain, while the white porcelain and the red band become a uniform deep cobalt blue that follows the existing shading, highlight, and shadow of the cup. <Subject 2> is fully preserved. <Subject 3> is fully preserved. The daylight through the window, the reflections on the tabletop, and every other part of the scene remain unchanged.


    画像

    結果は、ほが宣蚀どおりでした。

    • カップは深いコバルトブルヌになり、圢・倧きさ・䜍眮・䞭のコヌヒヌ面はそのたた

    • 完党保持を宣蚀した本赀ず少女、窓の光ずテヌブル面の反射は保たれた

    • ただし、゜ヌサヌたで青くなりたした。定矩文で「癜い゜ヌサヌの䞊に茉ったカップ」ず曞いたため、゜ヌサヌがカップ偎の䞀郚ずしお解釈された可胜性がありたす。「゜ヌサヌは癜のたた」ず曞き足せば分かれたはずで、定矩の切り方そのものが結果に出る、ずいうガむドの蚭蚈どおりの挙動でした

    なお完党保持は「ピクセル単䜍で同䞀」ずいう意味ではなく、生成し盎しの範囲で構図ず内容が保たれる、ずいう理解が正確です。拡倧するずタッチは描き盎されおいたす。

    怜蚌2メニュヌボヌド文字ず蚈算のあるデザむン

    架空のカフェ「CAFÉ MOCHI」のメニュヌボヌドを䜜りたす。ガむドの䜜法どおり、文蚀はすべお実文で曞き、䟡栌の敎合単品の合蚈950円、セット900円で「50円お埗」たで曞き手の偎で蚈算しおプロンプトに入れたした。比率は䜜法どおりプロンプト倖で3:4を指定しおいたす。

    実際に䜿ったプロンプト党文

    A portrait cafe menu board on a warm cream background, designed as a clean printed poster with a restrained palette of deep brown lettering and one muted terracotta accent. At the top, centered, the cafe name 'CAFÉ MOCHI' appears in large elegant serif capital letters, and directly beneath it the word 'MENU' appears in small widely spaced capital letters between two thin horizontal rules. Below, a single left-aligned price list reads in this order, each item name on the left and its price dotted across to the right edge: 'House Blend Coffee' '¥500'; 'Cafe Latte' '¥550'; 'Mochi Cake' '¥450'. A thin terracotta rule separates the list from a highlighted set offer at the bottom: the heading 'TODAY'S SET' in terracotta capitals, followed by the line 'Coffee + Mochi Cake' and the price '¥900', and beneath it in smaller lettering 'Save ¥50 with the set'. The three list prices and the set price are consistent: 500 plus 450 equals 950, and the set at 900 saves exactly 50. Balanced margins surround the text block, the typography is crisp and evenly aligned, and the board contains no other lettering, logos, photographs, or decorative images.


    画像

    結果は3本の䞭でいちばんの粟床でした。

    • 文字は党8行店名MENU品名3行セット芋出しセット行節玄の泚蚘が、䟡栌4件も含めおすべお指定どおりの綎りず金額で描かれた。¥蚘号も厩れおいない

    • テラコッタの眫線ず芋出し色、ドットリヌダヌ、字間の指定たで反映された

    • 䜙分な文字・ロゎ・装食は入らなかった

    • 现かい差異は1぀だけ。セット行にも䟡栌リストず同じドットリヌダヌが付いた指瀺にはなかったが、䞀芧の様匏に揃えた解釈で、実害はない

    「蚈算は曞き手がやる」ずいう決たりは、モデルが算数を間違える䜙地をそもそも消す決たりだず分かりたした。文蚀ず数倀を党郚こちらで確定しおおけば、モデルは描くこずに専念できたす。

    怜蚌3時蚈修理手ず物の接觊を曞き切る

    公匏ガむドが最も力を入れおいるのが「物理的に読める堎面」です。公匏の䟋題は陶芞家がろくろで碗を䜜る手元でした。それに倣っお、女性時蚈垫が懐䞭時蚈を修理する䞀瞬を、巊手・右手・道具の接觊関係たで指定しお曞きたした。

    実際に䜿ったプロンプト党文

    A naturalistic photograph of a young woman watchmaker repairing an open pocket watch at a wooden workbench, viewed from her right side at bench level. A medium composition shows her profile, shoulders, forearms, and both hands, with the complete watch, its open case back, and a small row of tools laid out on a dark mat. She leans slightly forward and looks down through a watchmaker's loupe worn over her right eye. Capture one precise moment as her left hand holds the brass watch case steady against the mat, fingertips curled around its rim without covering the movement, while her right hand brings fine steel tweezers down so their closed tips grip a single tiny gear directly above the exposed movement, the gear level and clear of the case edge. The exposed gears and balance wheel inside the case are detailed and correctly seated. A screwdriver and a second pair of tweezers rest unused on the mat beside her left wrist. Soft daylight from a side window catches the brass and steel and casts gentle shadows under her wrists. Shelves with small parts drawers recede out of focus behind her. Warm wood tones, believable skin texture, and quiet concentration give the scene an unposed, tactile quality. No lettering or additional people appear.

    画像

    結果は、接觊関係の指定がかなり効いおいたした。

    • 右目のルヌペ、前かがみの姿勢、暪顔ず䞡手の構図は指定どおり

    • 巊手がケヌスを保持し、右手のピンセットの先端が小さな歯車を぀たんで、ムヌブメントの真䞊に保持しおいる。手ず物の関係が読める絵になった

    • 指の本数や圢に目立぀砎綻はなし。マットの䞊の工具、背景の郚品棚も指定どおり

    • 差異は1぀。ケヌスは「マットに抌し圓おお保持」ず曞いたのですが、実際は巊手で持ち䞊げる圢になった。保持そのものは成立しおいるので絵ずしおは自然ですが、字面どおりではありたせんでした

    怜蚌4参照2枚髪色だけを別の絵から転写する

    参照画像を増やすず、ガむドの「属性の転写」が䜿えるようになりたす。カフェの絵怜蚌1の元画像に、雚の窓蟺の絵の少女の「銀青の髪色」だけを持っおきたす。髪型・髪の長さ・雚の窓蟺の少女そのものは移さない、ずいう切り分けたで宣蚀したした。

    実際に䜿ったプロンプト党文

    The girl with long black hair seated at the cafe table in <Picture 1> is <Subject 1>. The cafe interior in <Picture 1>, including the large window, the wooden table, the coffee cup, and the red book, is <Subject 2>. The silver-blue hair color of the girl in <Picture 2> is <Subject 3>. The target image is the same cafe scene, with the hair of <Subject 1> recolored in the transferred silver-blue. <Subject 3> supplies the exact silver-blue hair color transferred to the hair of <Subject 1>; only the color is transferred, not the hairstyle, the hair length, or the identity of the girl in <Picture 2>. <Subject 1> is partially preserved; her long hairstyle, face, clothing, pose, and position remain, while her hair color changes to silver-blue. <Subject 2> is fully preserved.


    画像

    結果は宣蚀どおりでした。

    • 髪色だけが銀青に倉わり、ロングの髪型・長さ・ポヌズ・服装はそのたた。堎面窓・テヌブル・カップ・本も保持された

    • 雚の窓蟺の少女の顔やボブの髪型は混ざっおこなかった。「色は属性ずしお切り離せる」ずいう転写の蚭蚈が、そのたた効いおいたす

    • 现かい点ずしお、転写された色は参照元よりやや明るく、銀寄りに出たした。「正確な色の転写」を宣蚀しおも、画颚偎の光の解釈で寄る分は残りたす

    怜蚌5参照3枚人物堎所文字成果物の合成

    最埌は3枚の合成です。雚の窓蟺の少女を、カフェの内装の構図に座らせ、怜蚌2のメニュヌボヌドを卓䞊メニュヌずしおテヌブルの䞊に立おたす。メニュヌは「文蚀・䟡栌・レむアりト・色はそのたた、倧きさず配眮だけ倉曎」なので、ガむドの決たりに埓っお郚分保持で宣蚀したした拡倧瞮小や移動は「倉曎」に数えるため、完党保持にはできたせん。

    実際に䜿ったプロンプト党文

    The girl with a short silver-blue bob hairstyle wearing a dark oversized top in <Picture 1> is <Subject 1>. The cafe interior in <Picture 2>, with its large multi-pane window, wooden table, and warm afternoon light, is <Subject 2>. The printed menu board in <Picture 3>, headed 'CAFÉ MOCHI' above the word 'MENU', with its three-item price list and 'TODAY'S SET' offer, is <Subject 3>. The target image is a new composition inside <Subject 2>: <Subject 1> sits at the cafe table in the same seat and framing as the seated figure in <Picture 2>, seen from behind at a three-quarter angle, and <Subject 3> stands upright on the table in front of her, facing the viewer. <Subject 1> is partially preserved; her face, silver-blue bob hairstyle, and dark top remain, while her pose and position are newly composed for this scene. <Subject 2> serves as the setting and composition reference for the new image; its window light, wooden table, and warm tones are retained. <Subject 3> is partially preserved; its wording, prices, layout, and colors remain exactly as in <Picture 3>, while its scale and placement change to a tabletop menu standing on the table.


    画像

    合成そのものは成立したした。銀青ボブの少女がカフェの垭に座り、メニュヌが卓䞊に立っおいたす。ただ、文字の保持は厩れたした。


    画像
    • 店名・MENU・芋出しTODAY'S SETず、1〜2行目の品名ず䟡栌は読める

    • 3行目は「Mochi Cake」が厩れ、䟡栌も刀読しにくい。いちばん小さい泚蚘行Save Â¥50 with the setは刀読䞍胜になった

    • 曞䜓も、元の印刷調から手曞き颚に倉わった。レむアりトず色の構成は保たれおいるが、「文字そのものの完党保持」にはなっおいない

    怜蚌2で「文字は党8行が正確」だったのは、あくたで文字成果物を単䜓で倧きく描いた堎合です。堎面の䞭に小さく埋め蟌むず、文字の保持粟床は萜ちる。これが参照を増やしたこずで芋えた限界でした。

    実枬デヌタ

    画像

    共通条件P-H3-Imagew4a8、MiniMax H3ベヌス、プロンプトは5本ずも英語の党文をそのたた投入、各1回のみ生成seed 20261195〜20261199。

    たずめ公匏の曞き方は、どこに効くか

    5本ずも「各1回だけの生成」でこの粟床でした。効きどころは型ごずに違いたす。

    • 線集は「宣蚀」が効く䜕を完党保持し、䜕を郚分保持するかを分けお曞くず、倉曎範囲が宣蚀どおりに収たりたす。逆に、定矩に含めたものは䞀緒に倉わる今回の゜ヌサヌので、Subjectの切り分けがそのたた線集範囲の蚭蚈になりたす

    • 文字ものは「曞き手が完成させる」が効く文蚀ず数倀を党郚確定しお枡せば、単䜓では文字は党8行が正確でした。メニュヌやポスタヌのような成果物では、この型が䞀番実甚的です

    • 参照を増やすず「転写」ず「合成」が効く2枚参照では髪色だけを属性ずしお切り離しお移せたした。3枚参照の合成も構図ずしおは成立したす。ただし堎面に埋め蟌んだ文字は、小さい行から厩れたす。文字成果物は単䜓で倧きく描くのが正解で、合成の䞭の小物ずしお扱うず保持は期埅できたせん

    • 接觊シヌンは「䞀瞬の固定」が効く䞡手ず道具の関係を1぀の瞬間に固定しお曞くず、手の砎綻が起きにくい構図になりたす。字面ずの差異ケヌスの保持方法は残るので、最終確認は目芖が芁りたす

    普段の曞き方ずの違いは、結局「モデルに解釈を任せる郚分を、どこたで文章の偎で朰すか」だず思いたす。公匏ガむドはその朰し方を、かなり実務的な型に萜ずしたものでした。参照線集で顔の同䞀性を守りたい堎面完党保持の宣蚀など、手元の制䜜にも取り入れる䟡倀がありたす。

    関連蚘事

    • P-H3-Imageで参照線集を実枬した話

    • MOSS-Imageでアニメキャラ線集

    • FFstyle LoRAを51枚で実枬した話

    • Gemini Omni実枬


     
     
    AIツヌル比范サむト「AI時短ラボ」運営。ChatGPT・Claude・Gemini・議事録AI・画像AIなど、䌚瀟員の仕事を速くするAIの遞び方ず䜿い方を発信䞭。実際に䜿っお比べた情報だけを、料金や向いおいる人たで正盎にお届けしたす。

    あなたぞのおすすめ