DeepFaceLab icon indicating copy to clipboard operation
DeepFaceLab copied to clipboard

add batch video frame extract option

Open mightbesimon opened this issue 2 years ago • 2 comments

Instead of frame extracting from one data_src.mp4, this PR adds a batch frame extract option that essentially treats every video in a batch_src folder as the data_src video.

Addtionally, users can add this bat script to the DFL_ROOT directory

@echo off
call _internal\setenv.bat

mkdir "%WORKSPACE%\data_src" 2>nul

"%PYTHON_EXECUTABLE%" "%DFL_ROOT%\main.py" videoed batch-extract-video ^
    --input-dir "%WORKSPACE%\batch_src" ^
    --output-dir "%WORKSPACE%\data_src"

pause

I'm not sure if this change is too much. I hope you like my idea. I think it'll help celeb faceset makers when they have a bunch of separate videos of a celebrity or politician.

mightbesimon avatar Jun 24 '23 17:06 mightbesimon

main.py run: error: argument {DeepFaceLive}: invalid choice: 'deepfacelive' (choose from 'DeepFaceLive') please help

phinix345 avatar Jul 09 '23 06:07 phinix345

Totally love this idea. I have been trying to improve old family photos and using DFL as one item in my workflow. I often have a mix of different videos and pictures and it get's quite laboursome and confusing. This would solve that.

marshalleq avatar Jul 23 '23 02:07 marshalleq