devkunalnaik commited on
Commit
846860f
·
1 Parent(s): 7f39f97

Fix: disable fast-mode frame skip for body swap (causes ghosting)

Browse files
Files changed (1) hide show
  1. processors/video_processor.py +3 -2
processors/video_processor.py CHANGED
@@ -115,8 +115,9 @@ class VideoProcessor:
115
  f"(resume at {frame_idx} if interrupted)",
116
  )
117
 
118
- # Fast mode: skip odd frames — duplicate the previous processed result
119
- if fast_mode and (frame_idx - start_frame) % 2 == 1 and last_result is not None:
 
120
  writer.write(last_result)
121
  frame_idx += 1
122
  continue
 
115
  f"(resume at {frame_idx} if interrupted)",
116
  )
117
 
118
+ # Fast mode only safe for face swap — body swap needs every frame
119
+ # (body position changes too much between frames to duplicate safely)
120
+ if fast_mode and mode == "face" and (frame_idx - start_frame) % 2 == 1 and last_result is not None:
121
  writer.write(last_result)
122
  frame_idx += 1
123
  continue