Pustaka Taratsa

Baca teks (EPUB): Compfyui: simple workflow

1 bagian

Teks ini diambil langsung dari berkas EPUB; tata letak dan gambar tidak disertakan. Untuk tampilan lengkap, silakan merujuk pada dokumen asli.

Daftar isi
  1. Compfyui: simple workflow

Compfyui: simple workflow

Sumber: https://onnocenter.or.id/wiki/index.php/Compfyui:_simple_workflow

Oke Dzaq, ini dia **workflow visual paling dasar di ComfyUI** buat **Text-to-Image** (generate gambar dari teks) supaya kamu ngerti alurnya dulu sebelum masuk ke yang lebih kompleks kayak video 🎥

---

    1. 🔧 **Basic Workflow: Text to Image di ComfyUI**
      1. 📌 Node-by-Node Flow:

``` [CheckpointLoaderSimple] → Load model (misal: sd15.safetensors)

      ↓

[CLIPTextEncode] → Encode prompt teks kamu (misal: "anime girl in cyberpunk city")

      ↓

[EmptyLatentImage] → Ukuran canvas (misal: 512x768)

      ↓

[KSampler] → Proses sampling/generasi gambar

      ↓

[VAEDecode] → Decode latent jadi gambar asli

      ↓

[SaveImage] → Simpan hasilnya ke file ```

---

      1. 📊 Diagram Alur Sederhana:

```

 ┌────────────────────────────┐
 │  CheckpointLoaderSimple    │ ← Load model .safetensors
 └────────────┬───────────────┘
              ↓
 ┌────────────────────────────┐
 │     CLIPTextEncode         │ ← Masukin prompt kamu
 └────────────┬───────────────┘
              ↓
 ┌────────────────────────────┐
 │     EmptyLatentImage       │ ← Ukuran gambar (W x H)
 └────────────┬───────────────┘
              ↓
 ┌────────────────────────────┐
 │         KSampler           │ ← Sampling step pakai CFG, Seed, Steps
 └────────────┬───────────────┘
              ↓
 ┌────────────────────────────┐
 │         VAEDecode          │ ← Convert latent → gambar
 └────────────┬───────────────┘
              ↓
 ┌────────────────────────────┐
 │         SaveImage          │ ← Simpan gambar ke disk
 └────────────────────────────┘

```

---

      1. 📝 Contoh Parameter Dasar:

- **Prompt**: *"a futuristic city, glowing lights, night, cyberpunk style"* - **Width x Height**: `512 x 768` - **Steps**: `20` - **CFG Scale**: `7.0` - **Sampler**: `Euler a` atau `DPM++ 2M` - **Seed**: `12345` (atau random)

---

      1. 📂 Lokasi File Output:

- Default: `/ComfyUI/output/` - Nama file biasanya mengandung timestamp atau hash

---

Kalau kamu mau, aku bisa: - Kirim **file `.json` workflow dasar** ini buat langsung load di ComfyUI - Tambahin fitur kayak **Negative Prompt**, **LoRA**, atau **Upscaler** - Atau ubah jadi **Text-to-Video** alur ModelScope / Zeroscope

Mau sekalian file `.json` workflow ini aku buatin buat kamu drag langsung ke ComfyUI?