positive666/yolo_research

Decoupled_Detect bug

2239891257 opened this issue · 3 comments

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:

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

A clear and concise description of what the bug is.

To Reproduce (REQUIRED)

Input:

import torch

a = torch.tensor([5])
c = a / 0

Output:

Traceback (most recent call last):
  File "/Users/glennjocher/opt/anaconda3/envs/env1/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3331, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-5-be04c762b799>", line 5, in <module>
    c = a / 0
RuntimeError: ZeroDivisionError

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 [e.g. 2080 Ti]

Additional context

Add any other context about the problem here.

File "/root/Yolo_Transformer/models/yolo_test.py", line 203, in forward
self.grid[i], self.anchor_grid[i] = self._make_grid(nx, ny, i)
RuntimeError: expand(torch.cuda.HalfTensor{[3, 68, 84, 2]}, size=[]): the number of sizes provided (0) must be greater or equal to the number of dimensions in the tensor (4)

File "/root/Yolo_Transformer/models/yolo_test.py", line 203, in forward self.grid[i], self.anchor_grid[i] = self._make_grid(nx, ny, i) RuntimeError: expand(torch.cuda.HalfTensor{[3, 68, 84, 2]}, size=[]): the number of sizes provided (0) must be greater or equal to the number of dimensions in the tensor (4)

Hello, please provide the model structure or run the command

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.