Update pictureDeal2.py
Browse files- pictureDeal2.py +11 -9
pictureDeal2.py
CHANGED
|
@@ -19,20 +19,20 @@ with gr.Blocks() as interface:
|
|
| 19 |
|
| 20 |
with gr.Accordion("提供4种勾边效果,均可下载本地"):
|
| 21 |
with gr.Row():
|
| 22 |
-
closed_output0 = gr.Image(label='
|
| 23 |
-
img_param_output0 = gr.Image(label='极简勾边')
|
| 24 |
|
| 25 |
with gr.Row():
|
| 26 |
-
closed_output1 = gr.Image(label='
|
| 27 |
-
img_param_output1 = gr.Image(label='简单勾边')
|
| 28 |
|
| 29 |
with gr.Row():
|
| 30 |
-
closed_output2 = gr.Image(label='
|
| 31 |
-
img_param_output2 = gr.Image(label='细致勾边')
|
| 32 |
|
| 33 |
with gr.Row():
|
| 34 |
closed_output3 = gr.Image(label='彩色勾边')
|
| 35 |
-
img_param_output3 = gr.Image(label='图片+勾边合成图')
|
| 36 |
|
| 37 |
|
| 38 |
# 调整模型结果参数
|
|
@@ -159,9 +159,11 @@ with gr.Blocks() as interface:
|
|
| 159 |
img3 = enhancer3.enhance(enhance).convert('RGB')
|
| 160 |
union_img3 = np.asarray(Image.blend(close03, img3, blend))
|
| 161 |
|
| 162 |
-
return result0,union_img0,result1,union_img1,result2,union_img2,result3,union_img3
|
|
|
|
| 163 |
|
| 164 |
section_btn.click(turn_arguments,inputs=[img_input,enhance,blend,color],
|
| 165 |
-
|
|
|
|
| 166 |
|
| 167 |
interface.launch(show_api=False)
|
|
|
|
| 19 |
|
| 20 |
with gr.Accordion("提供4种勾边效果,均可下载本地"):
|
| 21 |
with gr.Row():
|
| 22 |
+
closed_output0 = gr.Image(label='简单勾边')
|
| 23 |
+
# img_param_output0 = gr.Image(label='极简勾边')
|
| 24 |
|
| 25 |
with gr.Row():
|
| 26 |
+
closed_output1 = gr.Image(label='常规勾边')
|
| 27 |
+
# img_param_output1 = gr.Image(label='简单勾边')
|
| 28 |
|
| 29 |
with gr.Row():
|
| 30 |
+
closed_output2 = gr.Image(label='细致勾边')
|
| 31 |
+
# img_param_output2 = gr.Image(label='细致勾边')
|
| 32 |
|
| 33 |
with gr.Row():
|
| 34 |
closed_output3 = gr.Image(label='彩色勾边')
|
| 35 |
+
# img_param_output3 = gr.Image(label='图片+勾边合成图')
|
| 36 |
|
| 37 |
|
| 38 |
# 调整模型结果参数
|
|
|
|
| 159 |
img3 = enhancer3.enhance(enhance).convert('RGB')
|
| 160 |
union_img3 = np.asarray(Image.blend(close03, img3, blend))
|
| 161 |
|
| 162 |
+
# return result0,union_img0,result1,union_img1,result2,union_img2,result3,union_img3
|
| 163 |
+
return result0,result1,result2,result3
|
| 164 |
|
| 165 |
section_btn.click(turn_arguments,inputs=[img_input,enhance,blend,color],
|
| 166 |
+
outputs = [closed_output0,closed_output1,closed_output2,closed_output3])
|
| 167 |
+
# outputs = [closed_output0,img_param_output0,closed_output1,img_param_output1,closed_output2,img_param_output2,closed_output3,img_param_output3])
|
| 168 |
|
| 169 |
interface.launch(show_api=False)
|