simple-faster-rcnn-pytorch icon indicating copy to clipboard operation
simple-faster-rcnn-pytorch copied to clipboard

How to run the code with batchsize >1

Open ZhuYingJessica opened this issue 5 years ago • 8 comments
trafficstars

I'll be grateful if any one can give me some suggestions about how to run the code with batchsize greater than 1

ZhuYingJessica avatar Apr 11 '20 02:04 ZhuYingJessica

in train.py, u can freely define the batch size in train().

chrisway613 avatar Jul 21 '20 07:07 chrisway613

dataloader = data_.DataLoader(dataset,
batch_size=1,
shuffle=True,
# pin_memory=True, num_workers=opt.num_workers)

skyundead avatar Jul 21 '20 14:07 skyundead

But I found if we set batch size > 1, it will raise an exception error..

chrisway613 avatar Jul 22 '20 03:07 chrisway613

但是我发现如果我们将批处理大小设置为> 1,则会引发异常错误。

haha,me too。if batch_size = 2,it can‘t work。

skyundead avatar Jul 22 '20 06:07 skyundead

Have you solved this problem? I encountered this problem while training the model.

joqiaoy avatar Mar 24 '22 08:03 joqiaoy

Sorry,i just changed another source code

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2022年03月24日 16:43 | | 收件人 | @.> | | 抄送至 | @.@.> | | 主题 | Re: [chenyuntc/simple-faster-rcnn-pytorch] How to run the code with batchsize >1 (#181) |

Have you solved this problem? I encountered this problem while training the model.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

ZhuYingJessica avatar Mar 29 '22 11:03 ZhuYingJessica

Is the cause of this problem the image size is not the same?

Ayu000 avatar May 02 '22 02:05 Ayu000

No,it seems that this code is not supportive for batchsize>1

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2022年05月02日 10:45 | | 收件人 | @.> | | 抄送至 | @.@.> | | 主题 | Re: [chenyuntc/simple-faster-rcnn-pytorch] How to run the code with batchsize >1 (#181) |

Is the cause of this problem the image size is not the same?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

ZhuYingJessica avatar May 02 '22 03:05 ZhuYingJessica