Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inference detect.py does not support .asf video format #6435

Closed
2 tasks done
toschi23 opened this issue Jan 26, 2022 · 2 comments · Fixed by #6436
Closed
2 tasks done

Inference detect.py does not support .asf video format #6435

toschi23 opened this issue Jan 26, 2022 · 2 comments · Fixed by #6436
Labels
enhancement New feature or request

Comments

@toschi23
Copy link
Contributor

Search before asking

  • I have searched the YOLOv5 issues and found no similar feature requests.

Description

The ".asf" file format is not recognized.
Running: python3 detect.py --source "myvideofile.asf" results in the following output:

AssertionError: No images or videos found in /mnt/rm-data/Smart 1 04.10.21 06.00-08.00/9 - 2021-10-04 06-37-46-371.asf. Supported formats are: images: ['bmp', 'dng', 'jpeg', 'jpg', 'mpo', 'png', 'tif', 'tiff', 'webp'] videos: ['avi', 'gif', 'm4v', 'mkv', 'mov', 'mp4', 'mpeg', 'mpg', 'wmv']

Simply adding 'asf' to the utils/datasets.py video list solves my issue and the file gets processed without any further changes to the code.

Use case

Everyone with .asf files could benefit.

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@toschi23 toschi23 added the enhancement New feature or request label Jan 26, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jan 26, 2022

👋 Hello @toschi23, 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://ultralytics.com or email [email protected].

Requirements

Python>=3.7.0 with all requirements.txt installed including PyTorch>=1.7. To get started:

git clone https://github.com/ultralytics/yolov5  # clone
cd yolov5
pip install -r requirements.txt  # install

Environments

YOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):

Status

CI CPU testing

If 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), validation (val.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit.

@glenn-jocher
Copy link
Member

@toschi23 thanks for the issue! Can you please submit a PR with your new video suffix? Thanks!

@glenn-jocher glenn-jocher linked a pull request Jan 26, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants