PyTorch-YOLOv3
PyTorch-YOLOv3 copied to clipboard
RuntimeError: Trying to resize storage that is not resizable at…
when i train my datasets,after i execute “python train.py --model_def config\yolov3.cfg --data_config config\custom.data --pretrained_weights weights\darknet53.conv.74“ in cmd,it gives me the following "Runtime error":
*Traceback (most recent call last):
File "train.py", line 99, in
i don't know why,please help me.thank you.
by the way,the cfg file named "yolov3.cfg" was edited according to my datasets' classes,the classes are 2 and fliiters is 21
I also met the problem,but it told me that it could't find the file
我也遇到同样的报错,解决了.我这边出现这个问题的原因是trian中某个图像文件对应的标签文件为空,剔除掉后,问题就解决了.(for English speaker: I met the same "Runtime error" as you and have solved it.I fond that there were some image files for training get an empty labels files(.txt).After I deleted it from my train date sets,every thing goes right. )
he same "Runtime error" as you and have solved it.I fond that there were some image files for training get an empty labels files(.txt).After I deleted it from my train date sets,every thing goes right.
solve it ,thank u !
确实是因为某张图片对应的txt标注文件中是空的,导致了这个报错。
when i use bdd100k:100k detection to train yolov3-pytorch, this occurs in with 2019d3d4-f10fe8c4.txt additionaly, 100k only have 69863 training lables(including the 2019d3d4-f10fe8c4.txt) may help your to save time. --southeast university ins department auto-lab
The best way to debug this is to iterate through the dataloader in the normal for loop.
My problem was that mt dataset fetched sometimes samples of different shapes.
The best way to debug this is to iterate through the dataloader in the normal for loop. My problem was that mt dataset fetched sometimes samples of different shapes.
Can you show us how to do that in a more detailed way?