-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
Closed
Labels
StaleStale and schedule for closing soonStale and schedule for closing soonbugSomething isn't workingSomething isn't working
Description
Before submitting a bug report, please be aware that your issue must be reproducible with all of the following, otherwise it is non-actionable, and we can not help you:
- Current repo: run
git fetch && git status -uno
to check andgit pull
to update repo - Common dataset: coco.yaml or coco128.yaml
- Common environment: Colab, Google Cloud, or Docker image. See https://github.com/ultralytics/yolov5#environments
If this is a custom dataset/training question you must include your train*.jpg
, test*.jpg
and results.png
figures, or we can not help you. You can generate these with utils.plot_results()
.
🐛 Bug
Traceback (most recent call last):
File "train.py", line 519, in <module>
train(hyp, opt, device, tb_writer, wandb)
File "train.py", line 292, in train
pred = model(imgs) # forward
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/dcboy/work/project/yolov5/models/yolo.py", line 119, in forward
return self.forward_once(x, profile) # single-scale inference, train
File "/home/dcboy/work/project/yolov5/models/yolo.py", line 135, in forward_once
x = m(x) # run
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/dcboy/work/project/yolov5/models/common.py", line 86, in forward
return self.cv3(torch.cat((self.m(self.cv1(x)), self.cv2(x)), dim=1))
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/modules/container.py", line 117, in forward
input = module(input)
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/dcboy/work/project/yolov5/models/common.py", line 52, in forward
return x + self.cv2(self.cv1(x)) if self.add else self.cv2(self.cv1(x))
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/dcboy/work/project/yolov5/models/common.py", line 36, in forward
return self.act(self.bn(self.conv(x)))
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/modules/activation.py", line 394, in forward
return F.silu(input, inplace=self.inplace)
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/functional.py", line 1741, in silu
return torch._C._nn.silu(input)
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/utils/data/_utils/signal_handling.py", line 66, in handler
_error_if_any_worker_fails()
RuntimeError: DataLoader worker (pid 10497) is killed by signal: Killed.
To Reproduce (REQUIRED)
Input:
python train.py --name 6970399920439 --img 640 --batch 16 --epochs 300 --data ../6970399920439/dataset.yaml --cfg ../6970399920439/model.yaml --weight yolov5l.pt
Output:
Traceback (most recent call last):
File "train.py", line 519, in <module>
train(hyp, opt, device, tb_writer, wandb)
File "train.py", line 292, in train
pred = model(imgs) # forward
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/dcboy/work/project/yolov5/models/yolo.py", line 119, in forward
return self.forward_once(x, profile) # single-scale inference, train
File "/home/dcboy/work/project/yolov5/models/yolo.py", line 135, in forward_once
x = m(x) # run
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/dcboy/work/project/yolov5/models/common.py", line 86, in forward
return self.cv3(torch.cat((self.m(self.cv1(x)), self.cv2(x)), dim=1))
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/modules/container.py", line 117, in forward
input = module(input)
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/dcboy/work/project/yolov5/models/common.py", line 52, in forward
return x + self.cv2(self.cv1(x)) if self.add else self.cv2(self.cv1(x))
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/dcboy/work/project/yolov5/models/common.py", line 36, in forward
return self.act(self.bn(self.conv(x)))
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/modules/activation.py", line 394, in forward
return F.silu(input, inplace=self.inplace)
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/nn/functional.py", line 1741, in silu
return torch._C._nn.silu(input)
File "/home/dcboy/.local/lib/python3.6/site-packages/torch/utils/data/_utils/signal_handling.py", line 66, in handler
_error_if_any_worker_fails()
RuntimeError: DataLoader worker (pid 10497) is killed by signal: Killed.
Expected behavior
A clear and concise description of what you expected to happen.
Environment
If applicable, add screenshots to help explain your problem.
- OS: [e.g. Ubuntu]
- GPU [TX2]
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
StaleStale and schedule for closing soonStale and schedule for closing soonbugSomething isn't workingSomething isn't working