yolact
yolact copied to clipboard
RuntimeError : The expanded size of the tensor
first of all, thank you for sharing code. There was a problem running the code.
root@ce7bd19200ca:/workspace/yolact# python train.py --config=yolact_base_config --batch_size=5 Multiple GPUs detected! Turning off JIT. loading annotations into memory... Done (t=11.95s) creating index... index created! loading annotations into memory... Done (t=1.59s) creating index... index created! Initializing weights... Begin training!
Traceback (most recent call last):
File "train.py", line 382, in
what should I do?
Not sure if this is the issue, but if you're using multiple GPUs, you should use a batch size that's evenly divisible by the number of GPUs you're using. The first line says you're using multiple GPUs, so let me know if that works.
Hi @dbolya, im experiencing this as well, it happens only when I try to set the pred_aspect_ratios to have different number of pred_aspect_ratio at each scales as follow:
'pred_aspect_ratios': [ [[1]], [[1/2, 2]], [[1/2, 2]], [[1]] ]
is setting like this not allowed?
same to me , I change make_priors in multibox_loss.py , now it works!