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

image2tensor supports planar format output. #92

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

jianjunz
Copy link
Contributor

This change mainly adds support for outputting tensor bytes in planar memory layout, or CHW format. Besides this, it also adds support for png input with alpha channel (output still doesn't have alpha channel, so it's stripped out).

@abrown
Copy link
Collaborator

abrown commented Jan 13, 2024

cc: @geekbeast

@abrown
Copy link
Collaborator

abrown commented Jan 13, 2024

I guess one of us should try to fix CI; @jianjunz, we can talk about this more next week. The current job is a bit of a scripted monolith that we might need to refactor. But then again, it's not too useful to spend a lot of time on this since the bindings portion of this could be replaced by wit-bindgen-generated bindings for wasi-nn.

@jianjunz
Copy link
Contributor Author

Thanks for your review. Please help merge if it looks good.

The CI failure is caused by openvino checksum mismatch. It may need an update.

@abrown abrown merged commit dec0dd4 into bytecodealliance:main Jan 23, 2024
4 checks passed
@jianjunz jianjunz deleted the img branch January 24, 2024 00:51
@geekbeast
Copy link
Contributor

A bit late, but this looks good to me.

guptaaryan16 pushed a commit to guptaaryan16/wasi-nn-mlx that referenced this pull request Jun 10, 2024
* image2tensor supports planar format output.

* Add enum MemoryLayout for planar output.
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.

3 participants