Spaces:
Runtime error
Runtime error
Commit
·
359aac9
1
Parent(s):
19e6501
tf version fix and example added
Browse files- app.py +9 -5
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -64,11 +64,15 @@ 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/
|
| 68 |
-
|
| 69 |
-
[
|
| 70 |
-
|
| 71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
app = gr.Interface(fn=makeupTransfer,
|
| 74 |
inputs=[gr.Image(label="Reference Image",type='numpy'),
|
|
|
|
| 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'],
|
| 70 |
+
['faces/no_makeup/xfsy_0405.png', 'faces/makeup/vFG137.png'],
|
| 71 |
+
['faces/no_makeup/xfsy_0055.png', 'faces/makeup/vFG756.png'],
|
| 72 |
+
['faces/no_makeup/xfsy_0521.png', 'faces/makeup/XMY-074.png'],
|
| 73 |
+
['faces/no_makeup/vSYYZ639.png', 'faces/makeup/vFG112.png'],
|
| 74 |
+
['faces/no_makeup/vSYYZ429.png', 'faces/makeup/XMY-014.png'],
|
| 75 |
+
['faces/no_makeup/xfsy_0068.png', 'faces/makeup/vFG56.png']]
|
| 76 |
|
| 77 |
app = gr.Interface(fn=makeupTransfer,
|
| 78 |
inputs=[gr.Image(label="Reference Image",type='numpy'),
|
requirements.txt
CHANGED
|
@@ -6,4 +6,4 @@ opencv_python_headless==4.9.0.80
|
|
| 6 |
tensorflow==2.10.0
|
| 7 |
super-image
|
| 8 |
gradio
|
| 9 |
-
protobuf==3.
|
|
|
|
| 6 |
tensorflow==2.10.0
|
| 7 |
super-image
|
| 8 |
gradio
|
| 9 |
+
protobuf==3.19.6
|