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

Task does not use GPU after a period of time (Apple Sillicon) #1242

Open
Sora-dcliu opened this issue Jun 28, 2022 · 4 comments
Open

Task does not use GPU after a period of time (Apple Sillicon) #1242

Sora-dcliu opened this issue Jun 28, 2022 · 4 comments

Comments

@Sora-dcliu
Copy link

Note: For general usage questions and help, please use either our FaceSwap Forum
or FaceSwap Discord server. General usage questions are liable to be closed without
response.

Crash reports MUST be included when reporting bugs.

Describe the bug
In GUI, after training the model for about 1 hour,  The GPU usage becomes 0%, and the iteration is slow. But at the beginning of training, the GPU usage can reach about 90%.
The computer didn't sleep and the monitor wasn't turned off.

To Reproduce
Steps to reproduce the behavior:

  1. python faceswap.py gui
  2. choose input A B and model dir
  3. Click "Generate" and click "Train"

Expected behavior
GPU can always work for training

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MacOS M1 MAX
  • Python Version 3.9
  • Conda Version [4.12.0]
  • Commit ID [e.g. e83819f]

Additional context
Add any other context about the problem here.

Crash Report
The crash report generated in the root of your Faceswap folder

@torzdf
Copy link
Collaborator

torzdf commented Jun 30, 2022

I don't use Apple Silicon, but will leave this open in case any Apple Silicon users have any insights

@Sora-dcliu
Copy link
Author

Correction: In fact, when running for about 3 hours and about 66500 iterations, the change stops using the GPU. And the program starts to get very slow.

@geewiz94
Copy link
Contributor

geewiz94 commented Aug 1, 2022

I have observed this as well, for there's a 50/50 chance for the GPU to stop during a training session. Sometimes it happens after 1 hour, sometimes I can train for 24 hours without issue, using the same model/settings. I'm not sure what the cause is, or how to find out..

@torzdf
Copy link
Collaborator

torzdf commented Aug 1, 2022

If I were to guess, I would suspect that this is some kind of internal throttling. This is most likely to be a Tensorflow/M1 issue rather than specifically Faceswap though. Possibly related: https://developer.apple.com/forums/thread/708154

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

No branches or pull requests

3 participants