zhyever / PatchFusion

[CVPR 2024] An End-to-End Tile-Based Framework for High-Resolution Monocular Metric Depth Estimation
https://zhyever.github.io/patchfusion/
MIT License
926 stars 62 forks source link

app.py:225: RuntimeWarning: invalid value encountered in cast #15

Closed petermg closed 6 months ago

petermg commented 6 months ago

When changing the resolution, for example from from 540 x 960 to 512 x 512, so far this happens with any other resolution I set it to, I get the following error: app.py:225: RuntimeWarning: invalid value encountered in cast

zhyever commented 6 months ago

Thanks for your interest in our work. This issue is caused by unconvered area. In another word, if you are using P16 mode with image resolution 4k, and at the same time you try to use patch size 512x512, there will be some areas not be convered by P16 patches, leading to invalid number in local ensemble