楕円マスクを作る
make_maskBuilds an elliptical mask PNG for targeted edits (mouth, eyes) using normalized coordinates (0-1) relative to a reference image. Define left, top, right, bottom ratios to specify the edit region.
Instructions
編集したい領域(口・目など)を楕円で指定したマスクPNGを作る。座標は画像サイズに対する比率(0〜1)で渡す。例: 口 = left 0.40 / top 0.455 / right 0.60 / bottom 0.575、目 = 0.34 / 0.32 / 0.66 / 0.42。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | Yes | ||
| left | Yes | ||
| right | Yes | ||
| bottom | Yes | ||
| out_path | Yes | 保存先のパス(.png) | |
| like_path | Yes | このファイルと同じサイズで作る |