apple / ml-depth-pro

Depth Pro: Sharp Monocular Metric Depth in Less Than a Second.
Other
3.76k stars 253 forks source link

How do I batch generate depth maps? #54

Open Yu-xm opened 1 month ago

Yu-xm commented 1 month ago

Can you help me?

MichaelAkridge-NOAA commented 1 month ago

If helpful, here are a few experiments I did with python notebook that shows how to batch generate depth maps:

edit: see section about "for image_file in os.listdir(image_folder):"

I used it in combination with a YOLO11 fish detection model to batch process video frames/subjects.

after_00002_depth_overlay

adasddasasd commented 2 weeks ago

If helpful, here are a few experiments I did with python notebook that shows how to batch generate depth maps:

edit: see section about "for image_file in os.listdir(image_folder):"

I used it in combination with a YOLO11 fish detection model to batch process video frames/subjects.

after_00002_depth_overlay

hello,I would like to ask you that how should I train my own datasets?

adasddasasd commented 2 weeks ago

If helpful, here are a few experiments I did with python notebook that shows how to batch generate depth maps:

edit: see section about "for image_file in os.listdir(image_folder):"

I used it in combination with a YOLO11 fish detection model to batch process video frames/subjects.

after_00002_depth_overlay

I think the result is not really good. ![Uploading 5109575f6f873f2a5ee79eca1b61090.png…]()

adasddasasd commented 2 weeks ago

or what should I do to improve the quality? @MichaelAkridge-NOAA ,thanks

MichaelAkridge-NOAA commented 2 weeks ago

@adasddasasd

Cheers!