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

input shape #26

Closed
spacewalk01 opened this issue Nov 3, 2022 · 2 comments
Closed

input shape #26

spacewalk01 opened this issue Nov 3, 2022 · 2 comments

Comments

@spacewalk01
Copy link

spacewalk01 commented Nov 3, 2022

Would you please explain why input channel of your tflite model is 4?
shape of input : [1,512,512,4]

@geonm
Copy link
Collaborator

geonm commented Nov 3, 2022

Hi

Please refer to https://github.com/navervision/mlsd#line-segment--box-detection-demo and here https://www.tensorflow.org/lite/performance/gpu#optimizing_for_gpus

MLSD was trained with RGB images (3 channels) but we added an alpha channel so it appears 4 channels as input.

If you want to check how to convert the trained MLSD models from 3 to 4 channels, please refer to https://github.com/navervision/mlsd/blob/master/frozen_models.py#L78

@spacewalk01
Copy link
Author

Thank you for your quick response!

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

No branches or pull requests

2 participants