How to use GPU #223

Closed
opened 2026-01-29 21:45:51 +00:00 by claunia · 2 comments
Owner

Originally created by @DrBlou on GitHub (Aug 1, 2022).

Hi all,

First, its a very nice tool, you did a very good job here !

Sadly, i cant use my RTX3080 GPU to process the images, only the CPU is used, can someone help me with this ?

I can tell my GPU isn't used because of this error :

UserWarning: The unoptimized RealESRGAN is slow on CPU. We do not use it. If you really want to use it, please modify the corresponding codes.

Can someone tell me how to set GFPGAN so it use my GPU ?

Thanks a lot in advance

  • image
Originally created by @DrBlou on GitHub (Aug 1, 2022). Hi all, First, its a very nice tool, you did a very good job here ! Sadly, i cant use my RTX3080 GPU to process the images, only the CPU is used, can someone help me with this ? I can tell my GPU isn't used because of this error : UserWarning: The unoptimized RealESRGAN is slow on CPU. We do not use it. If you really want to use it, please modify the corresponding codes. Can someone tell me how to set GFPGAN so it use my GPU ? Thanks a lot in advance - [ ] ![image](https://user-images.githubusercontent.com/92190077/182247941-f3fa944d-66fc-49c6-830a-5e468a8421e9.png)
Author
Owner

@elen07zz commented on GitHub (Aug 2, 2022):

You need to install nvidia cuda and then install torch with cuda
conda remove torchvision torchaudio pytorch
conda install pytorch torchvision torchaudio cudatoolkit=11.6 -c pytorch -c conda-forge

@elen07zz commented on GitHub (Aug 2, 2022): You need to install nvidia cuda and then install torch with cuda conda remove torchvision torchaudio pytorch conda install pytorch torchvision torchaudio cudatoolkit=11.6 -c pytorch -c conda-forge
Author
Owner

@DrBlou commented on GitHub (Aug 3, 2022):

Thanks a lot it works now !!

@DrBlou commented on GitHub (Aug 3, 2022): Thanks a lot it works now !!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#223