Spaces:
Runtime error
Runtime error
First model version
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import os
|
2 |
os.system('pip install --upgrade --no-cache-dir gdown')
|
3 |
-
os.system('gdown -O ./model_ctw.pth
|
4 |
#os.system('unzip model_ctw.zip')
|
5 |
-
os.system('gdown -O ./workdir.zip
|
6 |
os.system('unzip workdir.zip')
|
7 |
os.system('pip install "git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI"')
|
8 |
os.system('python setup.py build develop --user')
|
@@ -58,13 +58,13 @@ output_image = gr.Image(label="out_img", type="filepath")
|
|
58 |
output_word = gr.Dataframe(label="out_word", headers=['word'])
|
59 |
|
60 |
with blocks:
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
- The final result will be based on this **Reconstructed Face**. So, if the reconstructed image is not satisfactory, you may want to change the input image.
|
67 |
''')
|
|
|
68 |
with gr.Row():
|
69 |
with gr.Column():
|
70 |
input_image.render()
|
|
|
1 |
import os
|
2 |
os.system('pip install --upgrade --no-cache-dir gdown')
|
3 |
+
os.system('gdown -O ./model_ctw.pth 1Ajslu_9WisuZ2nJGzE6qbD87aK6_ozzA')
|
4 |
#os.system('unzip model_ctw.zip')
|
5 |
+
os.system('gdown -O ./workdir.zip 10HxLehcJMY9rLd_OyH40HmrySZItuNDt')
|
6 |
os.system('unzip workdir.zip')
|
7 |
os.system('pip install "git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI"')
|
8 |
os.system('python setup.py build develop --user')
|
|
|
58 |
output_word = gr.Dataframe(label="out_word", headers=['word'])
|
59 |
|
60 |
with blocks:
|
61 |
+
gr.Markdown('''
|
62 |
+
<h1 id="title">张博强毕设展示</h1>
|
63 |
+
<center> 西北工业大学 航海学院本科 张博强 </center>
|
64 |
+
<center> 毕设题目:自然场景中任意形状文字的检测与识别 </center>
|
65 |
+
<center> 检测:基于<a href="https://github.com/wangyuxin87/ContourNet">ContourNet</a> 识别:基于<a href="https://github.com/FangShancheng/ABINet">ABINet</a> </center>
|
|
|
66 |
''')
|
67 |
+
|
68 |
with gr.Row():
|
69 |
with gr.Column():
|
70 |
input_image.render()
|