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

No support for WebP Images #135

Open
zdhernandez opened this issue Apr 10, 2023 · 0 comments · May be fixed by #782
Open

No support for WebP Images #135

zdhernandez opened this issue Apr 10, 2023 · 0 comments · May be fixed by #782
Labels
enhancement New feature or request

Comments

@zdhernandez
Copy link

Please add support for WebP images.

@nikhilaravi nikhilaravi added the enhancement New feature or request label Apr 12, 2023
HendricksJudy added a commit to HendricksJudy/segment-anything that referenced this issue Oct 21, 2024
Fixes facebookresearch#135

Add support for WebP images.

* **demo/configs/webpack/common.js**
  - Add `webp` to the `test` array in the rule for image files.
  - Update the `image-webpack-loader` configuration to support WebP images.

* **demo/src/App.tsx**
  - Update the `loadImage` function to handle WebP images.
  - Add error handling for WebP images.

* **scripts/amg.py**
  - Update the `cv2.imread` function to support WebP images.
  - Add conditional handling for WebP images in `cv2.cvtColor`.

* **scripts/export_onnx_model.py**
  - Import `cv2` module.
  - Update the `cv2.imread` function to support WebP images.
  - Add conditional handling for WebP images in `cv2.cvtColor`.
@HendricksJudy HendricksJudy linked a pull request Oct 21, 2024 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