Mindket

Image To Relief

Newversion 1 · updated

Overview

Turns an uploaded picture into a 3D relief STL file by estimating depth, and lets you reshape the depth map with a curve editor before you export. Suits makers who want a height model from a photo.

Image To Relief is a kit in the Productivity category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Docker for the container route, or Python with pip for the plain route
  • pip, to fetch the Hugging Face command line tool
Runs in
  • Web browser: the Space's page on Hugging Face, with nothing to install
  • Windows, macOS or Linux with Docker: a local copy built from the Dockerfile
  • Python on your own computer: run app.py after installing the requirements
Start with
pip install -U huggingface_hub
hf download oedevs/image-to-relief-grayscale --repo-type space --local-dir image-to-relief-grayscale
cd image-to-relief-grayscale

Platform

DockerContainer
WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

Image To Relief turns a picture you upload into an STL file of a relief. It asks the Depth Anything V2 model to estimate depth, then gives you a curve editor and texture controls so you can adjust the depth map before anything is exported.

Who it suits

It suits anyone who wants a height-based 3D model from a flat image and wants a say in how the depth looks.

Who might use this app
IndustryWho uses itHow they use itExample
3D printingMakers and hobbyistsTurn a photo into a model file that has heightUpload a photo and export an STL
DesignDesignersReshape depth so the subject stands out from the backgroundApply the foreground emphasis preset
Computer visionDevelopersSee how a depth estimate becomes a height mapEdit the curve and watch the previewed height map change
Local tinkeringAnyone with a spare computerRaise the pixel limit for larger imagesStart the app with a higher limit

If you need to edit a mesh by hand or sculpt freely, you can skip it.

Where to use it

You can use it in a browser, in Docker, or with plain Python.

  • Web browser: the Space's page on Hugging Face, with nothing to install
  • Windows, macOS or Linux with Docker: a local copy built from the Dockerfile
  • Python on your own computer: run app.py after installing the requirements
What the app is good for
Use caseWhoWhat they get back
Make a relief from a photoMakersAn STL file built from the adjusted depth
Fix a flat or harsh depth estimateDesignersA reshaped depth map with the curve and presets
Work on bigger imagesLocal usersA higher processing limit than the hosted Space allows

How to set it up

Pick one of two routes. The hosted Space needs nothing. For a local copy you need the items below.

  • Docker for the container route, or Python with pip for the plain route
  • pip, to fetch the Hugging Face command line tool
  1. Install the huggingface_hub package.
  2. Download the Space's files into a folder.
  3. Move into that folder.
  4. Build the Docker image.
  5. Run the container and publish port 7860, then open that port in your browser.
pip install -U huggingface_hub
hf download oedevs/image-to-relief-grayscale --repo-type space --local-dir image-to-relief-grayscale
cd image-to-relief-grayscale
docker build -t image-to-relief-grayscale .
docker run -it -p 7860:7860 image-to-relief-grayscale

Without Docker, install the requirements and start the app directly.

pip install -r requirements.txt
python app.py

How to use it

Work through the page from top to bottom.

  1. Add your picture, then press Estimate Depth Map.
  2. Reshape the depth values in the histogram and curves editor.
  3. Change the texture strength and smoothing settings and watch the height map preview react.
  4. Check the previewed height map, set the STL dimensions and click Generate STL from Adjusted Depth.
The controls you will use
ToolWhat it does
Estimate Depth MapRuns the depth model on the image you uploaded
Depth histogram + curves editorRemaps depth values when you drag, add or remove curve points
Curve presetsApply midtone contrast, foreground emphasis or background compression
Luminance Texture StrengthAdds surface texture taken from the image's brightness
Generate STL from Adjusted DepthBuilds the STL file from the depth map you tuned

To raise the processing limit on your own computer, pass a flag when you launch.

python app.py --max-resolution-pixels 4000000

Example

You upload a photo, click Estimate Depth Map, then drag a point on the curve so the main subject sits higher than the background. After you click Generate STL from Adjusted Depth, you get an STL file of that relief.

For newcomers and experts

If you are new to this, open the Space, upload any image and click Estimate Depth Map. Look at the result before you touch the curve, then try one preset.

If you work with depth models, the app uses Depth Anything V2 Large for the estimate and lets you remap its values by hand. The texture is scaled to the current height range, so a larger Max Z-Height does not make the surface texture twice as deep. HEIC and HEIF uploads are decoded on the server with pillow-heif.

  1. Upload an image
  2. Estimate the depth map
  3. Reshape the curve and texture
  4. Preview the height map
  5. Generate the STL file

Good to know

The hosted Space has a cap you cannot change, and a local copy can raise it.

  • Hosted limit: processing is capped at 1,500,000 pixels so shared users cannot overload the Space
  • Local limit: raise it with the flag above, or with the DEFAULT_MAX_RESOLUTION and MAX_RESOLUTION_LIMIT environment variables
  • HEIC: if a browser cannot preview a HEIC file, the upload path should still work
  • Versions: the package versions in requirements.txt are not pinned yet
  • License: mit
  • Cost to run: none named
  • Data it reaches: the image you upload, which the app processes with the Depth Anything V2 Large model
  • Not for: raising the pixel cap on the hosted Space, because the web page does not offer that control

README and files

README

Image To Relief

Turns an uploaded picture into a 3D relief STL file by estimating depth, and lets you reshape the depth map with a curve editor before you export. Suits makers who want a height model from a photo.

Made by oedevs on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.

About

What it is: Image To Relief turns a picture you upload into an STL file of a relief. It asks the Depth Anything V2 model to estimate depth, then gives you a curve editor and texture controls so you can adjust the depth map before anything is exported.

Who it suits: It suits anyone who wants a height-based 3D model from a flat image and wants a say in how the depth looks.

Title: Who might use this app
Industry | Who uses it | How they use it | Example
3D printing | Makers and hobbyists | Turn a photo into a model file that has height | Upload a photo and export an STL
Design | Designers | Reshape depth so the subject stands out from the background | Apply the foreground emphasis preset
Computer vision | Developers | See how a depth estimate becomes a height map | Edit the curve and watch the previewed height map change
Local tinkering | Anyone with a spare computer | Raise the pixel limit for larger images | Start the app with a higher limit

If you need to edit a mesh by hand or sculpt freely, you can skip it.

Where to use it: You can use it in a browser, in Docker, or with plain Python.

  • Web browser: the Space's page on Hugging Face, with nothing to install
  • Windows, macOS or Linux with Docker: a local copy built from the Dockerfile
  • Python on your own computer: run app.py after installing the requirements
Title: What the app is good for
Use case | Who | What they get back
Make a relief from a photo | Makers | An STL file built from the adjusted depth
Fix a flat or harsh depth estimate | Designers | A reshaped depth map with the curve and presets
Work on bigger images | Local users | A higher processing limit than the hosted Space allows

How to set it up: Pick one of two routes. The hosted Space needs nothing. For a local copy you need the items below.

  • Docker for the container route, or Python with pip for the plain route
  • pip, to fetch the Hugging Face command line tool
  1. Install the huggingface_hub package.
  2. Download the Space's files into a folder.
  3. Move into that folder.
  4. Build the Docker image.
  5. Run the container and publish port 7860, then open that port in your browser.
pip install -U huggingface_hub
hf download oedevs/image-to-relief-grayscale --repo-type space --local-dir image-to-relief-grayscale
cd image-to-relief-grayscale
docker build -t image-to-relief-grayscale .
docker run -it -p 7860:7860 image-to-relief-grayscale

Without Docker, install the requirements and start the app directly.

pip install -r requirements.txt
python app.py

How to use it: Work through the page from top to bottom.

  1. Add your picture, then press Estimate Depth Map.
  2. Reshape the depth values in the histogram and curves editor.
  3. Change the texture strength and smoothing settings and watch the height map preview react.
  4. Check the previewed height map, set the STL dimensions and click Generate STL from Adjusted Depth.
Title: The controls you will use
Tool | What it does
Estimate Depth Map | Runs the depth model on the image you uploaded
Depth histogram + curves editor | Remaps depth values when you drag, add or remove curve points
Curve presets | Apply midtone contrast, foreground emphasis or background compression
Luminance Texture Strength | Adds surface texture taken from the image's brightness
Generate STL from Adjusted Depth | Builds the STL file from the depth map you tuned

To raise the processing limit on your own computer, pass a flag when you launch.

python app.py --max-resolution-pixels 4000000

Example: You upload a photo, click Estimate Depth Map, then drag a point on the curve so the main subject sits higher than the background. After you click Generate STL from Adjusted Depth, you get an STL file of that relief.

For newcomers and experts: If you are new to this, open the Space, upload any image and click Estimate Depth Map. Look at the result before you touch the curve, then try one preset.

If you work with depth models, the app uses Depth Anything V2 Large for the estimate and lets you remap its values by hand. The texture is scaled to the current height range, so a larger Max Z-Height does not make the surface texture twice as deep. HEIC and HEIF uploads are decoded on the server with pillow-heif.

Upload an image
Estimate the depth map
Reshape the curve and texture
Preview the height map
Generate the STL file

Good to know: The hosted Space has a cap you cannot change, and a local copy can raise it.

  • Hosted limit: processing is capped at 1,500,000 pixels so shared users cannot overload the Space
  • Local limit: raise it with the flag above, or with the DEFAULT_MAX_RESOLUTION and MAX_RESOLUTION_LIMIT environment variables
  • HEIC: if a browser cannot preview a HEIC file, the upload path should still work
  • Versions: the package versions in requirements.txt are not pinned yet
  • License: mit
  • Cost to run: none named
  • Data it reaches: the image you upload, which the app processes with the Depth Anything V2 Large model
  • Not for: raising the pixel cap on the hosted Space, because the web page does not offer that control

On Hugging Face, 13 November 2026

  • Likes: 3
  • Built with: docker
  • License: mit

Links

Try it

Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.

Files
README.md  6 KB

1 file, 6 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face Spaces in the same category that share the most tags with this one.

ProductLikesBuilt withLicenseLast change
Image To Relief This page3dockermit
AI JukeboxShares docker426dockermit
AUDIOShares docker25dockerapache-2.0
Swap Face ModelShares docker21dockermit
Xiaomi OCR 0 DemoShares docker18dockerapache-2.0
Hermes Agent by Mega-EvolutionsShares docker3dockermit
Numbers as Mindket last read them, on 2026-11-12.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New

Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…

New

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Similar in Productivity

See all in Productivity

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Frontend Slides

zarazhangrui · Skill

Builds HTML presentations from scratch or from a PowerPoint file and shows visual style previews to pick from, for people who want web slides with no CSS or Ja…

New32.3k

IPTV

iptv-org · Kit

Collects publicly available live TV channels from many countries into playlists that any video player with live streaming can open. Made for viewers and for de…

New144k