When running detect.py for inference testing after yolov5 training is complete, this error occurs:
The specific error is as follows:
Solution:
1. Click the error reporting method below to enter:
2. Modify to the following code:
Done!
Read More:
- Cv2.dnn read model error [How to Solve]
- [Solved] Opencv Call yolov3 Error: IndexError: invalid index to scalar variable
- [Solved] RuntimeError: Error(s) in loading state_dict for Model: Missing key(s) in state_dict
- [Solved] NCCL error in: /pytorch/torch/lib/c10d/ProcessGroupNCCL ,unhandled cuda error, NCCLversion 2.7.8
- blackduck Error: Request failed authorization [HTTP Error]: XXX, response was 403 Forbidden.
- Git pull code error fatal: authentication failed fo
- [Solved] NVIDIA driver error: NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver…
- Python Importerror: DLL load failed: the page file is too small to complete the operation.
- [How to Solve] error Parsing error: x-invalid-end-tag
- [Solved] Keil Error: Error: Flash Download failed – “Cortex-M4“
- [Solved] RuntimeError: 1only batches of spatial targets supported (non-empty 3D tensors) but got targets of s
- QT Error: use of undeclared identifier [How to Solve]
- [Solved] 1.fatal error: NvInfer.h: No such file or directory
- [Solved] cnpm: Cannot load the file C:\Users\Raytine\AppData\Roaming\npm\cnpm.ps1 because running scripts is prohibited on this system
- [Solved] Azkaban uploads Zip file error: installation failed.malformed
- How to Solve VMware Workstation Error: The VMware Authorization Service is not running.
- [Solved] Intellij IDEA Run Error: Command line is too long
- QT Error: Failed to create vertex shader [Three Methods to Fix]
- [Solved] Qt UpdateLayeredWindowIndirect failed for ptDst Error
- [Solved] CONDA error: Condahtterror: http 000 connection failed for URL