Comments (9)
Hi,
Currently this feature is not implemented in YOLO34Py. It would choose the GPU chosen by Darknet. I will look into implementing it in the future.
Thanks
from yolo3-4-py.
I was also looking into this, but my really poor C knowledge doesn't make it easy.
It looks like the darknet example script both sets the gpu_index int and calls cuda_set_device()
. It appears that this can also be used to disable using the GPU even if the code was compiled for GPU support, by setting the gpu_index to -1
from yolo3-4-py.
still waiting for this feature, thx
from yolo3-4-py.
@kli-nlpr The new merge request #25 has this feature implemented. Can you try it out and let me know whether it works as expected? Then I would merge it to master and do a new release. Unfortunately, I do not have multiple GPUs to test the code.
- Uninstall the version you have installed right now (
pip uninstall yolo34py-gpu
) - Clone the code in merge request #25
- Set environment variables GPU=1 and OPENCV=1.
- Run
pip install .
- Use
pydarknet.set_cuda_device
to change the GPU.
@jantman Thank you for your support. The link you mentioned helped me!
from yolo3-4-py.
Sure! For what it's worth, I was actually hoping to get this so that (I hope) it would work like the darknet option and setting the GPU device to zero would disable GPU mode and use CPU instead.
I've been having some issues with the detections using yolov3-tiny on GPU, and was looking to write something that comes back after-the-fact and runs my images through the full yolov3 in CPU mode using otherwise the same code.
from yolo3-4-py.
Hi @jantman, I believe setting the GPU to zero would make it use the Primary GPU. Why don't you use the version without GPU? (pip install yolo34py
instead of pip install yolo34py-gpu
).
from yolo3-4-py.
@madhawav That's what I'm doing now, but it means that I need to use two different virtualenvs... my goal is to compare the results of the tiny GPU and non-tiny CPU.
For the command-line darknet
binary, at least, setting GPU 1 is primary GPU and GPU 0 disables GPU mode.
from yolo3-4-py.
Option to select GPU is implemented with #25
from yolo3-4-py.
have eight GPUs.
By the way, 'python3 video_demo' only uses the first GPU and nothing else
What should I do??
from yolo3-4-py.
Related Issues (20)
- get error when i install yolo34py in Windows 8 pro HOT 1
- running yolov4 HOT 1
- Error installing from both pip and source HOT 5
- Disable architecture printing HOT 1
- batch inference HOT 1
- ModuleNotFoundError: No module named 'numpy' HOT 1
- does it work with yolov4? HOT 2
- Ubuntu 20.4 installation error HOT 1
- FileNotFoundError: pkg-config, pkg-config HOT 1
- ImportError: No module named pydarknet HOT 5
- Proxy issue in downloading https://github.com/madhawav/darknet while installing YOLO34PY using PIP HOT 1
- crashes on colab using custom weights/config HOT 2
- Trouble installing pip install yolo34py-gpu HOT 1
- Errors in "pip3 install yolo34py-gpu" HOT 1
- Error when installing yolo34py-gpu from source. HOT 2
- Segmentation Fault when running custom model HOT 1
- Error when pip installing
- Installation with newer GCC not working HOT 1
- Error pip installing yolo34py on windows
- Google Colab crashed when I was running the Detector HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yolo3-4-py.