Commit Graph
5 Commits
Author SHA1 Message Date
alex 460ab5f73e feat/igpu-ov: OpenVINO iGPU detector (--gpu igpu) on Intel Level Zero
- ov_detector.OVFaceDetector: OV inference + ultralytics letterbox(1280 sq)
  + greedy NMS; model.predict()-compatible shim, process_video() unchanged
- anime_facesaver.py: --gpu igpu branch; CUDA path untouched (moved to else)
- CUDA path untouched; main() unchanged
- validate_ov.py: cross-check vs torch CPU baseline
  measured 2026-10-20 i3-N305: 59/59 matched, mean IoU 0.987,
  only_base=0 only_ov=0; 5.0s/img GPU vs 14.5s/img CPU OpenVINO-CPU vs
  torch-CPU baseline (25 real stills, yolov8x6_animeface)
2026-10-20 13:49:57 -04:00
alex 16ef032611 Skip OP/ED files by default (--all-files to include)
Real-run evidence: the transformation-emblem false positive (frame 1583
of the OP, 717x857, aspect 0.84) is geometrically face-shaped and
passes every box gate; OP/ED music videos are dominated by exactly that
kind of stylized graphics. Episodes carry the character close-ups a
grounding dataset needs. Verified on the second run: feather storm
(frame 29, area .64) now correctly rejected by the area cap.
2026-10-18 11:07:53 -04:00
alex 89b0f708d7 Add geometric upper-bound gates: max face-area fraction, aspect window
Tested against real failure samples from the v2 run: full-frame feather
storm (area .64) and wide effect blob (area .70) now rejected; normal
and close-up faces pass. Note: stylized OP/ED emblems are geometrically
face-shaped and NOT catchable this way — documented, CCIP gate is the
answer for those.
2026-10-18 11:04:53 -04:00
alex 940c59d6c9 Lock GPU pin with warm CUDA alloc before ultralytics select_device runs
Ultralytics select_device() rewrites CUDA_VISIBLE_DEVICES on first
predict() when the CUDA context is uninitialized: --gpu 1 silently
became a two-GPU cuda:0,1 context that OOMed on GPU0 (Strata's card).
Initializing torch and touching cuda once after setting CVD locks the
pin; both scripts now use device cuda:0 within the pin.
2026-10-18 09:10:55 -04:00
alex 01eb729c2f Fork facesaver -> anime-facesaver: real anime face detector instead of COCO 'person' proxy
Original saved any frame with a big COCO person box (heads, hands,
shoes). Switches to yolov8x6_animeface (HF: Fuyucchi), keeps the
scene-change gate, adds --gpu pinning via CUDA_VISIBLE_DEVICES before
torch init, --download-model, --preview-dir QC mode, optional edge
margin and min face-area fraction.
2026-10-18 09:02:55 -04:00