deepfacelab中文网

 找回密码
 立即注册(仅限QQ邮箱)
楼主: phenixzzz

有大佬可以更新一下CodeFormer让40系列显卡可以使用吗

[复制链接]

8

主题

77

帖子

678

积分

高级丹师

Rank: 5Rank: 5

积分
678

万事如意节日勋章

发表于 2023-10-18 23:04:20 | 显示全部楼层

回帖奖励 +5 灵石

原来如此
回复

使用道具 举报

23

主题

220

帖子

1万

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
16144
发表于 2023-10-19 00:14:16 | 显示全部楼层

回帖奖励 +5 灵石

若苗瞬 发表于 2023-9-17 20:55
我终于知道LZ在问什么了。是站长发布的这个?

大佬,不知道咋更新,是要在codeformer的虚拟环境里面更新,还是更新windows系统里的torch和cuda啊?
回复 支持 反对

使用道具 举报

13

主题

528

帖子

3790

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
3790
发表于 2023-10-19 09:42:24 | 显示全部楼层
superkent 发表于 2023-10-19 00:14
大佬,不知道咋更新,是要在codeformer的虚拟环境里面更新,还是更新windows系统里的torch和cuda啊?
...


希望你的那个环境和我一样。
你在项目目录里开CMD。
依次执行(其实不确认也无所谓)。



运行:.\_internal\Python37\python.exe -mpip show torch
确认下torch版本确实是老的。比如我那之前是1.9.0+cu111


运行:.\_internal\Python37\python.exe -mpip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117

安装新点的版本。



运行:.\_internal\Python37\python.exe -mpip show torch
确认下torch已经更新了。现在是1.13.1+cu117




回复 支持 2 反对 0

使用道具 举报

23

主题

220

帖子

1万

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
16144
发表于 2023-10-19 13:19:22 | 显示全部楼层
若苗瞬 发表于 2023-10-19 09:42
希望你的那个环境和我一样。
你在项目目录里开CMD。
依次执行(其实不确认也无所谓)。

还是不行,一直报错

Microsoft Windows [版本 10.0.19045.3030]
(c) Microsoft Corporation。保留所有权利。

H:\codeFormer-GUI-20221230>.\_internal\Python37\python.exe -mpip show torch
Name: torch
Version: 1.9.0+cu111
Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration
Home-page: https://pytorch.org/
Author: PyTorch Team
Author-email: packages@pytorch.org
License: BSD-3
Location: h:\codeformer-gui-20221230\_internal\python37\lib\site-packages
Requires: typing-extensions
Required-by: lpips, torchvision

H:\codeFormer-GUI-20221230>.\_internal\Python37\python.exe -mpip install torch==1.13.1 cu117 torchvision==0.14.1 cu117 --extra-index-url https://download.pytorch.org/whl/cu117
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117
Collecting torch==1.13.1
  Downloading https://download.pytorch.org/whl ... cp37m-win_amd64.whl (2255.6 MB)
     ---------------------------------------- 2.3/2.3 GB 943.8 kB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement cu117 (from versions: none)
ERROR: No matching distribution found for cu117

[notice] A new release of pip available: 22.3.1 -> 23.3
[notice] To update, run: H:\codeFormer-GUI-20221230\_internal\Python37\python.exe -m pip install --upgrade pip

H:\codeFormer-GUI-20221230>.\_internal\Python37\python.exe -mpip show torch
Name: torch
Version: 1.9.0+cu111
Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration
Home-page: https://pytorch.org/
Author: PyTorch Team
Author-email: packages@pytorch.org
License: BSD-3
Location: h:\codeformer-gui-20221230\_internal\python37\lib\site-packages
Requires: typing-extensions
Required-by: lpips, torchvision

H:\codeFormer-GUI-20221230>.\_internal\Python37\python.exe -mpip install torch==1.13.1 cu117 torchvision==0.14.1 cu117 --extra-index-url https://download.pytorch.org/whl/cu117
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117
Collecting torch==1.13.1
  Using cached https://download.pytorch.org/whl ... cp37m-win_amd64.whl (2255.6 MB)
ERROR: Could not find a version that satisfies the requirement cu117 (from versions: none)
ERROR: No matching distribution found for cu117

[notice] A new release of pip available: 22.3.1 -> 23.3
[notice] To update, run: H:\codeFormer-GUI-20221230\_internal\Python37\python.exe -m pip install --upgrade pip

H:\codeFormer-GUI-20221230> H:\codeFormer-GUI-20221230\_internal\Python37\python.exe -m pip install --upgrade pip
Requirement already satisfied: pip in h:\codeformer-gui-20221230\_internal\python37\lib\site-packages (22.3.1)
Collecting pip
  Downloading pip-23.3-py3-none-any.whl (2.1 MB)
     ---------------------------------------- 2.1/2.1 MB 496.9 kB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 22.3.1
    Uninstalling pip-22.3.1:
      Successfully uninstalled pip-22.3.1
  WARNING: The scripts pip.exe, pip3.7.exe and pip3.exe are installed in 'H:\codeFormer-GUI-20221230\_internal\Python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-23.3

H:\codeFormer-GUI-20221230>.\_internal\Python37\python.exe -mpip install torch==1.13.1 cu117 torchvision==0.14.1 cu117 --extra-index-url https://download.pytorch.org/whl/cu117
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117
Collecting torch==1.13.1
  Downloading https://download.pytorch.org/whl ... cp37m-win_amd64.whl (2255.6 MB)
     ---------------------------------------- 2.3/2.3 GB 472.6 kB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement cu117 (from versions: none)
ERROR: No matching distribution found for cu117
WARNING: There was an error checking the latest version of pip.

H:\codeFormer-GUI-20221230>
回复 支持 反对

使用道具 举报

13

主题

528

帖子

3790

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
3790
发表于 2023-10-19 14:37:07 | 显示全部楼层
superkent 发表于 2023-10-19 13:19
还是不行,一直报错

Microsoft Windows [版本 10.0.19045.3030]

好像是论坛发不了“加号”。
应该是:
1.13.1加号cu117

你把那2个地方的空格替换为加号(符号,不是汉字)。
回复 支持 反对

使用道具 举报

23

主题

220

帖子

1万

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
16144
发表于 2023-10-19 20:11:14 | 显示全部楼层
若苗瞬 发表于 2023-10-19 14:37
好像是论坛发不了“加号”。
应该是:

嗯,现在应该没问题了吧

B:\codeFormer-GUI-20221230>.\_internal\Python37\python.exe -mpip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple, https://download.pytorch.org/whl/cu117
Collecting torch==1.13.1+cu117
  Using cached https://download.pytorch.org/whl ... cp37m-win_amd64.whl (2255.6 MB)
Collecting torchvision==0.14.1+cu117
  Using cached https://download.pytorch.org/whl ... cp37m-win_amd64.whl (4.8 MB)
Requirement already satisfied: typing-extensions in b:\codeformer-gui-20221230\_internal\python37\lib\site-packages (from torch==1.13.1+cu117) (3.10.0.0)
Requirement already satisfied: numpy in b:\codeformer-gui-20221230\_internal\python37\lib\site-packages (from torchvision==0.14.1+cu117) (1.21.2)
Requirement already satisfied: requests in b:\codeformer-gui-20221230\_internal\python37\lib\site-packages (from torchvision==0.14.1+cu117) (2.26.0)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in b:\codeformer-gui-20221230\_internal\python37\lib\site-packages (from torchvision==0.14.1+cu117) (9.2.0)
Requirement already satisfied: idna<4,>=2.5 in b:\codeformer-gui-20221230\_internal\python37\lib\site-packages (from requests->torchvision==0.14.1+cu117) (3.3)
Requirement already satisfied: charset-normalizer~=2.0.0 in b:\codeformer-gui-20221230\_internal\python37\lib\site-packages (from requests->torchvision==0.14.1+cu117) (2.0.9)
Requirement already satisfied: certifi>=2017.4.17 in b:\codeformer-gui-20221230\_internal\python37\lib\site-packages (from requests->torchvision==0.14.1+cu117) (2021.10.8)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in b:\codeformer-gui-20221230\_internal\python37\lib\site-packages (from requests->torchvision==0.14.1+cu117) (1.26.7)
Installing collected packages: torch, torchvision
  Attempting uninstall: torch
    Found existing installation: torch 1.9.0+cu111
    Uninstalling torch-1.9.0+cu111:
      Successfully uninstalled torch-1.9.0+cu111
  WARNING: The scripts convert-caffe2-to-onnx.exe, convert-onnx-to-caffe2.exe and torchrun.exe are installed in 'B:\codeFormer-GUI-20221230\_internal\Python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  Attempting uninstall: torchvision
    Found existing installation: torchvision 0.10.0+cu111
    Uninstalling torchvision-0.10.0+cu111:
      Successfully uninstalled torchvision-0.10.0+cu111
Successfully installed torch-1.13.1+cu117 torchvision-0.14.1+cu117

[notice] A new release of pip available: 22.3.1 -> 23.3
[notice] To update, run: B:\codeFormer-GUI-20221230\_internal\Python37\python.exe -m pip install --upgrade pip

B:\codeFormer-GUI-20221230>


回复 支持 反对

使用道具 举报

13

主题

528

帖子

3790

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
3790
发表于 2023-10-19 22:05:44 | 显示全部楼层
superkent 发表于 2023-10-19 20:11
嗯,现在应该没问题了吧

B:\codeFormer-GUI-20221230>.\_internal\Python37\python.exe -mpip install t ...

可以用了么?
回复 支持 反对

使用道具 举报

23

主题

220

帖子

1万

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
16144
发表于 2023-10-19 22:47:24 | 显示全部楼层

可以了,感谢啦
回复 支持 反对

使用道具 举报

9

主题

221

帖子

4168

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
4168

万事如意节日勋章

发表于 2023-10-20 09:48:49 | 显示全部楼层

回帖奖励 +5 灵石

我下个原版的试试看
回复 支持 反对

使用道具 举报

9

主题

804

帖子

4292

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
4292
发表于 2023-10-21 11:29:31 | 显示全部楼层

回帖奖励 +5 灵石

谢谢分享解决方法的兄弟
回复 支持 反对

使用道具 举报

QQ|Archiver|手机版|deepfacelab中文网 |网站地图

GMT+8, 2024-5-12 01:53 , Processed in 0.089793 second(s), 9 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表