tf-lite-unity-sample icon indicating copy to clipboard operation
tf-lite-unity-sample copied to clipboard

Speedup Texture to Tensor conversion using Burst/ComputeShader

Open asus4 opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Currently, only the float input is handled by ComputeShader in TextureToTensor.cs. We can optimize all types of input tensors by using Burst Compiler or ComputeShader.

https://github.com/asus4/tf-lite-unity-sample/blob/a6a514f2c6e66eab005e55c158bc2afd7ca0efd4/Packages/com.github.asus4.tflite.common/Runtime/TextureToTensor.cs#L38-L66

Additional context

Reference: https://github.com/Unity-Technologies/UnityTextureAccessApiExamples

asus4 avatar Jun 21 '22 14:06 asus4

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 31 '22 06:08 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 10 '22 05:11 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 10 '23 00:01 stale[bot]