mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-07-09 02:06:30 +00:00
Running on CPU #118
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bochkarev-artem on GitHub (Dec 12, 2021).
Hi, i am missing option to run inference on cpu. I have low memory on my GPU, so its useless with it. How can i avoid running this on GPU with CUDA?
Even if i run this:
i get:
Setting
PYTORCH_CUDA_ALLOC_CONF=max_split_size_mb:21seems to be not enough for my GPU (1 GB). I cant provide value smaller than 21 mb@bolshoytoster commented on GitHub (Dec 13, 2021):
Unfortunately, as said in this stackoverflow answer:
You used to be able to use the
--multicoreflag but it's not available anymore.@soulteary commented on GitHub (May 20, 2022):
There is a simple solution, you can refer to here. https://github.com/TencentARC/GFPGAN/issues/194
In addition, you can actually take the code out of the container and use it, in the current version, it does not need to use GPU acceleration.
@bolshoytoster @bochkarev-artem