Cyril666 commited on
Commit
8e8a354
·
1 Parent(s): 675da53

First model version

Browse files
Files changed (1) hide show
  1. app.py +8 -8
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 16qgtD4UOhp0q5e2RYXE1dvuTz_ylZMyb')
4
  #os.system('unzip model_ctw.zip')
5
- os.system('gdown -O ./workdir.zip 1mYM_26qHUom_5NU7iutHneB_KHlLjL5y')
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
- description = gr.Markdown('''## Step 1 (Preprocess Input Image)
62
- - Drop an image containing a near-frontal face to the **Input Image**.
63
- - If there are multiple faces in the image, hit the Edit button in the upper right corner and crop the input image beforehand.
64
- - Hit the **Detect & Align Face** button.
65
- - Hit the **Reconstruct Face** button.
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()