Git Product home page Git Product logo

Comments (4)

Passer1072 avatar Passer1072 commented on August 15, 2024

谢谢大佬分享,我按教程搭建成功也打包好了。但是我的实时fps一直在17-19徘徊,出去看任务管理器cpu和gpu的占用只有10%左右。

Screenshot 2024-07-07 095120

然后我安装了CUDA和pytorch,但是仍然只有17帧左右。这是什么原因?我在打包后启动exe程序时出现了 “AttributeError: ‘DXCamera‘ object has no attribute ‘is_capturing‘” 的错误,通过修改图形设置,将首选图形处理器设置成了核显才能正常启动,是这个原因造成fps偏低的吗?

您是什么显卡?建议现在IDE内测试无问题后再打包。显卡推荐RTX3060以上。
通过pip list 查看安装的Pytorch版本后缀是否带有+CU的字样,+CU的版本才是支持CUDA加速推理的版本,+CPU版本是错误的,正确的如图:
屏幕截图 2024-07-07 110028
关于报错:检查你的Python环境建议使用和我一样的Python3.9版本,DXcam对高版本Python兼容不佳,或者尝试使用V2.4.3.3(beta)版本并在配套settings.json中设置"deactivate_dxcam": true,这样可以禁用加载dxcam模块解决一些问题。
玩游戏时将游戏画质尽可能降低画质并且锁帧,为Ai预留算力。

from rookieai_yolov8.

zxtznb avatar zxtznb commented on August 15, 2024

我的显卡是GTX 1650,Pytorch版本是正确的。

Screenshot 2024-07-07 204642

是因为我的显卡太老了吗?我不太了解显卡,我以为cpu和gpu占用没吃满就能提升fps,我宁愿它占用高一点。
我将python版本降到了3.9,使用V2.4.3.3(beta)版本还是出现了DXcam报错,禁用加载dxcam后实时fps没有提升。

Screenshot 2024-07-07 211034
Screenshot 2024-07-07 211409

from rookieai_yolov8.

Passer1072 avatar Passer1072 commented on August 15, 2024

我的显卡是 GTX 1650,Pytorch版本正确。

截图 2024-07-07 204642

因为我的显卡太老了吗?我不太了解显卡,以为cpu和gpu占用没吃满就能提升fps,我宁愿它占用高一点。 我将python版本降到了3.9,使用V2.4.3.3(beta)版本仍然出现了DXcam报错,禁用加载dxcam后实时fps没有提升。

截图 2024-07-07 211034 截图 2024-07-07 211409

你的环境没有问题,确实是显卡太老了,1650的算力不适合跑Ai项目,游戏和Ai同时开更吃不消了。由于算力和贷款原因导致的GPU占用不满这个没有办法解决,可以尝试使用YOLOv5的AI项目会好些。

from rookieai_yolov8.

zxtznb avatar zxtznb commented on August 15, 2024

好的,谢谢大佬

from rookieai_yolov8.

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.