daisukekobayashi / darknet-docker

Dockerfile for Darknet Yolo v4, v3 and v2 (https://github.com/AlexeyAB/darknet)
https://cloud.docker.com/repository/docker/daisukekobayashi/darknet
MIT License
91 stars 41 forks source link

libdarknet.so #6

Open Goru1890 opened 3 years ago

Goru1890 commented 3 years ago

I'm very new in the world of containers and docker.

I'm planning to use docker to contain a qt applications that uses the darknet api on an linux enviroment, is darknet compiled with the lib option in this project? I need that the application works on windows, my problem is that the darknet api doesn't work very well on windows.

Would it be possible to call the include files from the darknet API from the docker to an windows environment?

daisukekobayashi commented 3 years ago

No, Darknet isn’t compiled with the lib option in this project. Did you check yolo_cpp_dll in AlexyAB/darknet? AlexyAB/darknet supports windows, so I recommend that you use yolo_cpp_dll. I have used the DLL before, and there wasn’t no problem.

You can’t call darknet API from the docker to an windows environment directly. If you want to do like that, first you have to make service like rpc or http and call the service in windows.

Goru1890 commented 3 years ago

Thank you for your response.

Yes, darknet "works" on windows.

But I can't handle error like I do in linux. image

The call never ends when I have a cuda error on windows. image

That's why I'm thinking on using a docker with linux on a windows enviroment, but if there is no way to call the darknet api I'm out of options.

gmontamat commented 3 years ago

Hey @Goru1890 check out my fork here: https://github.com/gmontamat/darknet-docker I also needed libdarknet.so on my projects so I modified the Dockerfiles on this repo. It's still a WIP but I verified the lib is generated successfully.