ketanmore commited on
Commit
56b5168
1 Parent(s): eeb8df1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -5
README.md CHANGED
@@ -19,22 +19,22 @@ git checkout f7c6c04
19
 
20
  ### Install Dependencies
21
 
22
- The author has not provided requirements.txt file, but `environment.yml` from our conda environment has been uploaded, This file can be used to recreate environment for Suryolo model.
23
 
24
 
25
  ### Suryolo Pipeline
26
 
27
- Download `surya_yolo_pipeline_copy.cpython-310-x86_64-linux-gnu.so` , `yolov10x_best.pt` and `surya folder` from the Repository.
28
- Place `surya_yolo_pipeline_copy.cpython-310-x86_64-linux-gnu.so`, `yolov10x_best.pt` and `surya folder` in same directory (They are dependent on each other).
29
 
30
  ```python
31
- from surya_yolo_pipeline_copy import suryolo # This import will originate from surya_yolo_pipeline_copy.cpython-310-x86_64-linux-gnu.so , which is present in the repo. Also this works with Linux based OS only.
32
  from surya.postprocessing.heatmap import draw_bboxes_on_image
33
  from PIL import Image
34
 
35
  image_path = "sample.jpg"
36
  image = Image.open(image_path)
37
- bboxes = suryolo(image_path)
38
  plotted_image = draw_bboxes_on_image(bboxes,image)
39
  ```
40
  #### Refer to `benchmark.ipynb` for comparison between Traditional Surya Layout Model and Suryolo Layout Model.
 
19
 
20
  ### Install Dependencies
21
 
22
+ The author has not provided requirements.txt file, but `environment.yml` from our conda environment has been uploaded, This file can be used to recreate environment for arabic_layout_model model.
23
 
24
 
25
  ### Suryolo Pipeline
26
 
27
+ Download `ArabicDoc.cpython-310-x86_64-linux-gnu.so` , `10x_best.pt` and `surya folder` from the Repository.
28
+ Place `ArabicDoc.cpython-310-x86_64-linux-gnu.so`, `10x_best.pt` and `surya folder` in same directory (They are dependent on each other).
29
 
30
  ```python
31
+ from ArabicDoc import arabic_layout_model # This import will originate from ArabicDoc.cpython-310-x86_64-linux-gnu.so , which is present in the repo. Also this works with Linux based OS only.
32
  from surya.postprocessing.heatmap import draw_bboxes_on_image
33
  from PIL import Image
34
 
35
  image_path = "sample.jpg"
36
  image = Image.open(image_path)
37
+ bboxes = arabic_layout_model(image_path)
38
  plotted_image = draw_bboxes_on_image(bboxes,image)
39
  ```
40
  #### Refer to `benchmark.ipynb` for comparison between Traditional Surya Layout Model and Suryolo Layout Model.