スポンサーリンク
画像生成AIの代表格の一つ、Stable Diffusionの開発者が作ったFLUX.2を年始にレビューした。久々起動したら動かなかったので何とか修理した話。
画像生成AIについてのまとめはこちら。
前回の記事はこちら。自作PCで動作した。
FLUX.2についてはこちらを参照。
テキストを入力すると画像を生成するAIだ。
年始にレビューした環境を使っていたが、久々起動したら動かない。WEBのページは出るが画像生成をしてくれない。
コンソールにはこんなエラーが出ている。
Exception in callback _ProactorBasePipeTransport._call_connection_lost()
handle:
Traceback (most recent call last):
File "asyncio\events.py", line 89, in _run
File "asyncio\proactor_events.py", line 165, in _call_connection_lost
ConnectionResetError:
はて?
AIに質問してみたら、ComfyUIのバージョンが古くて、FLUX.2の呼び出す機能がないらしい。更新していないのだけどな。
このComfyUIはポータブル版なので、更新には新しいものをダウンロードしてインストールしなおす方が早そうだ。新しいものはComfiUI_new2として展開した。
ダウンロードしたFLUX.2のファイルを新しいComfyUIのディレクトリに配置するも動かない。


FLUX.2 dev 起動時のWarning
SKIPとしても問題のあるところが赤枠になっており、これを解決しないとだめみたいだ。
さてどうしようか。
HuggingFaceを眺めて、新たなモデルはないかなって漠然と考えていたら、試してみたいモデルを見つけた。
Flux.2_Turbo_ComfyUIだ。


FLUX.2 Turbo ComfyUI 出典:HuggingFace
Black Forestのものではないが、有志が改良したものなのだろう。ダメで元々、試してみるか。
ここからダウンロードするファイルは3つ。
置き場所は、


FLUX.2 dev 復旧


FLUX.2 dev 復旧
Workflow.jsonは\ComfyUI_new2 に置いた。
以前試したときのモデルのファイルはおいてあるので、もし動かなかったら前回のファイルもダウンロードして動かしてみよう。
使っているPCは2年前に作った自作PCのJisaku8で、以下の仕様だ。
これは年始と変わらない。
Comfy UIを起動する。\ComfyUI_new2にrun_nvidia_gpu.bat があるのでダブルクリックする。コマンドプロンプトのウインドウが開いてしばらくしたらWEBブラウザにComfy UIが表示される。
ワークフローとして配置したものを読ませる。
英語でプロンプトを入力する。プロンプトのウインドウはデフォルトでは真ん中あたりにあったが、好みで移動すればいい。
右上の「実行する」ボタンをクリックすると画像生成が始まる。自分の環境では1024×1024のサイズに対して、おおよそ2枚4分で生成された。前の倍速だ。モデルが「Turbo」だからかな、おそらく量子化などやったチューニング済みのものだからかな、
ちなみに、作成時間は半分に短くなっても消費するCPU、メモリ、GPUは変らない。いっぱいまで使われている。


FLUX.2 dev リソース消費
試しに以下のものを作ってみた。
Carp streamers fluttering in the crisp blue May sky in Japan. At the top is a windsock, and the black father carp streamer, the red mother carp streamer, and the blue children carp streamers are lined up together in harmony, swimming in the wind.


FLUX.2 dev こいのぼり
Lighting is dominated by strong artificial sources: magenta, cyan, and electric blue neon lights cast sharp rim lighting along her silhouette, while softer ambient light fills the shadows. The background has layered depth, with foreground cables and signs, midground storefronts, and distant skyscrapers fading into atmospheric haze. Materials are clearly defined: wet asphalt with mirror-like reflections, brushed metal walls, glass panels, and glowing holograms. The overall composition emphasizes contrast between darkness and neon illumination, with a clean, polished anime aesthetic and clear linework


FLUX.2 dev サイバーパンク
Japanese woman in their twenties wearing swimsuits walk cheerfully along the beach in midsummer. She has her sunglasses shifted to rest on her head, and is holding a smartphone, with smiling brightly at the camera. A tree-covered island can be seen in the distance.


FLUX.2 dev 夏のビーチ
An anime-style close-up of a teenage girl wearing a school uniform, standing under cherry blossom tree. The petals drift softly around her, and she gazes up at the sky with a look of determination.


FLUX.2 dev アニメ調の桜の木の下
A young Japanese woman is a modern business suit, holding a panel with a confident smile. She stands in a sleek office environment with large windows, showcasing a city skyline in the background.


FLUX.2 dev ボードを持つ女性
Frieren is eating out in Harajuku. Fern and Stark are walking beside me, fighting. Draw in anime style


FLUX.2 dev 原宿のフリーレン
Turboにしたら一度に作ることができる画像が8枚まで増えた。前は5枚だったので、メモリの消費量が減ったのだろう。(1024×1024サイズの場合)FLUX.1では10枚作れたのでだいたい同じか。
Turboにしても、複数画像の作成では似たような画像になっている。前よりはちょっとバリエーションがあるかな。でもほぼ同じ画像だ。FLUX.1では同じプロンプトに対してかなり異なる画像を何枚も生成してくれたのだけどなぁ。
動画にしているのでこちらもどうぞ。
PR