Open pablobiedma opened 7 months ago
Same problem here
@weijielyu I have managed to circumvent this issue by computing Depth of Field directly using this script, feel free to take a look: https://github.com/pablobiedma/DoF-with-MiDaSv3.1
@weijielyu I have managed to circumvent this issue by computing Depth of Field directly using this script, feel free to take a look: https://github.com/pablobiedma/DoF-with-MiDaSv3.1
Got it, thank you!
@weijielyu I have managed to circumvent this issue by computing Depth of Field directly using this script, feel free to take a look: https://github.com/pablobiedma/DoF-with-MiDaSv3.1 Your code does not load the model trained by MiDaSv3.1, but MiDaS v2.1
If the version of timm is too high, it will cause this problem. I replaced timm 0.9.7 with version 0.6.12 adapted to the project, and the problem disappeared
If the version of timm is too high, it will cause this problem. I replaced timm 0.9.7 with version 0.6.12 adapted to the project, and the problem disappeared
This solved the issue for me
For easy inference see #259
If the version of timm is too high, it will cause this problem. I replaced timm 0.9.7 with version 0.6.12 adapted to the project, and the problem disappeared
Works nice!
Hello everyone, I am new to MiDaS and I am trying to get it to run for the first time. I followed the instructions and added the downloaded weights to the weight folder. Then I added 10 random images to the input folder. After I run execution the following command:
python run.py --model_type dpt_swin2_tiny_256 --input input --output output
(also with model and weights for dpt_beit_large_512 and dpt_swin2_large_384) I get the following error message:Initialize
Essentially, I am encountering a size mismatch error when trying to load pre-trained weights into the DPTDepthModel. Despite ensuring that the model type and the pre-trained weights should be compatible, the error persists.
Do you know what my mistake is? Any help is appreciated