Skip to main content
26 events
when toggle format what by license comment
Aug 8, 2022 at 10:15 answer added Braiam timeline score: 4
Aug 7, 2022 at 20:43 comment added kusocodeing @PeterCordes BTW, I want to say CUDA is not a driver (or it is), it is an official development tool to call the function to compute on Nvidia GPU. The error I meet as shown in the question is the version of the CUDA used to build the OpenCV does not match with the Nvidia driver version. I believe someone who has the experience to compile the OpenCV with CUDA should know what I want to ask (i.e, the CUDA version looks matched with the version on GPU driver). So I believe what I am asking is an environment setting-up problem a common-used development tool but not a driver setting-up problem.
Aug 7, 2022 at 20:06 comment added kusocodeing @PeterCordes If you search opencv cuda build on SO there is quite a lot
Aug 7, 2022 at 18:07 comment added Peter Cordes Are there other driver-setup questions asked & answered on SO? If not, that's a sign that maybe it wasn't the best place to ask. But yeah, I'm not sure my argument is 100% compatible with the on-topic guidelines about tools used mostly by developers, not just users. But I'm not sure that applies to OpenCV / CUDA; many(?) people just use such applications.
Aug 7, 2022 at 18:07 comment added Peter Cordes Yeah, I was purposely avoiding saying that your question was off-topic for that reason on SO in my previous comment, since it is arguably justified that way. More like suggesting that a much better [mcve] would have been a known-good example. And at that point it would be better to ask on a site where questions about driver setup are normal, so people can find a duplicate for you, or use it as a duplicate target. (That doesn't mean you can't have asked it on SO, and arguing that your code isn't a good MCVE is a bit convoluted.)
Aug 7, 2022 at 13:48 comment added kusocodeing @PeterCordes According to on-topic, the question covers whether software tools commonly used by programmers should be on-topic. It doesn't bound to the coding problem like syntax or the calling of function as it does mention "generally covers". I believe a general question like the setting of environment or the building of a development tool should be on-topic isn't it? Besides, I do agree it can be an AU question but I am questioning if is it a question for StackOverflow as well, because it is generally related to a common development tool.
Aug 7, 2022 at 5:17 comment added Peter Cordes To some degree, if you don't (or might not) have a working OpenCV / CUDA setup, that's something you should first test with a known-good example program. If it doesn't work, that's maybe something you can ask about one Stack Overflow, but getting drivers working tends to be better asked on superuser or askubuntu, if googling doesn't resolve it. If examples work in general but your code calls some API that claims to need a new driver version, that sounds more like a programming question. (With answers about setting up cutting-edge drivers sneaking in under that banner.)
Aug 7, 2022 at 1:16 comment added Peter Mortensen AU or AU.SE = Ask Ubuntu
Aug 6, 2022 at 21:59 comment added dbc @kusocodeing - it feels like it should be but honestly I'm not a subject matter expert at all (not even a python developer) so I can't say one way or another.
Aug 6, 2022 at 21:40 comment added kusocodeing @dbc By the way, I am trying to build the OpenCV with Cuda library for development, is it on or off-topic?
Aug 6, 2022 at 21:02 comment added kusocodeing @dbc I am not sure your standard between python code and python app? As python is an interpreted language I can execute the code directly by Python without compiling, python code and python apps seem the same to me.
Aug 6, 2022 at 20:57 comment added kusocodeing @gnat I do agree that it is not a coding problem as it works on a physical Linux machine, but it is related to OpenCV app development so is it on-topic? BTW I have uploaded some of the python code to fulfill make it more likely on-topic.
Aug 6, 2022 at 19:43 comment added gnat @rene that's for sure. I just couldn't see how it is appropriate here as it is hard to tell how it relates to coding
Aug 6, 2022 at 19:31 comment added nbk what is missing where the code is generated, so there should be at least some python code
Aug 6, 2022 at 19:21 comment added rene @gnat that a question is on-topic on AU doesn't make it off-topic here.
Aug 6, 2022 at 19:02 comment added dbc Also keep in mind that not everyone on Meta will be subject matter experts on OpenCV + yolov + Cuda et. al. so adding a little more explanation to your meta question might net you some additional help.
Aug 6, 2022 at 18:58 comment added dbc @kusocodeing - if you're trying trying to create and build an OpenCV app that sounds on topic. Maybe you could edit your question to make it more clearly a programming question by including a mcve? Your initial sentence I am trying to run the yolov4 on opencv 4.6 python with cuda on WSL2 with ubuntu 20.04. sounds like you are running an app not creating one.
Aug 6, 2022 at 18:14 history became hot meta post
Aug 6, 2022 at 17:55 comment added kusocodeing This question is mainly related to calling the DNN module of OpenCV to run the yolov4 so I believe it should be the problem of compiling the OpenCV with Cuda on WSL2. Is it on-topic or not?
Aug 6, 2022 at 17:46 comment added gnat as one of the close voters, to me this looked more like a question for AU.SE because they cover issues people have with CUDA on WSL
Aug 6, 2022 at 17:46 comment added Mat Writing code that uses OpenCV is indeed on topic. Running an application that depends on it usually isn't.
Aug 6, 2022 at 17:18 comment added rene You should probably add what programming task you're performing that requires yolov4 to run. A sentence or two is enough. It can still be that it is a general setup issue of tooling and those might be off-topic, even after your explanation.
Aug 6, 2022 at 16:58 history edited Henry EckerMod CC BY-SA 4.0
deleted 336 characters in body; edited tags
Aug 6, 2022 at 16:56 history edited kusocodeing
edited tags
Aug 6, 2022 at 16:55 history edited kusocodeing
edited tags
Aug 6, 2022 at 16:52 history asked kusocodeing CC BY-SA 4.0