-
Notifications
You must be signed in to change notification settings - Fork 280
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
Convert from Depth Pro default 1536x1536 implementation to 1024x1024 float16 tensor CoreML packages #45
base: main
Are you sure you want to change the base?
Conversation
Is there a piece of code missing ? depth_pro.py forward : encoder and decoder are not exported
convert_to_coreml.py:forward
Can you update the 1024 inference code , Thanks |
I'm not exactly sure actually, I've been running this directly in root path |
I updated the code so that Hope this helps to see how to continue from here with different sizing options and what not. |
b8dbdc5
to
499c3e8
Compare
aa18879
to
d32719f
Compare
…nsor size CoreML packages
I am looking to bind DepthPro into my iOS flutter application. What is the state of this work to enabling that? |
@charlieforward9 for better optimization I'd recommend to look at DepthAnything very similar work to what DepthPro has, and there are some readymade .mlpackage files available on HuggingFace for it. Those DepthAnything packages are trained with smaller DiNOV2 model optimizing them much better than I've reached here with decreasing the resolution only. I did some DiNOV2 model change trying too but unfortunately wasn't able to reach anything too much working with this. |
Since having the model available as a Are there any considerations I should make you'd like to warn me of? This is my first time doing this. |
*This PR is not meant to be merged currently*
Testing with converting Depth Pro to run on stock Apple MacBook M2 Neural Engine, and to do so convert the model to CoreML packages which can be executed as part of an application.
I can try to provide more suitable implementation if this is something that this project would like to have here on upstream too.
Videos where StyleGAN generates images for Depth Pro;
https://youtu.be/0728BHmhXFc & https://youtu.be/pteYTX9oWz0