oedevs commited on
Commit
7769fcc
·
verified ·
1 Parent(s): 4a0af1b

Add controlled grayscale emboss height map workflow

Browse files
Files changed (1) hide show
  1. app.py +12 -2
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(label="True grayscale height map", interactive=False)
1625
- hillshade_output = gr.Image(label="Embossed surface preview", interactive=False)
 
 
 
 
 
 
 
 
 
 
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]