DeepBump CLI

March 17, 2025 · View on GitHub

Installation

  1. Download DeepBump as a ZIP and extract it.

  2. Install the required dependencies :

     pip install numpy onnxruntime==1.15.1 imageio
    

Usage

See python3 cli.py -h for a list of possible arguments. Some examples :

Color (albedo) → Normals :

    python3 cli.py color.jpg normals.jpg color_to_normals

    python3 cli.py color.png normals.png color_to_normals --color_to_normals-overlap MEDIUM

Normals → Height (displacement) :

    python3 cli.py normals.png height.png normals_to_height

    python3 cli.py normals.png height.png normals_to_height --normals_to_height-seamless TRUE

Normals → Curvature :

    python3 cli.py normals.png curvature.png normals_to_curvature

    python3 cli.py normals.png curvature.png normals_to_curvature --normals_to_curvature-blur_radius SMALLEST

Low resolution → High resolution :

    python3 cli.py lowres.png highres.png lowres_to_highres

    python3 cli.py lowres.png highres.png lowres_to_highres --lowres_to_highres-scale_factor x2

Add --verbose to print progress.