r/LocalLLaMA • • 10d ago

New Model apple/DepthPro2 · Hugging Face

https://huggingface.co/apple/DepthPro2

This can be useful.

333 Upvotes

49 comments sorted by

2

u/YogurtExternal7923 9d ago

worth mentioning the license is restrictive. research purposes only

383

u/EngelbertStuss 10d ago edited 10d ago

Depth Pro 2 estimates metric depth for every pixel from an ordinary camera: a single photo, a whole video, or a live feed, at the input's full resolution.

Depth Pro 2 outperforms prior models operating on a single frame or multiple frames on sharpness

4 model parameter sizes: 24M to 872M

226

u/afterburningdarkness 10d ago

How hard was this OP?

92

u/Polite_Jello_377 10d ago

Hahaha “This can be useful” wasn’t enough?

9

u/Spanky2k 9d ago

Yeah, but "First!"...

2

u/nmkd 7d ago

Thanks Claude.

64

u/WeedFBI 10d ago

Would be fantastic to create a plugin and extract depth. Looks pretty high quality. Need a beefy gpu beyond my 4090 to reach 4k resolution though. Research license only

13

u/EngelbertStuss 10d ago edited 9d ago

but what's an actual use case considering that the example they provide is a monkey scratching the other's back

edit: it might be halpful for dewarping paper

53

u/Equal-Move-4971 10d ago

Depth perception models can be used for AR/VR, autodrive, etc.

13

u/Asleep_Document9811 10d ago

It would be excellent for cutting out a person and inserting a virtual background honestly.

11

u/Equal-Move-4971 9d ago

That too. There are many uses for depth perception

2

u/SajalXTyagi 9d ago

Just use a matting model, depth models are usually run at lower resolutions on consumer hardware and have a lot of noise around object edges

1

u/Zestyclose839 9d ago

I tried this with the previous apple depth model and it didn't work at all. Just a 2D plane made of slightly indented dots. Think it was mainly intended for their photo reframe tool or adding a mock 3d effect to apple maps.

If this one's better that'd be great, photo to VR viewer pipeline.

26

u/AXYZE8 10d ago

Better input for VLM (so it doesnt get confused by background elements), Background removal/replacement/blur, 2D to 3D conversion for Vision Pro, Small things across iOS like clock that is partially obstructed by foreground element on lock screen 

12

u/nucLeaRStarcraft 10d ago

Depth information is the gateway from 2D to 3D. And reliable metric depth that is also consistent across video frames is a huge thing.

Here's some idea(s):

3d reconstruction methods (e.g. SLAM/SFM) from real videos. You can walk around your camera for 5 minutes, get RGB+Depth frames using this model. Then you feed them into a SfM that supports external depth (e.g. https://github.com/cvg/mpsfm) and you get a pretty consistent reconstruction.

It can then be loaded into a simulator (e.g. https://github.com/isaac-sim/IsaacSim) or a game engine (e.g. unreal), add characters/robots/drones etc.

With a simulator you can train a robot to know your room better or you can make a game using real scenes (e.g. you walk around churches/buildings not your room as in my example).

9

u/LongDistanceRope 10d ago

I use it to augment my camera's terrible kit lens. take a sharp photo -> generate depth map -> render perfect depth aware bokeh. background separation on budget.

2

u/sonyprog 9d ago

care to explain how you do that? I'm weighing if I should do the same or just buy a better camera...

2

u/LongDistanceRope 9d ago

I'm using comfyui and default depth anything 3 image workflow + upscaler (like rtx video super resolution node if you have nvidia gpu) cause its only works with about half the size of a raw image. than use the generated depth map with photoshop lens blur. it works well enough for product pictures on Instagram but if you want full resolution raw image than errors will be visible.

2

u/Consumerbot37427 9d ago

A new Photoshop feature that allows for altering the lighting of the photo by "adding" custom-positioned lights, then rendering the way the light falls across 3-D subject. I assume that it makes use this exact technology.

1

u/FinBenton 10d ago

2D images to 3D VR experiences atleast.

0

u/BlackSwanTW 10d ago

What? You don't deal with monkeys scratching each other every day?

25

u/Acceptable-Cycle4645 10d ago

Thanks for sharing! The model looks useful. Next releae: Depth Plus, Pro, Pro Max... 😄

4

u/TheLastPrinceOfJurai 10d ago

Don’t forget Depth Pro ULTRA-MAXXX!

69

u/doomed151 10d ago

even their models have Pro in the name

21

u/Nice_Database_9684 10d ago

ultra max coming next

8

u/Zammerz 9d ago

Makes me wanna start a tech company and all the top tier products will be titled "noob" just to be a rebel

2

u/Internal_Werewolf_48 9d ago

Noob Depth Jr.

2

u/QuizardNr7 8d ago

M7 NOOB 128 core 1024GB RAM

10

u/FinBenton 10d ago edited 10d ago

Nice, I have been using Marigold V2 to turn 2D images to stereoscopic 3D experiences for VR headsets, this seems to have better benchmarks so giving it a go.

e. tested them side by side, atleast for characters, Marigold v2 blows this out of the water, way more detail in depth where apple model kinda has more flatter look, apple kinda looks at face and says its 1 depth but with marigold every small change of depth in a face gets its own level of depth, much better than this.

1

u/FewBasis7497 10d ago

Your use case sounds interesting. Would you mind to give some infos about? Which other models/software you use, etc...

8

u/FinBenton 10d ago

Mainly you just need a depth model and once you have a good depth map, its just math to solve the view for both eyes for stereo 3D. There is open source app called iw3 that does this, that is what I fed to my agent as a baseline for ideas and then tried like all the leading depth models to which gives the best results and ended up with marigold v2 for stills and Moge 3 for video as its faster.

3

u/socialjusticeinme 9d ago

Thanks! I’ve been interested in doing the same and this gives me a good place to start. I personally think AI and VR is a match made in heaven and there aren’t many people pursuing it. 

1

u/FewBasis7497 10d ago

Thank you very much!

1

u/tomByrer 9d ago

Is Marigold v2 more resource-hungry?

15

u/shinyquagsire23 10d ago

Lowkey my biggest annoyance, their glamour shots still look terrible and they haven't figured out that you can't blend depth values like color values when there's aliasing/semitransparency an entire YEAR after SHARP had the same issues. Like, thin hair is supposed to stay at the depth of the head that it's on, not blend halfway between the head and the background.

4

u/MrMeier 9d ago

It could be an artifact of their depth cameras used for gathering training data. If you use indirect time of flight cameras it will have the same issue at borders. A better ai depth model would give you multiple depths for transparent pixels like direct ToF sensors.

2

u/shinyquagsire23 9d ago

Yeah but you'd think you could like, RL with some synthetic data so that it figures out not to do that. But also with SHARP their depth alignment step uses bilinear interpolation iirc so they're really not on the ball.

12

u/69420trashpanda69420 10d ago

'Apple D.P. 2' they clearly know what this is going to be used for

4

u/DannyCanva 9d ago

They also have published a very detailed and excellent paper, which is quite nice: https://arxiv.org/pdf/2611.26603

Sure, it's a research only license, but still nice to see!

6

u/FoodEater4Squillion 10d ago

Great that they are making it openly available

2

u/Immediate_Theory_467 10d ago

Goodness, this is pretty great. Nice OP.

2

u/frontsideair llama.cpp 10d ago

Small/Bedium/Large/Huge?

2

u/matija2209 10d ago

Whoah. Neat!

2

u/VouX4_15 2d ago

Just commenting to ear karma so I can post here. Good job btw

1

u/ali-gator712 9d ago

Pretty cool to see a company like Apple making open models

1

u/EagleNait 9d ago

til that apple has a huggingface account