-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Corrupted JPEG,I can't solved. #3731
Comments
👋 Hello @992060356, thank you for your interest in 🚀 YOLOv5! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution. If this is a 🐛 Bug Report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you. If this is a custom training ❓ Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available. For business inquiries or professional support requests please visit https://www.ultralytics.com or email Glenn Jocher at glenn.jocher@ultralytics.com. RequirementsPython 3.8 or later with all requirements.txt dependencies installed, including $ pip install -r requirements.txt EnvironmentsYOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
StatusIf this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training (train.py), testing (test.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit. |
What are your image and label paths? Also, what does a typical labels file look like? |
@992060356 if you believe your JPEGs are ok then you may want to load and save them with cv2 so that they are properly saved, avoiding the corrupt JPEG message. |
Are you sure?Please check them carefully again.May be this will help you.#3656 |
thanks for your reply,I will try this way. |
看了你的#3656问题,我跟你的问题不太一样,标签中的坐标也没有越界。 |
I'm realy happy,I take cv2 load and save them ,then try again ,it's successfull, why? I looked at their properties,It is found that the image file is more than 50 K larger than the original image file, and has more horizontal and vertical resolution attributes |
@992060356 @SpongeBab one option here might be to simply re-save the corrupted jpegs with cv2 automatically, or provide an option to do this. But in the case of seriously problematic JPEGs this would allow them to be included in training. |
Thank you very much for your suggestions, have not found the specific reasons, I do not know if there is a relationship with the cv2 version |
I met this problem too. why this is closed? |
OH! duplicate labels. |
@992060356 @ccl-private good news 😃! Your original issue may now be fixed ✅ in PR #4548. This PR automatically restores and saves corrupted JPEGs, and all images are now used for training, including the restored JPEGs. To receive this update:
Thank you for spotting this issue and informing us of the problem. Please let us know if this update resolves the issue for you, and feel free to inform us of any other issues you discover or feature requests that come to mind. Happy trainings with YOLOv5 🚀! |
I think this should not have happened, I had no idea that running the training routine will change the files that are stored on the computer. I think this is a weird side effect that should be optional and by default not allowed. |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
❔Question
Why is my image or label corrupted? A lot of pictures are corrupted, so I checked some of them and opened the pictures and the corresponding label. There is no problem.
Can you give me some help?
I tried to delete cacha and retrain
I looked at utiles / datasets.py, but I didn't know how to debug it.
Additional context
`train: WARNING: Ignoring corrupted image and/or label voc/images/9556041603720_camera3-8.jpg: corrupted JPEG
train: WARNING: Ignoring corrupted image and/or label voc/images/9556041603720_camera3-9.jpg: corrupted JPEG
train: Scanning 'voc/train' images and labels...29281 found, 0 missing, 0 empty, 46085 corrupted: 100%|█| 75366/75366 [00:08<00
train: New cache created: voc/train.cache
val: WARNING: Ignoring corrupted image and/or label voc/images/9556041603720_camera2-25.jpg: corrupted JPEG
val: WARNING: Ignoring corrupted image and/or label voc/images/6907777808584-back_camera2-20.jpg: corrupted JPEG
val: Scanning 'voc/val' images and labels...333 found, 0 missing, 0 empty, 505 corrupted: 100%|███████| 838/838 [00:00<00:00, 1
val: New cache created: voc/val.cache
Plotting labels...
autoanchor: Analyzing anchors... anchors/target = 3.51, Best Possible Recall (BPR) = 1.0000
Image sizes 1280 train, 1280 test
Using 4 dataloader workers
Logging results to runs/train/RPC
Starting training for 600 epochs...
`
The text was updated successfully, but these errors were encountered: