PytorchSSD
PytorchSSD copied to clipboard
运行train_test.py时AssertionError: Invalid device id
Traceback (most recent call last):
File "train_test.py", line 183, in
你把refinedet——train的关于gpu的default改一下,改成你的GPU——ID
How much gpus did you want to use? Please note that argumentation, '--ngpu' in train_test.py.
First, add 'CUDA_VISIBEL_DIVICES=x1' (x1 is the gpu id) before 'python'
Second, add '--ngpu x'(x is the amount of gpus) behind your running shell command
Here is an example:
CUDA_VISIBLE_DEVICES=0 python train_test.py -d VOC -v FSSD_vgg -s 300 --ngpu 1
Try it, hopes working for you.