Skip to content

Textured Mesh Generator from RGB image & its correponding depth map generated by diffusion

Notifications You must be signed in to change notification settings

hwanhuh/depth2mesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Depth Map to Textured Mesh Generator

visualization

This project contains a 'Textured Mesh Generator from Depth Map' where the depth map is generated by Marigold depth generation or DepthAnything. It takes an input image and a corresponding depth map, which Marigold/DepthAnything generates.

Features

  • Image Input: Accepts standard image formats like JPG, JPEG, and PNG.

  • Depth Map: npy file generated by MARIGOLD DIFFUSION / DepthAnything (or GT depth map converted to numpy array is OK).

    • You can use huggingface demo of the marigold here
    • You can use huggingface demo of the depthanything here
  • Textured Mesh Output: Produces a textured mesh that combines the visual information from the image with the structural details from the depth map.

Usage

Run the processing script to generate the textured mesh.

    python depth_to_textured_mesh.py --depth <path to depth map npy file> --image <path to input image file>

Acknowledgements

You can also read my blog post for the project: Post Link

About

Textured Mesh Generator from RGB image & its correponding depth map generated by diffusion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages