Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Depth-aware light injection in TypeGPU I got a 448x448 monocular depth model down to ~8 ms on my M4 Pro across ~250 dispatches, which is fast enough to use in realtime :D Since the inference is written directly in TypeGPU, I can just feed the depth buffer straight into...

10,104,231 Aufrufe • vor 1 Monat •via X (Twitter)

50 Kommentare

Profilbild von Konrad Reczko
Konrad Reczkovor 1 Monat

Here are some fun intermediate textures, the depth and constructed normals

Profilbild von Fernando
Fernandovor 1 Monat

Really nice. But you shouldn't cast a shadow when the light source is between you and the wall

Profilbild von Konrad Reczko
Konrad Reczkovor 1 Monat

True, but it looks cool :D Doubles as fake godrays

Profilbild von Marc Krenn
Marc Krennvor 1 Monat

dope! what depth model are you using?

Profilbild von Konrad Reczko
Konrad Reczkovor 1 Monat

Repacked DepthArt

Profilbild von Marc Krenn
Marc Krennvor 1 Monat

thanks, man! :)

Profilbild von dax
daxvor 1 Monat

cool

Profilbild von Rehan Ali Shah
Rehan Ali Shahvor 1 Monat

Can you share the link of the code you are using for this video. I want to try it.

Profilbild von Konrad Reczko
Konrad Reczkovor 1 Monat

Sure! I’m building it as a TypeGPU example so it will be fully open and runnable just like my selfie segmentation inference

Profilbild von vogel
vogelvor 1 Monat

woah this is insane wtf holyshit

Profilbild von グスタボ 🇧🇷
グスタボ 🇧🇷vor 1 Monat

can this add dynamic backgrounds in webcam?

Profilbild von Konrad Reczko
Konrad Reczkovor 1 Monat

Yeah, you get raw depth and pixel color you can do whatever you want with it

Profilbild von Mustafa.
Mustafa.vor 1 Monat

this is sickk

Profilbild von Rubén
Rubénvor 1 Monat

You invented Navi! :)

Profilbild von Marc
Marcvor 1 Monat

Does this use the TrueDepth camera? VisionCamera?

Profilbild von Konrad Reczko
Konrad Reczkovor 1 Monat

This on web but I will port it to Vision Camera on RN too

Profilbild von Marc
Marcvor 1 Monat

Nice! let me know how it goes, VisionCamera gives you depth frames via the CameraDepthOutput:

Profilbild von Konrad Reczko
Konrad Reczkovor 1 Monat

I actually wanted to run my custom network and just use the external texture interface via react-native-webgpu. Worked nicely for me last time :D

Profilbild von Marc
Marcvor 1 Monat

wdym exactly? no depth streaming? and which external texture interface do you mean, NativeBuffer?

Profilbild von Konrad Reczko
Konrad Reczkovor 1 Monat

Yup, exactly, I just take the raw camera info and run the inference via TypeGPU compute shaders

Profilbild von Marc
Marcvor 1 Monat

ah yes that is the perfect approach for stuff like this. if you build this with VisionCamera can you show me the code? :)

Profilbild von Konrad Reczko
Konrad Reczkovor 1 Monat

Of course, I love the lib btw, I can run code on the camera frames in a way that never reaches JS outside of native handles, brilliant

Profilbild von Sam Sheffer
Sam Sheffervor 1 Monat

whoa

Profilbild von Indra55
Indra55vor 1 Monat

Dayummm!! Where's the code

Profilbild von Konrad Reczko
Konrad Reczkovor 1 Monat

Soon, I have to clean it up and handle licensing the weights

Profilbild von Indra55
Indra55vor 1 Monat

Waiting!!

Profilbild von ahmet
ahmetvor 1 Monat

wtf have you built?!?!?!

Profilbild von Gyan Jara Hatke
Gyan Jara Hatkevor 1 Monat

😳😍👌

Profilbild von Kacper Kapuściak
Kacper Kapuściakvor 1 Monat

what kind of sorcery is this

Profilbild von Ackerman
Ackermanvor 1 Monat

yoo this is so cool, is it opensource?

Profilbild von Konrad Reczko
Konrad Reczkovor 1 Monat

Soon (it will be joining the family of TypeGPU examples I will post an update when it’s ready

Profilbild von John Kim
John Kimvor 1 Monat

very cool. I can see it being very useful for live streaming.

Profilbild von Google @ Home
Google @ Homevor 1 Monat

@grok_owner if you could plz implement this in your livestream to have a fairy fly around you the chat would appreciate it

Profilbild von Michał Wierzbiński
Michał Wierzbińskivor 1 Monat

Brought some stable fluids to the party. Can confirm: TypeGPU is, ineed, fire 🔥🔥

Profilbild von gfodor.id
gfodor.idvor 1 Monat

Wow, definitely gonna check this model out

Profilbild von Atom the UiUx Designer
Atom the UiUx Designervor 1 Monat

Sorcery

Profilbild von Artur Chakhvadze
Artur Chakhvadzevor 1 Monat

This is so sick!!!

Profilbild von Joseph Azar
Joseph Azarvor 1 Monat

that's smooth 🤘

Profilbild von taf 🝮
taf 🝮vor 1 Monat

@sivori Amazing!

Profilbild von am.will
am.willvor 1 Monat

the lighting physics are the most impressive part. very cool.

Profilbild von Dave Katague
Dave Kataguevor 1 Monat

dude you are fucking brilliant

Profilbild von adyingdeath
adyingdeathvor 1 Monat

This project is super cool. Like a AR game haha.

Profilbild von Aman Gupta
Aman Guptavor 1 Monat

Can we use lidar sensor on iphone for accurate depth ??

Profilbild von Konrad Reczko
Konrad Reczkovor 1 Monat

That would be amazing, on web I doubt it but on RN maybe

Profilbild von Duncan
Duncanvor 1 Monat

wizardry

Profilbild von PDF
PDFvor 1 Monat

The shadow effect annoys me, when the hand is between the camera and the light source the light would be directly hitting the wall there should not be a shadow casted from the hand

Profilbild von Konrad Reczko
Konrad Reczkovor 1 Monat

Yeah I get that a lot, good news is the shadow is togglable and I already took the feedback and tweaked the shadows so they are less offensive while still getting the “godray” effect which I like

Profilbild von PDF
PDFvor 1 Monat

Niceee, all the best!

Profilbild von Fred Wanders
Fred Wandersvor 1 Monat

I ve literally been working on something like this for web design. Your implementation is brilliant

Profilbild von Shweta Bharadwaj
Shweta Bharadwajvor 1 Monat

brilliant stuff, konrad!

Ähnliche Videos