Skip to content

Enhancing the program compatibility of inferencing image directory #3211

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bolun365
Copy link

Motivation

An error occurred while mmpose was inferring the image directory

Modification

when mimetypes.guess_type(filepath)[0] is none, subsequent reasoning does not require execution

Checklist

Before PR:

  • I have read and followed the workflow indicated in the CONTRIBUTING.md to create this PR.
  • Pre-commit or linting tools indicated in CONTRIBUTING.md are used to fix the potential lint issues.
  • Bug fixes are covered by unit tests, the case that causes the bug should be added in the unit tests.
  • New functionalities are covered by complete unit tests. If not, please add more unit tests to ensure correctness.
  • The documentation has been modified accordingly, including docstring or example tutorials.

After PR:

  • CLA has been signed and all committers have signed the CLA in this PR.

当图片目录出现mimetypes无法识别的格式时, 会出现如下报错
AttributeError: 'NoneType' object has no attribute 'split'
Enhance the program compatibility of  inferencing image directory
@CLAassistant
Copy link

CLAassistant commented Apr 27, 2025

CLA assistant check
All committers have signed the CLA.

@bolun365 bolun365 changed the title Enhance the program compatibility of inferencing image directory Enhancing the program compatibility of inferencing image directory Apr 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants