Git Product home page Git Product logo

Comments (7)

ccchan49 avatar ccchan49 commented on July 19, 2024

CUDA版本:12.1, V12.1.66
torch版本:2.2.2+cu121

人工删掉📽️视频(Video).py的, disabled=not torch.cuda.is_available()后打开cuda加速测试,出现报错Could not locate cudnn_ops_infer64_8.dll. Please make sure it is in your library path!

去nv官网下载cudnn 8.9.7.29后把文件复制进C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1后测试可以正常使用GPU加速识别过程

但是把代码加回去后加速的选项还是不可用

from chenyme-aavt.

Chenyme avatar Chenyme commented on July 19, 2024

你好!感谢反馈!
请问在测试时环境是否一致?项目的环境基于项目目录下env文件,我看到你的测试是在全局环境下,这可能导致错误的原因。建议在env下启动cmd或powershell测试,如果仍有错误还请继续向我反馈,感谢!

from chenyme-aavt.

ccchan49 avatar ccchan49 commented on July 19, 2024

你好!感谢反馈! 请问在测试时环境是否一致?项目的环境基于项目目录下env文件,我看到你的测试是在全局环境下,这可能导致错误的原因。建议在env下启动cmd或powershell测试,如果仍有错误还请继续向我反馈,感谢!

在env下启动,torch.cuda.is_available()确实返回false

猜测是因为install.bat安装的torch版本有问题,把里面检查/更新的语句换成了torch官网的命令(加上 --force-reinstall)
pip3 install --force-reinstall torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121

重新运行install.bat后torch.cuda.is_available()返回true,按钮也正常了

from chenyme-aavt.

Chenyme avatar Chenyme commented on July 19, 2024

了解了,是我搞忘了这一点,程序默认安装的torch版本是CPU的,后面我会对文档进行补充并做相应调整,感谢!
(。ì _ í。)

from chenyme-aavt.

zhao-wuyan avatar zhao-wuyan commented on July 19, 2024

了解了,是我搞忘了这一点,程序默认安装的torch版本是CPU的,后面我会对文档进行补充并做相应调整,感谢! (。ì _ í。)

我使用anaconda方式安装python依赖。
也遇到Could not locate cudnn_ops_infer64_8.dll....这个问题,然后使用pip3 install --force-reinstall torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121安装后此问题消失。

还遇到了 #22 (comment) 中的问题
不过是libiomp5md.dll这个文件。我删除了\Anaconda3\envs\chenyme\Library\bin\libiomp5md.dll 后正常使用。

但是我选择了gpu加速,使用的还是cpu

Clip_2024-05-13_11-14-03
image

from chenyme-aavt.

zhao-wuyan avatar zhao-wuyan commented on July 19, 2024

但是我选择了gpu加速,使用的还是cpu

这是ffmpeg视频转换的过程吗。ffmpeg是否也能设置通过gpu进行转换?

from chenyme-aavt.

Chenyme avatar Chenyme commented on July 19, 2024

但是我选择了gpu加速,使用的还是cpu

这是ffmpeg视频转换的过程吗。ffmpeg是否也能设置通过gpu进行转换?

你好!图片中的过程是ffmpeg的合并过程,ffmpeg支持gpu加速,我会在后续的版本更新这个功能,也欢迎加入我们新建的群聊获得及时回复~
image

from chenyme-aavt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.