Spaces:
Running
Running
rashid996958
commited on
Commit
·
4162d5c
1
Parent(s):
359aac9
output folder added
Browse files- app.py +4 -1
- input/original.png +0 -0
- input/ref.png +0 -0
- output/scaled_2x.png +0 -0
app.py
CHANGED
@@ -64,6 +64,8 @@ def makeupTransfer(arr1,arr2):
|
|
64 |
makeup = "input/ref.png"
|
65 |
inference(no_makeup, makeup)
|
66 |
return cv2.cvtColor(cv2.imread("output/scaled_2x.png"), cv2.COLOR_BGR2RGB)
|
|
|
|
|
67 |
examples = [['faces/no_makeup/xfsy_0226.png', 'faces/makeup/XMY-136.png'],
|
68 |
['faces/no_makeup/XYUH-006.png', 'faces/makeup/XMY-266.png'],
|
69 |
['faces/no_makeup/vSYYZ306.png', 'faces/makeup/vRX916.png'],
|
@@ -79,7 +81,8 @@ app = gr.Interface(fn=makeupTransfer,
|
|
79 |
gr.Image(label="Makeup Image",type='numpy')],
|
80 |
outputs=gr.Image(label="Makeup Transfer Image",type='numpy'),
|
81 |
title="MakeUp Transfer APP",
|
82 |
-
examples=examples
|
|
|
83 |
)
|
84 |
|
85 |
app.launch()
|
|
|
64 |
makeup = "input/ref.png"
|
65 |
inference(no_makeup, makeup)
|
66 |
return cv2.cvtColor(cv2.imread("output/scaled_2x.png"), cv2.COLOR_BGR2RGB)
|
67 |
+
|
68 |
+
|
69 |
examples = [['faces/no_makeup/xfsy_0226.png', 'faces/makeup/XMY-136.png'],
|
70 |
['faces/no_makeup/XYUH-006.png', 'faces/makeup/XMY-266.png'],
|
71 |
['faces/no_makeup/vSYYZ306.png', 'faces/makeup/vRX916.png'],
|
|
|
81 |
gr.Image(label="Makeup Image",type='numpy')],
|
82 |
outputs=gr.Image(label="Makeup Transfer Image",type='numpy'),
|
83 |
title="MakeUp Transfer APP",
|
84 |
+
examples=examples,
|
85 |
+
cache_examples=True
|
86 |
)
|
87 |
|
88 |
app.launch()
|
input/original.png
CHANGED
input/ref.png
CHANGED
output/scaled_2x.png
ADDED