How to Estimate Real Distance to Objects with a Single Camera and YOLO11

  Рет қаралды 6,117

Nicolai Nielsen

Nicolai Nielsen

Күн бұрын

Пікірлер: 40
@NicolaiAI
@NicolaiAI 3 ай бұрын
Join the AI Career Program www.nicolai-nielsen.com/aicareer Enroll in my Technical Courses www.nicos-school.com/courses/ Camera Calibration Software and High Precision Calibration Boards camera-calibrator.com/
@FernandaZ-u7c
@FernandaZ-u7c 3 ай бұрын
Everytime I see the video u uploaded, I am excited cuz all these progresses are impressive and promising.
@NicolaiAI
@NicolaiAI 3 ай бұрын
So awesome to read! Glad u like them and u made my day 💪
@hviiid91
@hviiid91 3 ай бұрын
This is very interesting.. again thanks for the video! Looking forward to some potential content on runtime performance with this
@NicolaiAI
@NicolaiAI 3 ай бұрын
For sure very interesting and unlocks a bunch of new opportunities in the vision space
@aashirahmed-q2f
@aashirahmed-q2f Ай бұрын
Hi Nicolai! I just want to ask that how can I estimate the depth of an object as well as its classification.
@isura3147
@isura3147 2 ай бұрын
Hey Nicolai , I get an error "No module named 'depth_pro' Any idea of how to resolve this issue ? i checked the folder structure and everything seems to be exactly as you have in your video. thank you !
@AmnaBano-kd7ex
@AmnaBano-kd7ex 2 ай бұрын
hey just place your main file in the ml-depth-pro-main\src\depth_pro folder that will do
@isura3147
@isura3147 2 ай бұрын
@@AmnaBano-kd7ex Thank you it worked! I appreciate it !
@sandeepwadhwa531
@sandeepwadhwa531 Ай бұрын
The focal length is read from exif info of the image (in mm) and then converted in the code to pixel values (utils has a function for it). When I print out the value of f_px, it is always None for all images. How is the model getting focal information. Also all the pictures that I use, the depth information is often wrong.
@twishakhurana7618
@twishakhurana7618 Ай бұрын
is it necessary that the image must be of high resolution?
@interestingfacts1466
@interestingfacts1466 Ай бұрын
How much time does the code take to run fully? Does it take much time?
@NazaninPadkan
@NazaninPadkan 3 ай бұрын
Thank you for the nice video. Did you also check the 3d reconstruction using open3d? Whenever I use an estimated depth from a metric MDE algorithm to generate a point cloud, I can not get a right size of objects
@NicolaiAI
@NicolaiAI 3 ай бұрын
Most likely because of the focal length and cam params being off. Have u tested out the new one here which also gives u the focal length? Then u can set the optical center to half of img height and half of width
@NazaninPadkan
@NazaninPadkan 3 ай бұрын
@@NicolaiAI Thanks for your answer. I have calibrated my camera and I have my own parameters. I have just found your new video, but I already tested Metric3D v2 and Anything Depth. But unfortunately I got need measurements in 3D and the sizes are not correct
@NicolaiAI
@NicolaiAI 3 ай бұрын
@NazaninPadkan the depth map is not based on your camera parameters but just an output from the ai model. So that might be one of the reasons
@NazaninPadkan
@NazaninPadkan 3 ай бұрын
What is your suggestion here?
@Skrewex
@Skrewex 3 ай бұрын
The video is pretty quiet compared to other videos and ads on KZbin, maybe bump up the volume a bit?
@NicolaiAI
@NicolaiAI 3 ай бұрын
Yeah missed that in this one! Thanks for letting me know
@Skrewex
@Skrewex 3 ай бұрын
No problem, thanks for the great videos!
@Rahi404
@Rahi404 3 ай бұрын
What's the VRAM usage of this Apple Model?
@NicolaiAI
@NicolaiAI 3 ай бұрын
Ran out out mem a couple of times on 16gb while recoding and bunch of stuff open. Prob around 10gb
@Rahi404
@Rahi404 3 ай бұрын
@@NicolaiAI then I've to find a new way to measure the distance with depth map
@kemmunvlogs7388
@kemmunvlogs7388 3 ай бұрын
Can it be used with IDS camera, man?
@NicolaiAI
@NicolaiAI 3 ай бұрын
Yes as long as u can extract the frames and throw them through the model
@insideyourbrain2333
@insideyourbrain2333 3 ай бұрын
it is posiible to implement this code in a Intel realsense camera or doing this with other versions of yolo like yolov3?
@NicolaiAI
@NicolaiAI 3 ай бұрын
Not sure why u would use a realsense camera with this but yeah u can use any other object detection models or any algorithm to index the depth map
@abophotato
@abophotato 3 ай бұрын
Good one, I hace seen your old video says c++ is faster than python but why this video is using python 🤔 btw may I ask what's your gpu are using now and it's c++ and python's fps?
@koufdell
@koufdell 3 ай бұрын
peace nicolai , i used the model with a mobile rtx 3050ti and it takes ages,any suggestions?
@NicolaiAI
@NicolaiAI 3 ай бұрын
Hmm might be because of ram. But did take 20 seconds on my MacBook cpu. Will have to test it on colab or my own gpu
@koufdell
@koufdell 3 ай бұрын
@@NicolaiAI well i used fp16 precision and ,while it took some time, it was faster TLDR:the create_model_and_transforms has an argument precision) thx for the reply,awesome content
@NicolaiAI
@NicolaiAI 3 ай бұрын
@koufdell thanks a lot!
@guilhermegouveialopes7170
@guilhermegouveialopes7170 Ай бұрын
hi everyone, i tried using this for a project, did everything like the video. The thing is, it is way too slow. I noticed that the "model.infer(image_input, f_px=f_px)" takes about 60 seconds to run. Is there any workaround for this? Thank you for reading
@isura3147
@isura3147 Ай бұрын
Yeah , i had the same issue, if you find a solution please do let me know as well . Thanks !
@sandeepwadhwa531
@sandeepwadhwa531 Ай бұрын
Same issue for me. The command does take about 4-5 minutes on Mac Book Air, 8GB.
@guilhermegouveialopes7170
@guilhermegouveialopes7170 Ай бұрын
@@isura3147maybe try other model. I heard that depthanything is much faster
@guilhermegouveialopes7170
@guilhermegouveialopes7170 Ай бұрын
@@sandeepwadhwa531see my other comment
Estimate Real Distance to Objects with Depth Pro and YOLO11
20:36
How to Prune YOLOv8 and Any PyTorch Model to Make It Faster
12:16
Nicolai Nielsen
Рет қаралды 4,9 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
How to do Object Detection using ESP32-CAM and Edge Impulse YOLO Model
16:50
YOLOv9: How to Train on Custom Dataset from Scratch with Ultralytics
21:22
Why Does Diffusion Work Better than Auto-Regression?
20:18
Algorithmic Simplicity
Рет қаралды 430 М.
3D Gaussian Splatting! - Computerphile
17:40
Computerphile
Рет қаралды 160 М.
How To Make A Legit Sound Camera
16:15
Benn Jordan
Рет қаралды 301 М.
YOLOv10: Train a Custom Model and Run Inference on Live Webcam
24:37
Nicolai Nielsen
Рет қаралды 37 М.
DON'T Become a Software Engineer - Do THIS instead
14:17
Tech With Soleyman
Рет қаралды 126 М.