Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i speed up ? #128

Open
emrytp opened this issue May 16, 2024 · 17 comments
Open

How do i speed up ? #128

emrytp opened this issue May 16, 2024 · 17 comments

Comments

@emrytp
Copy link

emrytp commented May 16, 2024

python main.py data/May --workspace model/trial_may -O --test --test_train --asr_model ave --portrait --aud ./demo/test.wav

A 20-second video takes 1 minute 10 seconds, how can I speed it up ? Should I use another command to speed up ?

@jinqiupeter
Copy link

try to append --preload 1 to load data to main memory or --preload 2 to load data to GPU memory

@oguzhandoganoglu
Copy link

I tried --preload 2 First it loads quickly, then it slows down and I lose connection to the remote computer. When I connect again, it is Killed.

@jinqiupeter
Copy link

That's because you don't have enough memory. You can try to increase swap memory and use --preload 1, or increase swap memory and GPU memory and use --preload 2

@oguzhandoganoglu
Copy link

We have 20GB RTX4090. The data is 3GB. Why do you think this could happen?

@jinqiupeter
Copy link

20GB of memory is not enough. You can monitor your memory usage while loading the data, and notice when the killed error happens

@oguzhandoganoglu
Copy link

How many GB of memory do I need?

@oguzhandoganoglu
Copy link

@jinqiupeter
Copy link

FRY, I have 64GB memory and it still gets killed if the training video is longer than 4 mins. You cannot easily increase your memory on a remote server, instead, you can increase swap memory to whatever you want

@jinqiupeter
Copy link

You can see what happend https://github.com/ZiqiaoPeng/SyncTalk/assets/78206007/22dc9a2e-2844-426a-a73b-c63c6581b31f

Dont monitor GPU memory, monitor CPU memory (main memory) with top/htop

@oguzhandoganoglu
Copy link

However, we use --preload 2 argument. This argument load to GPU memory ?

@jinqiupeter
Copy link

The data first loads to memory, then processed, and then loads to GPU, so you still need to have enough CPU memory

@oguzhandoganoglu
Copy link

It's done. Got it, so I'll do my memory checks, and if we have enough memory, how long will it take me to create a 10-second video?

@jinqiupeter
Copy link

For RTX 4090 I'd guess around 6 seconds

@oguzhandoganoglu
Copy link

Wit this command python main.py data/May --workspace model/trial_may -O --test --test_train --asr_model ave --portrait --aud ./demo/test.wav ? True? It seems very good.

@jinqiupeter
Copy link

Just test it. then try --preload 1, then --preload 2 and compare

@kamimachi
Copy link

Wit this command python main.py data/May --workspace model/trial_may -O --test --test_train --asr_model ave --portrait --aud ./demo/test.wav ? True? It seems very good.

hi! Could you tell me how long will it take to create a 10-second video now.

@HardikJain02
Copy link

HardikJain02 commented Jun 6, 2024

I tried --preload 2 First it loads quickly, then it slows down and I lose connection to the remote computer. When I connect again, it is Killed.

hey, were you able to generate your model upon training? After loading train data, it says Killed. Any workaround? @jinqiupeter @oguzhandoganoglu

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

No branches or pull requests

5 participants