Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Crashing at extracting frames. #68

Open
0Aditya-Singhal0 opened this issue Jul 26, 2023 · 1 comment
Open

Crashing at extracting frames. #68

0Aditya-Singhal0 opened this issue Jul 26, 2023 · 1 comment

Comments

@0Aditya-Singhal0
Copy link

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

@scf2k
Copy link

scf2k commented Jul 26, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants