mirror of
https://github.com/opendatalab/MinerU.git
synced 2026-09-24 23:10:23 +08:00
update github workflow to Publish to PyPI
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
from ultralytics import YOLO
|
||||
|
||||
image_path = '' # 待预测图片路径
|
||||
model_path = '' # 权重路径
|
||||
model = YOLO(model_path)
|
||||
|
||||
result = model(image_path, save=True, conf=0.5, save_crop=False, line_width=2)
|
||||
print(result)
|
||||
Reference in New Issue
Block a user