Git Product home page Git Product logo

Comments (7)

GreatV avatar GreatV commented on August 17, 2024 1

https://www.paddlepaddle.org.cn/inference/master/api_reference/cxx_api_doc/Config/GPUConfig.html#gpu 从这里看是必须要传入gpu_id 的

from paddleocr.

GreatV avatar GreatV commented on August 17, 2024

@LDOUBLEV, 老哥你能不能抽时间给它修一下。
这个好像一直都是只能用一个gpu推理。

from paddleocr.

GreatV avatar GreatV commented on August 17, 2024

而且看前面window系统直接返回gpu_id=0

from paddleocr.

LDOUBLEV avatar LDOUBLEV commented on August 17, 2024

你们修一下呗

config.enable_use_gpu(args.gpu_mem, args.gpu_id)

主要是和inference的同学确认下 inference Config里的参数设置问题,是不是必须要传入gpu_id;用distributed.launch的能不能跑inference

@LDOUBLEV, 老哥你能不能抽时间给它修一下。 这个好像一直都是只能用一个gpu推理。

from paddleocr.

jzhang533 avatar jzhang533 commented on August 17, 2024

@LDOUBLEV 威威,现在 PaddleOCR 项目,主要是用爱发电在维护。 GreatV 也不是百度的雇员,所以也联系不到 inference 的人。

from paddleocr.

LDOUBLEV avatar LDOUBLEV commented on August 17, 2024

https://www.paddlepaddle.org.cn/inference/master/api_reference/cxx_api_doc/Config/GPUConfig.html#gpu 从这里看是必须要传入gpu_id 的

看来是的;想了下,用distrbute.launch并行跑inference不太合适,这个case是一个用户发我的,主要诉求是多卡并行跑ppocr的推理,包装个多进程就能实现,每个卡上都初始化ppocr的inference model

不过这里windows的处理那里还是有bug

也可以加一个警告,告诉用户默认使用第一个卡执行推理 @GreatV

from paddleocr.

GreatV avatar GreatV commented on August 17, 2024

也可以加一个警告,告诉用户默认使用第一个卡执行推理
@LDOUBLEV Got it.

from paddleocr.

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.