Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 94 additions & 0 deletions docs/DIKEY_384x640_RTX2050.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Dikey (384x640) uretim — RTX 2050 4 GB, 124 kare

Etiketler: `[olctum]` = kayitli kosu var (bu makinede), `[tahmin]` = denenmedi/dogrulanmadi,
`[okudum]` = repodaki belgeden.

Amac: `uret.ps1 -W 384 -H 640` ile **dikey (9:16'ya yakin) kadrajin** 4 GB kartta calisip
calismadigini olcmek. Issue #1'de (RTX 4070 Ti) ayni boyut 141 karede **siyah (NaN)** vermis,
yalniz `GGML_CUDA_CUBLAS_COMPUTE_TYPE=f32` ile duzelmisti (`docs/OLCUMLER.md` §8). Buradaki soru:
4 GB sm_86 yapisinda da f32 sart mi?

## Makine ve kurulum

| | |
|---|---|
| GPU | RTX 2050 Laptop, 4 GB (4096 MiB), compute capability 8.6, surucu 566.03 |
| Isletim sistemi | Windows 11 Pro |
| RAM | 32 GB |
| Motor | native `sm_86` build (stable-diffusion.cpp `32d516c` + `patches/`, zip sha256 `b521a8c2…`, motor `4922e63`) |
| Modeller | `scripts/modeller.json` ile ayni: DiT `Q4_K_M`, TE `Q4_K_M`, VAE `fp16`, audio-VAE `fp32` |
| Betik | `scripts/uret.ps1` (`-W` / `-H` parametreli, upstream) |
| Kalite ayarlari | 6 adim, cfg 1, karosuz VAE, seed 42, 24 fps — degistirilmedi |

## Komut

```powershell
powershell -NoProfile -File scripts\uret.ps1 -Istem istem.txt -Kare 124 -W 384 -H 640 -Cikti runs\dikey\video.avi
```

`124 = 17k+5` (5,17 sn). Iki asama (`124 >= 108`): once DiT latent'i, sonra ayri surecte VAE.

## Sonuc

| Olcu | Deger |
|---|---|
| Cikti | `384x640x124x3` — dikey, kare sayisi `ffprobe` ile 124 dogrulandi |
| Sure | **468 sn** toplam (asama 1 DiT ~394 sn, asama 2 VAE 44,4 sn; `generate_video` 44,36 sn) |
| VRAM tepe | **3661 / 4096 MiB** (bos 435 MiB; `nvidia-smi` 5 sn ornekleyici, tum kart) |
| Kalite kapisi | **GECTI** (kare sayisi, ses akisi, VRAM kontrolu) |
| Ses | var — PCM 32 kHz stereo (modelin kendi ortam sesi) |
| Cikti boyutu | AVI 3,1 MB (MJPEG + PCM) |
| Ek bayrak | **f32 gerekmedi**; `GGML_CUDA_CUBLAS_COMPUTE_TYPE` verilmedi |

## Issue #1 ile kiyas (ayni boyut, farkli kart)

| Kosu | Kart | Kare | f32 | Sonuc |
|---|---|---|---|---|
| T2V 384x640 | RTX 4070 Ti 12 GB | 141 | yok | video SIYAH (NaN) [kullanici bildirdi, #1] |
| T2V 384x640 | RTX 4070 Ti 12 GB | 141 | var | GECTI 0,62 [kullanici bildirdi, #1] |
| T2V 384x640 | **RTX 2050 4 GB** | **124** | **yok** | **GECTI, dikey video [olctum]** |

Neden burada f32 gerekmedi: [tahmin] — (a) kare sayisi 124 < 141, (b) DiT nicemlemesi `Q4_K_M`,
(c) farkli motor derlemesi/mimari (sm_86, 4 GB yolunda `--offload-to-cpu` + `te=cpu`).
Üçü de ayri ayri denenmedi; kesin neden icin ayni kartta 141 kare ve/veya f32 karsilastirmasi gerekir.

## Cikti kalitesi (gozle)

- Kadraj **gercekten dikey**: figur alt yarida, gokyuzu ustte; 16:9'un kirpilmis hali degil.
- Bozulmus yuz/uzuv yok; sopayi tutan elde hafif erime, uzaktaki koyun/kopek belirsiz.
- Ust yarisi fazla bos kaldi — istemde figur buyutulup gokyuzu azaltilmali.
- Piksel sayisi yatayla ayni (384x640 = 640x384 = 245.760). 720x1280'e buyutme **1,875x**
(yatayda 1280x720 icin 2,0x): dikey teslimde yumusama bir tik daha az.

## Maliyet

5,17 sn = 7,8 dk → 8 sn'lik dikey sahne ≈ **12 dk**. 24 sahnelik bir film ≈ **4,5-5 saat**
saf motor suresi (kare uretimi ve montaj haric). Istemler dikey kadraja gore yeniden yazilmali;
genis planlar (kalabalik suru, yatay manzara) dikeyde sikisir.

## Yan bulgu: 24 sahnelik film (640x384, yatay) [olctum]

Ayni makinede, ayni motorla uretilen 3:19'luk film (24 sahne x 192 kare):

| Olcu | Deger |
|---|---|
| Asama 1 (DiT, 24 sahne) | 03:15 → 07:56 (~11,7 dk/sahne) |
| Asama 2 (VAE) | varsayilan marj 256 MB ile **24 sahnenin tamami** dustu; `SD_VAE_VRAM_MARGIN_MB=64` ile tekrar: **24 klip 27 dk** (1,1 dk/sahne), karo dususu yok |
| Teslim | 1280x720, 199,5 sn, H.264/AAC, -16,3 LUFS, TP -2,3 dBTP |

Dersler:
1. **Seri uretimde VAE marjini BASTAN 64 MB ver** — aksi halde aşama 1 basariyla biter, kaybedilen
yalnizca VAE olur ve 24 sahne icin saatler bosa gider. Latent'ler diskte kaldigi icin asama 1'i
tekrar etmek gerekmez (`SD_VIDEO_LATENT_LOAD`).
2. **Anlatımı modelden bekleme:** 4 GB kartta modelin ses kanali ortam sesi (ruzgar, koyun) uretir;
konusma anlatimi ayri TTS ile uretilip mixlenmeli.
3. **Dikey testte oldugu gibi, uzun seride de tek kart kilidi** (`runs\gpu.kilit`) ayni anda iki isi engeller.

## Tekrar tarifi

Ayni kosuyu birebir tekrarlamak icin: ayni motor zip'i (`b521a8c2…`), ayni modeller, `-Kare 124
-W 384 -H 640`, seed 42, 6 adim, cfg 1, karosuz VAE. Kalite kapisi `scripts/uretim_kapi.ps1` ile
dogrulanir; hareket tutarliligi kapi kapsaminda degildir (videoyu bastan sona izleyin).

Ornek dosyalar (5,17 sn dikey mp4, ham AVI, temas sayfasi, kullanilan istem) bu repoda
dagitilmaz; istek uzerine paylasilir — `docs/KANITLAR.md` politikasi.
24 changes: 24 additions & 0 deletions docs/OLCUMLER.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,27 @@ Patches 0021, 0023 and 0024 (`docs/YAMALAR.md`), all off by default. Same qualit
- 832x480 at 158 frames does not fit with the shipped patches: it dies at the step-2 gate (need 2475.5 MB, available 2195.3 MB, about 280 MB short). The one 158-frame result that passed used an extra patch that is not shipped and was not accepted. 175 frames was only gate-read (about 275 MB short at the first block, no full run). Not offered; the profile is 141 frames only.
- Byte checks: with the flags on, 56 / 209 / 243 frames at 640x384 and 832x480 x 124 are byte-identical to the flag-off result; the 260-frame decode is repeatable (two runs, same video) but has no flag-off reference. At 832x480 x 141 and 896x512 x 124 the flag-off run does not fit, so a direct comparison is impossible.
- The `uret.ps1 -Profil` wiring and the engine zip were checked by dry run and an install test; no new GPU run was made for them.

## 11. Vertical 384x640 on a 4 GB card (OUR MEASUREMENT, RTX 2050 4 GB, 2026-11-29)

`uret.ps1 -W 384 -H 640` (the `-W` / `-H` parameters are in the shipped script), same quality
settings (6 steps, cfg 1, tile-less VAE), seed 42, `Q4_K_M` models, `sm_86` engine zip
`b521a8c2…`. The question was whether vertical output needs `GGML_CUDA_CUBLAS_COMPUTE_TYPE=f32`
as in the RTX 4070 Ti run in §8 (384x640 x 141, black/NaN without f32).

| Run | Size | Frames | Stages | Stage 1 (DiT) | Stage 2 (VAE) | Total | VRAM peak (whole card) | Gate |
|---|---|---|---|---|---|---|---|---|
| T2V, f32 **not** set | 384x640 | 124 | 1 and 2 | ~394 s | 44.4 s | **468 s** | **3661 / 4096 MiB** (435 MiB free) | GECTI; `384x640x124x3` frames verified by `ffprobe`, audio stream present |

- Vertical T2V works on this card **without** f32. Why the 4070 Ti run went black while this one did
not is not established: [guess] fewer frames (124 vs 141), a different DiT quantisation (`Q4_K_M`),
or the 4 GB path (`--offload-to-cpu`, `te=cpu`). None of the three was isolated.
- Frames must stay on the 17k+5 grid: 124 = 5.17 s. At 24 fps an 8 s vertical scene is about 12 min,
so a 24-scene vertical film is roughly 4.5-5 h of engine time.
- Pixel count is unchanged (384x640 = 640x384 = 245,760); upscaling to 720x1280 is 1.875x against
2.0x for 1280x720, so a vertical deliverable is not softer than the horizontal one. Composition is
genuinely vertical, not a crop (see the same-run contact sheet, kept locally).
- Side result from the same machine: a 24-scene, 3:19 film at 640x384 x 192 lost the entire stage 2
with the default `SD_VAE_VRAM_MARGIN_MB=256` and finished all 24 clips in 27 min at margin 64.
Set the margin before a series run (`VT_VAE_MARGIN_MB=64`), otherwise stage 1 is paid twice.
- Full report, command and repeat recipe: `docs/DIKEY_384x640_RTX2050.md`.
Loading