refacer icon indicating copy to clipboard operation
refacer copied to clipboard

Crashing at extracting frames.

Open 0Aditya-Singhal0 opened this issue 1 year ago • 1 comments

I have been trying to make this run on my linux machine with anaconda environment. app.py didnt work after I clicked on the button athnd it will show no output. So I ran the script.py and I get the following log. This I believe is due to usage of more memory than what is actually available. I havent had any issues with these on a windows machine, but only on linux. Pls help

Trying FFMPEG libx264 encoder FFMPEG libx264 encoder works Video codec for FFMPEG: libx264 CUDA mode with providers ['CUDAExecutionProvider', 'CPUExecutionProvider'] 5648748544 inswapper-shape: [1, 3, 128, 128] Total frames: 466 Extracting frames: 41%|███████████████████████████████████████████████████▋ | 191/466 [00:07<00:22, 12.15it/s]Killed

0Aditya-Singhal0 avatar Jul 26 '23 09:07 0Aditya-Singhal0

open refacer.py, find a line if len(frames) > 1000:, and change 1000 to 100. It will use smaller (100 frames) batches and consume less memory.

scf2k avatar Jul 26 '23 10:07 scf2k