Spaces:
Build error
Build error
Sophie98
commited on
Commit
•
c06d8b9
1
Parent(s):
587b848
try to fix projection error
Browse files- StyleTransfer/styleTransfer.py +1 -1
- app.py +1 -0
- packages.txt +3 -0
StyleTransfer/styleTransfer.py
CHANGED
@@ -87,7 +87,7 @@ def StyleFAST(content_image:Image.Image, style_image:Image.Image) -> Image.Image
|
|
87 |
return Image.fromarray(np.uint8(stylized_image[0] * 255))
|
88 |
|
89 |
########################################### STYLE PROJECTION ##########################################
|
90 |
-
os.system("
|
91 |
stylepro_artistic = phub.Module(name="stylepro_artistic")
|
92 |
def StyleProjection(content_image:Image.Image,style_image:Image.Image) -> Image.Image:
|
93 |
print('line92')
|
|
|
87 |
return Image.fromarray(np.uint8(stylized_image[0] * 255))
|
88 |
|
89 |
########################################### STYLE PROJECTION ##########################################
|
90 |
+
os.system("hub install stylepro_artistic==1.0.1")
|
91 |
stylepro_artistic = phub.Module(name="stylepro_artistic")
|
92 |
def StyleProjection(content_image:Image.Image,style_image:Image.Image) -> Image.Image:
|
93 |
print('line92')
|
app.py
CHANGED
@@ -158,6 +158,7 @@ demo = gr.Interface(
|
|
158 |
and (optionally) choose one of the algorithms.\
|
159 |
\nOr just pick one of the examples below. ⬇",
|
160 |
theme="huggingface",
|
|
|
161 |
article="**References**\n\n"
|
162 |
"<a href='https://tianchi.aliyun.com/specials/promotion/alibaba-3d-future' \
|
163 |
target='_blank'>\
|
|
|
158 |
and (optionally) choose one of the algorithms.\
|
159 |
\nOr just pick one of the examples below. ⬇",
|
160 |
theme="huggingface",
|
161 |
+
enable_queue=True,
|
162 |
article="**References**\n\n"
|
163 |
"<a href='https://tianchi.aliyun.com/specials/promotion/alibaba-3d-future' \
|
164 |
target='_blank'>\
|
packages.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
ffmpeg
|
2 |
+
libsm6
|
3 |
+
libxext6
|