Recently, when learning yolo4 and running your own data set with yolo4, I found that the
training set layer before revolutionary layer must output image.: no error.
1. Solution
Check the customized cfg file. The size of the input image is set as follows
if both height and width are set to a multiple of 32, this problem will not occur. I set it here as 416, 416
2. Follow up questions
Pay attention to setting size to the size of the picture in your dataset, otherwise, you may not be able to open the picture. The error is as follows
Can’t load image xxxxxxxxxxxxxxxxxx
Read More:
- [Solved] yolov5-6.0 ERROR: AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘
- [Solved] Yolov5 Deep Learning Error: RuntimeError: DataLoader worker (pid(s) 2516, 1768) exited unexpectedly
- [Solved] AttributeError: module ‘PIL.Image‘ has no attribute ‘open‘
- [Solved] Training yolov5 Error: attributeerror: can get attribute sppf on Module
- Error:output with shape [1, 224, 224] doesn‘t match the broadcast shape [3, 224, 224]
- [Solved] YOLOv5 Error: SyntaxError: EOL while scanning string literal
- [Solved] YOLOv5 Model training error: TypeError: new(): invalid data type ‘str’
- RTX 3090 Run pytorch Error: CUDA error: no kernel image is available for execution on the device
- python: File Processing and Input and Output
- Python uses try… Except… To output detailed errors
- Httprunner output assure Report
- How does Python output colored fonts in the CMD command line window
- [Solved] Mindspot error: Error: runtimeerror:_kernel.cc:88 CheckParam] AddN output shape must be equal to input…
- [Solved] torchvision Error: UserWarning: Failed to load image Python extension: Could not find module
- [Mac Pro M1] Python3.9 import cv2 Error: Reason: image not found
- jpeg4py.JPEG(path).decode() Open Image Error [How to Solve]
- [Solved] Python Image Library fails with message “decoder JPEG not available” – PIL
- [Perfectly Solved] attributeerror: module ‘SciPy. Misc’ has no attribute ‘toimage’ error
- ModuleNotFoundError: No module named ‘tensorflow.python’ And the pits encountered after installation
- [Solved] LeNet Script Train Error: AttributeError: ‘DictIterator’ object has no attribute ‘get_next’