-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Optim code logic and update README
- Loading branch information
Showing
8 changed files
with
53 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
See [link](https://github.com/RapidAI/RapidStructure) for details. | ||
See [link](https://github.com/RapidAI/RapidLayout) for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
# -*- encoding: utf-8 -*- | ||
# @Author: SWHL | ||
# @Contact: [email protected] | ||
import yaml | ||
|
||
from .download_model import DownloadModel | ||
from .infer_engine import OrtInferSession | ||
from .load_image import LoadImage | ||
from .load_image import LoadImage, LoadImageError | ||
from .logger import get_logger | ||
from .post_prepross import PicoDetPostProcess, YOLOv8PostProcess | ||
from .post_prepross import PPPostProcess, YOLOv8PostProcess | ||
from .pre_procss import PPPreProcess, YOLOv8PreProcess | ||
from .vis_res import VisLayout | ||
|
||
|
||
def read_yaml(yaml_path): | ||
with open(yaml_path, "rb") as f: | ||
data = yaml.load(f, Loader=yaml.Loader) | ||
return data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
onnxruntime>=1.7.0 | ||
PyYAML>=6.0 | ||
opencv_python>=4.5.1.48 | ||
numpy>=1.21.6,<2 | ||
Pillow | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters