你好大佬,请教几个环境问题 #32

Closed
opened 2026-01-29 21:38:26 +00:00 by claunia · 8 comments
Owner

Originally created by @theoldsong on GitHub (Jul 17, 2021).

大佬好,今天尝试运行这个项目,安装环境失败。
第一次尝试torch==1.9.0+cu111,提示CUDA driver initialization failed, you might not have a CUDA gpu
第二次尝试torch==1.7.0+cu10.2,提示The NVIDIA driver on your system is too old (found version 10010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver.
之前运行DFDNET和GPEN都是没问题的,请问我这是哪里出问题了?希望百忙之中能抽时间帮忙解答下,感谢!

Originally created by @theoldsong on GitHub (Jul 17, 2021). 大佬好,今天尝试运行这个项目,安装环境失败。 第一次尝试torch==1.9.0+cu111,提示CUDA driver initialization failed, you might not have a CUDA gpu 第二次尝试torch==1.7.0+cu10.2,提示The NVIDIA driver on your system is too old (found version 10010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver. 之前运行DFDNET和GPEN都是没问题的,请问我这是哪里出问题了?希望百忙之中能抽时间帮忙解答下,感谢!
Author
Owner

@xinntao commented on GitHub (Jul 17, 2021):

这是安装pytorch出错了?

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: theoldsong @.>
Sent: Saturday, July 17, 2021 10:09:25 PM
To: TencentARC/GFPGAN @.
>
Cc: Subscribed @.***>
Subject: [TencentARC/GFPGAN] 你好大佬,请教几个环境问题 (#22)

大佬好,今天尝试运行这个项目,安装环境失败。
第一次尝试torch==1.9.0+cu111,提示CUDA driver initialization failed, you might not have a CUDA gpu
第二次尝试torch==1.7.0+cu10.2,提示The NVIDIA driver on your system is too old (found version 10010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver.
之前运行DFDNET和GPEN都是没问题的,请问我这是哪里出问题了?希望百忙之中能抽时间帮忙解答下,感谢!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/TencentARC/GFPGAN/issues/22, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEFDHV3IDGYKBPZNNKBA6RTTYGFJLANCNFSM5ARDMIVA.

@xinntao commented on GitHub (Jul 17, 2021): 这是安装pytorch出错了? Get Outlook for Android<https://aka.ms/AAb9ysg> ________________________________ From: theoldsong ***@***.***> Sent: Saturday, July 17, 2021 10:09:25 PM To: TencentARC/GFPGAN ***@***.***> Cc: Subscribed ***@***.***> Subject: [TencentARC/GFPGAN] 你好大佬,请教几个环境问题 (#22) 大佬好,今天尝试运行这个项目,安装环境失败。 第一次尝试torch==1.9.0+cu111,提示CUDA driver initialization failed, you might not have a CUDA gpu 第二次尝试torch==1.7.0+cu10.2,提示The NVIDIA driver on your system is too old (found version 10010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver. 之前运行DFDNET和GPEN都是没问题的,请问我这是哪里出问题了?希望百忙之中能抽时间帮忙解答下,感谢! ― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub<https://github.com/TencentARC/GFPGAN/issues/22>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEFDHV3IDGYKBPZNNKBA6RTTYGFJLANCNFSM5ARDMIVA>.
Author
Owner

@theoldsong commented on GitHub (Jul 17, 2021):

不是,环境安装没报错,执行python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs 后报错的

@theoldsong commented on GitHub (Jul 17, 2021): 不是,环境安装没报错,执行python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs 后报错的
Author
Owner

@xinntao commented on GitHub (Jul 17, 2021):

你是安装basicsr使用BASICSR_EXT=True吗?

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: theoldsong @.>
Sent: Saturday, July 17, 2021 10:17:53 PM
To: TencentARC/GFPGAN @.
>
Cc: Xintao @.>; Comment @.>
Subject: Re: [TencentARC/GFPGAN] 你好大佬,请教几个环境问题 (#22)

不是,环境安装没报错,执行python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs 后报错的


You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/TencentARC/GFPGAN/issues/22#issuecomment-881906094, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEFDHVZKOZGD7EBR2ZQJDI3TYGGJDANCNFSM5ARDMIVA.

@xinntao commented on GitHub (Jul 17, 2021): 你是安装basicsr使用BASICSR_EXT=True吗? Get Outlook for Android<https://aka.ms/AAb9ysg> ________________________________ From: theoldsong ***@***.***> Sent: Saturday, July 17, 2021 10:17:53 PM To: TencentARC/GFPGAN ***@***.***> Cc: Xintao ***@***.***>; Comment ***@***.***> Subject: Re: [TencentARC/GFPGAN] 你好大佬,请教几个环境问题 (#22) 不是,环境安装没报错,执行python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs 后报错的 ― You are receiving this because you commented. Reply to this email directly, view it on GitHub<https://github.com/TencentARC/GFPGAN/issues/22#issuecomment-881906094>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEFDHVZKOZGD7EBR2ZQJDI3TYGGJDANCNFSM5ARDMIVA>.
Author
Owner

@theoldsong commented on GitHub (Jul 17, 2021):

是的,按照操作说明的步骤来的
BASICSR_EXT=True pip install basicsr

@theoldsong commented on GitHub (Jul 17, 2021): 是的,按照操作说明的步骤来的 BASICSR_EXT=True pip install basicsr
Author
Owner

@xinntao commented on GitHub (Jul 17, 2021):

可能是这个步骤有错误,你可以这样
1.先uninstall
2.安装不要用BASICSR_EXT=True
3.运行命令使用BASICSR_JIT

你先试试这个

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: theoldsong @.>
Sent: Saturday, July 17, 2021 10:24:09 PM
To: TencentARC/GFPGAN @.
>
Cc: Xintao @.>; Comment @.>
Subject: Re: [TencentARC/GFPGAN] 你好大佬,请教几个环境问题 (#22)

是的,按照操作说明的步骤来的
BASICSR_EXT=True pip install basicsr


You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/TencentARC/GFPGAN/issues/22#issuecomment-881906926, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEFDHVZGSQADJGEXOH4EOGDTYGHATANCNFSM5ARDMIVA.

@xinntao commented on GitHub (Jul 17, 2021): 可能是这个步骤有错误,你可以这样 1.先uninstall 2.安装不要用BASICSR_EXT=True 3.运行命令使用BASICSR_JIT 你先试试这个 Get Outlook for Android<https://aka.ms/AAb9ysg> ________________________________ From: theoldsong ***@***.***> Sent: Saturday, July 17, 2021 10:24:09 PM To: TencentARC/GFPGAN ***@***.***> Cc: Xintao ***@***.***>; Comment ***@***.***> Subject: Re: [TencentARC/GFPGAN] 你好大佬,请教几个环境问题 (#22) 是的,按照操作说明的步骤来的 BASICSR_EXT=True pip install basicsr ― You are receiving this because you commented. Reply to this email directly, view it on GitHub<https://github.com/TencentARC/GFPGAN/issues/22#issuecomment-881906926>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEFDHVZGSQADJGEXOH4EOGDTYGHATANCNFSM5ARDMIVA>.
Author
Owner

@theoldsong commented on GitHub (Jul 17, 2021):

pip uninstall basicsr
BASICSR_JIT=True pip install basicsr
是这个步骤吗?

@theoldsong commented on GitHub (Jul 17, 2021): pip uninstall basicsr BASICSR_JIT=True pip install basicsr 是这个步骤吗?
Author
Owner

@xinntao commented on GitHub (Jul 17, 2021):

直接这个pip install basicsr ,BASICSR_JIT=True是在运行的命令里面加,不是在安装命令里面

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: theoldsong @.>
Sent: Saturday, July 17, 2021 10:28:27 PM
To: TencentARC/GFPGAN @.
>
Cc: Xintao @.>; Comment @.>
Subject: Re: [TencentARC/GFPGAN] 你好大佬,请教几个环境问题 (#22)

pip uninstall basicsr
BASICSR_JIT=True pip install basicsr
是这个步骤吗?


You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/TencentARC/GFPGAN/issues/22#issuecomment-881907466, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEFDHV3K57I6HWH7SUYWTDTTYGHQXANCNFSM5ARDMIVA.

@xinntao commented on GitHub (Jul 17, 2021): 直接这个pip install basicsr ,BASICSR_JIT=True是在运行的命令里面加,不是在安装命令里面 Get Outlook for Android<https://aka.ms/AAb9ysg> ________________________________ From: theoldsong ***@***.***> Sent: Saturday, July 17, 2021 10:28:27 PM To: TencentARC/GFPGAN ***@***.***> Cc: Xintao ***@***.***>; Comment ***@***.***> Subject: Re: [TencentARC/GFPGAN] 你好大佬,请教几个环境问题 (#22) pip uninstall basicsr BASICSR_JIT=True pip install basicsr 是这个步骤吗? ― You are receiving this because you commented. Reply to this email directly, view it on GitHub<https://github.com/TencentARC/GFPGAN/issues/22#issuecomment-881907466>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEFDHV3K57I6HWH7SUYWTDTTYGHQXANCNFSM5ARDMIVA>.
Author
Owner

@theoldsong commented on GitHub (Jul 17, 2021):

好的,我试试,感谢大佬!

@theoldsong commented on GitHub (Jul 17, 2021): 好的,我试试,感谢大佬!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#32