-
Notifications
You must be signed in to change notification settings - Fork 161
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
[REQUEST] Implementing Depthmap Anything V2 model? #450
Comments
I'm also hoping for this! |
I am hoping somwbody could impöement it. I am busy currently. |
If @petermg @eyeEmotion @semjon00 wanted to test it out #458 in pull request. Might need some finessing but it seems to be working. |
Awesome! How do I install it instead of the main branch? |
Thought I got it installed, it shows up as an option but it gives the error: ModuleNotFoundError: No module named 'depth_anything_v2' |
Here's the full error: Please report this issue here. Make sure to provide the full stacktrace: |
You might need to do a extra If not check that in the extension file I might have also made a pathing error somewhere. |
Thank you for all the information! That is how the folder should look, so I'm a little confused. I made some small edits, but I'm not confident they'll fix it. I'll have to think about it more. If you have any other extensions that use depth_anything_v2 you could try changing the line to My import structure is very similar to the marigold import. Does marigold work for you? |
Yes Marigold works no problem. Maybe I installed it wrong? I went to EXTENSIONS tab, UNCHECKED the official depth map extension and installed this one via INSTALL FROM URL and used this as the url: |
ok I deleted the extensions inside the folder and installed just your version and the depth tab is back but still the same exact error. I'll see if I can figure out how to do what you mentioned about changing the line to from depth_anything_v2.dpt import DepthAnythingV2 and seeing if there's any change. |
I am unable to find the file "depth_anything_v2.dpt". Should I have it somewhere? |
the problem import line is in Oh I forgot to push my last updates. |
THAT WORKED!!! |
So for some reason YOUR version is working BETTER than if I just use depth anything v2 from here |
Awesome! A lot of scripts downsample to 8bit arrays while saving images. I'm not sure why they do this. For precision at a certain point it probably just makes more sense to work with pointclouds or float arrays because then they keep more information. This didn't make sense earlier because there wasn't enough detail anyways, but I think monodepth is starting to get precise enough that it might make sense to think about switching out of images for 3d work. (the line of code in
|
Thank you, how can I modify this so that I can increase the precision? |
Ok so I changed to this:
from:
Now it creates files that are 16 bit but are very dark, look almost black, until I open them in GIMP and use the LEVELS tool. I also increase the precision in GIMP as high as it will go BEFORE I save the file, but I don't think I should HAVE to do this but it turns out better when I do. I'm crazy impressed with this so far. Would be nice to be able to automate this so that I can process multiple at a time. Here is my current command line that I run python run.py --encoder vitl --img-path Inputpics --outdir Outputpics --pred-only --grayscale --input-size 1200 Increasing the input size makes a NOTICEABLE DIFFERENCE! |
Oh instead of 2048 you should be able to use 255*255 or 65025. This should make them less dark. The input size is interesting I should double check that I implemented that correctly. |
THANKS!! that works PERFECTLY!!! |
I don't really know much about the whole "BOOST" and "TILING" options, they always seem to make things WORSE when I've tried to use them, but at least for Depth Anything V2, I think what IS useful if you could implement it in this plugin version of it, is changing the input size, like manually selecting it on the sliders and also selecting the native input size checkbox. |
Now that there has been so much progress in this thread towards installing and using without errors, would it be possible to give a quick guide of how to install this for a less advanced user like myself? I would really love to give this a try. |
|
Hi,
is there any intention of implementing the new Depth Anything v2 model? (Base and Large).
I'm currently using it via cmd-prompt, and it has a lot more detail, and is a little bit faster at generating depthmaps too. Although in certain areas, it does take a step backwards though in comparison to v1. But still a vast improvement overal.
Cheers.
PS: sorry, I don't know how to put labels on there requests.
The text was updated successfully, but these errors were encountered: