Closed frontseat-astronaut closed 3 years ago
models.py,line 293and294,add "int"before img_size like this int(img_size[0]/nGw)
Yeah, thanks!
Yeah, thanks!
i have same issue , this method doesn't work!
Yeah, thanks!
i have same issue , this method doesn't work!
I have same issue too, I have tried changing L293 and L294 become like this:
self.stride = int(img_size[0]/nGw)
assert self.stride == int(img_size[1]/nGh), "{} v.s. {}/{}".format(self.stride, img_size[1], nGh)
but it still doesn't work too. Is there any suggestion?
I have solved this problem that make sure imgs.cuda() size is torch.Size([BATCH_SIZE, 3, 480, 864]). To get the size can use command imgs.cuda().size()
or imgs.cuda().shape
. And I also used adjust above.
Hi I am trying to train on my custom dataset. The shape of the images is (864x480). When I run the train.py file (with config file specified as cfg/yolov3_864x480.cfg), I get the following assertion error: