balthou commited on
Commit
4a55925
·
1 Parent(s): bb8764b

Add markdown description

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -125,4 +125,8 @@ if __name__ == "__main__":
125
  choices=["gradio", "qt", "mpl"], default="gradio")
126
  args = parser.parse_args()
127
  img = Image.load_image("image_sample.jpg")
128
- interactive_pipeline(gui=args.backend)(image_editing_pipeline)(img)
 
 
 
 
 
125
  choices=["gradio", "qt", "mpl"], default="gradio")
126
  args = parser.parse_args()
127
  img = Image.load_image("image_sample.jpg")
128
+ markdown_description = r"# Tone mapping: S-curve" + "\n" \
129
+ r"$$\text{shadow boost} \in [-1, 1]$$ $$\text{highlight boost} \in [-1, 1]$$ $$\text{contrast} \in [-1, 1]$$ $$\text{exposure} \in [-1, 1]$$" + "\n" \
130
+ "If Tone curves are applied to RGB colors separately, you'll get serious color shifts. It is much better when tone curve is applied to the luminance channel." + "\n"
131
+ interactive_pipeline(gui=args.backend, markdown_description=markdown_description)(
132
+ image_editing_pipeline)(img)