thtrieu / darkflow

Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices
GNU General Public License v3.0
6.13k stars 2.08k forks source link

Do not using my GPU #1027

Open Lee-JeongMin opened 5 years ago

Lee-JeongMin commented 5 years ago

I training my own dataset. But, darkflow is not using my GPU. How to use GPU? MY command is CUDA_VISIBLE_DEVICES=1 python3 flow --model ./cfg/my-yolo.cfg --labels ./labels.txt --dataset ./data/corn_img/ --annotation ./data/Result_corn_old-batch 32 --epoch 10000 --save 1000 --keep 50 --lr 1e-04 --gpu 0.9 I already tried to --gpu 1.0 but, darkflow only use CPU.

AND do you know how to use multi gpus? i have 4 gpus(0,1,2,3) but I use only 2 gpus(2,3)

How can i fix it??

weiwei106 commented 5 years ago

I meet the same issues.

weiwei106 commented 5 years ago

I training my own dataset. But, darkflow is not using my GPU. How to use GPU? MY command is CUDA_VISIBLE_DEVICES=1 python3 flow --model ./cfg/my-yolo.cfg --labels ./labels.txt --dataset ./data/corn_img/ --annotation ./data/Result_corn_old-batch 32 --epoch 10000 --save 1000 --keep 50 --lr 1e-04 --gpu 0.9 I already tried to --gpu 1.0 but, darkflow only use CPU.

AND do you know how to use multi gpus? i have 4 gpus(0,1,2,3) but I use only 2 gpus(2,3)

How can i fix it??

maybe you can use other tensorflow vrsion.

Lee-JeongMin commented 5 years ago

@weiwei106 I fixed it! I’m using tensorflow 1.6.0 It is no matter. I use docker, I add tensorflow enviroment on docker. So i use GPU, but i think can’t using multi GPU.

yo3hcv commented 5 years ago

I had the same issue (Windows 7, GTX1070) Basically tensorflow-gpu depends on many other packages, pip install is not sufficient.

I uninstalled everything, than let conda to manage all

conda install tensorflow-gpu

Now it works great, confirmed by GPU-Z