Remove redundant cv2.resize in SwapFaceNode source-face branches #6
Labels
No labels
blocked:needs-attention
blocked:needs-decision
blocked:needs-decompose
blocked:needs-design
blocked:needs-triage
blocked:preflight
blocked:unclassified
bug
documentation
enhancement
gsd-spec
in-progress
lint-cleanup
needs-decompose
priority:high
priority:low
priority:medium
quickfix
test
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/kimi_agent_local_ai_image_enhancer#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After the face-swap fix in
a32bbef,auraframe/pipeline/nodes/swap_face.pylines 78 and 87 still docv2.resize(source_face, (512, 512))before callingmodel.infer().Problem: The 512×512 resize of a non-square face crop stretches it (aspect ratio mismatch).
FaceSwapper.infer()then re-detects via SCRFD and re-aligns viawarp_and_crop_face— the resize is wasted work and the stretching can hurt landmark detection.Fix: Pass the raw source face image directly to
model.infer(). Drop thecv2.resize(...)calls. The detector handles any input size.Files to modify:
auraframe/pipeline/nodes/swap_face.pylines 78 and 87Test: Re-run
tests/test_infer_swaps.pywith INTEGRATION_MODELS=1. The fix should produce the same identity transfer (L1, shift metrics within tolerance).