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

Mac M3 using only CPU #798

Open
Vignesh-786 opened this issue May 8, 2024 · 1 comment
Open

Mac M3 using only CPU #798

Vignesh-786 opened this issue May 8, 2024 · 1 comment

Comments

@Vignesh-786
Copy link

I'm running RealESRGAN on my Mac M3. While I suspect it's currently using the CPU, is there a way to leverage the M3's GPU or the neural engine for faster processing?

@jakubbober
Copy link

Remove/comment out lines 48-52 in realesrgan/utils.py and right below add self.device = torch.device("mps").

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

2 participants