今日は一つのプロジェクトを使用しました:https://github.com/brycedrennan/imaginAIry
このプロジェクトは「ImaginAIry」と呼ばれ、Pythonベースの画像生成プロジェクトで、人工知能技術を用いて画像の作成と編集を行います。APIサーバーの実行やStableStudioウェブインターフェースに対応しており、ControlNet、Canny Edge、HED Boundaryなどの様々な制御方法で画像を生成できます。
私は一文書きました
prompts = [
ImaginePrompt("fruit salad", tile_mode=True),
]
for result in imagine(prompts):
display(result.img)
彼に真珠の女の子にメイクチェンジをしてもらい、ハロウィンバージョンにしてもらいました
p = ImaginePrompt(
f"make it halloween",
prompt_strength=15,
init_image=LazyLoadingImage(url="https://raw.githubusercontent.com/brycedrennan/imaginAIry/master/assets/mask_examples/pearl000.jpg"),
init_image_strength=1,
model="edit"
)
prompts = [p]
for result in imagine(prompts):
display(result.img)
controlNetと組み合わせて使用することもできます:
imagine --control-image assets/indiana.jpg --control-mode openpose --caption-text openpose "photo of a polar bear"
Stable Diffusion WebUIよりも、GUI操作が苦手な私にとって使いやすいです。