updata inference demo
This commit is contained in:
+9
-1
@@ -11,7 +11,15 @@ parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--ip", type=str, default="localhost")
|
||||
parser.add_argument("--port", type=str, default="8000")
|
||||
parser.add_argument("--model_name", type=str, default="rednote-hilab/dots.ocr")
|
||||
parser.add_argument("--prompt_mode", type=str, default="prompt_layout_all_en")
|
||||
parser.add_argument("--prompt_mode", type=str, default="prompt_layout_all_en",help=(
|
||||
"Choose a task prompt: "
|
||||
"prompt_layout_all_en=full document layout+OCR to JSON/MD; "
|
||||
"prompt_layout_only_en=layout detection only; "
|
||||
"prompt_grounding_ocr=OCR within a given bbox; "
|
||||
"prompt_web_parsing=parse webpage screenshot layout into JSON; "
|
||||
"prompt_scene_spotting=detect+recognize scene text (OCR boxes+texts); "
|
||||
"prompt_image_to_svg=generate SVG code to reconstruct the image.")
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user