Spaces:
Sleeping
Sleeping
Add controlled grayscale emboss height map workflow
Browse files
app.py
CHANGED
|
@@ -1621,8 +1621,18 @@ with gr.Blocks(title="Test Embossed Effect") as demo:
|
|
| 1621 |
)
|
| 1622 |
|
| 1623 |
with gr.Row():
|
| 1624 |
-
height_map_output = gr.Image(
|
| 1625 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1626 |
|
| 1627 |
test_inputs = [input_image, version, texture_strength]
|
| 1628 |
test_outputs = [height_map_output, hillshade_output]
|
|
|
|
| 1621 |
)
|
| 1622 |
|
| 1623 |
with gr.Row():
|
| 1624 |
+
height_map_output = gr.Image(
|
| 1625 |
+
format="png",
|
| 1626 |
+
image_mode="L",
|
| 1627 |
+
label="True grayscale height map",
|
| 1628 |
+
interactive=False,
|
| 1629 |
+
)
|
| 1630 |
+
hillshade_output = gr.Image(
|
| 1631 |
+
format="png",
|
| 1632 |
+
image_mode="L",
|
| 1633 |
+
label="Embossed surface preview",
|
| 1634 |
+
interactive=False,
|
| 1635 |
+
)
|
| 1636 |
|
| 1637 |
test_inputs = [input_image, version, texture_strength]
|
| 1638 |
test_outputs = [height_map_output, hillshade_output]
|