CachyOSに環境を移行しました。

環境

ハードウェア

  • GTX 1060 6GB
  • RAM 32GB

ソフトウェア

  • CachyOS
    • ollama
      • qwen 3.5 4b
    • stability matrix
      • ComfyUI
      • qwen_3_4b.safetensors
      • Z_image_turbo-bf16.safetensors
      • ae.safetensors

構築

Ollama サービス

  1. インストール
    sudo pacman -S ollama ollama-cuda
    sudo systemctl enable --now ollama
  2. Qwen 3.5 4bを追加
    ollama run qwen3.5:4b

Stability Matrix

  1. インストール
    paru -S stabilitymatrix-bin
  2. 以下のパッケージをインストール
    • ComfyUI
  3. 以下の拡散モデル本体 (Diffusion Model / UNET)をインストール
    • Z_image_turbo-bf16.safetensors
  4. 以下のテキストエンコーダ (Text Encoder / CLIP)をインストール
    • qwen_3_4b.safetensors
  5. 以下のVAE (Variational Autoencoder)をインストール
    • ae.safetensors

ファイルの再配置が必要かもしれません。

起動用シェルスクリプト

  • シェルの作成
    ~/bin/comfy-ui.sh
    !/usr/bin/env bash
    cd /home/arch/StabilityMatrix/Packages/ComfyUI
    ./venv/bin/python main.py --listen 0.0.0.0 --lowvram --use-pytorch-cross-attention --fp16-vae
    chmod 755 ~/bin/comfy-ui.sh

実行

サーバ

  1. ComfyUIを起動
    ~/bin/comfy-ui.sh

クライアント

  1. 以下のURLにアクセス
    http://192.168.11.2:8188/
  2. 以下のURLの画像(ワークフローを含む)をドロップ
    https://ktkr3d.github.io//images/ComfyUI_00057_.png

利用

利用手順

  1. Ollama Generateノードの下の方のテキストエリアにポジティブプロンプトを入力する
  2. 実行する

利用例とプロンプト

  • 子猫
    かわいい黒い子猫がつぶらな瞳で何かを見つめている。
  • Arch Linuxにマスコットがいるとしたら
    Arch Linuxのマスコット
  • Jaina Proudmoore
    World of warcraftのJaina Proudmooreが船の上で星空を眺めてる。
  • Jaina Proudmoore
    World of warcraftのJaina Proudmooreが船の上で星空を眺めてる。
  • Sylvanas Windrunner
    A candid, cinematic live-action movie still capturing Sylvanas Windrunner from World of Warcraft in the heat of a chaotic battle. She is an undead high elf with pale, weathered ash-grey skin, long pointed ears, piercing glowing crimson eyes, and dark, smudged tear-like markings running down her cheeks from her eyes. Her long, slightly messy silver-white hair flows dynamically in the wind. She wears heavily detailed, battle-worn dark metallic plate and leather armor with intricate silver filigree, scratches, and dirt, paired with a tattered, dark hooded cloak draped over her shoulders. Caught in a tense, dynamic mid-action stance, she is pulling back the string of a dark, ornate recurve bow, aiming a glowing violet shadow-magic arrow directly toward an unseen threat off-camera. The surrounding battlefield is shrouded in thick smoke, flying ash, glowing embers, and blurred distant fires under an overcast, gloomy sky. Shot on 35mm anamorphic lens, natural film grain, realistic skin textures with pores and dirt smudges, dramatic rim lighting illuminating the edges of her armor and hair, shallow depth of field, raw live-action photography aesthetic.
  • Sindragosa
    A massive skeletal frost dragon Sindragosa flying through a dark, stormy sky over the frozen wasteland of Icecrown, glowing icy blue eyes, frost breath, tattered wings, blizzard, epic dark fantasy cinematic, dramatic lighting, volumetric fog, hyper-detailed, 8k resolution, Unreal Engine 5 render style.