Skip to main content

A vision library for performing sliced inference on large images/small objects

Project description

切片推理

此代码 Fork obss/sahi, 添加如下功能

  • 添加rknn支持
detection_model = AutoDetectionModel.from_pretrained(
    model_type='yolov8rknn',
    model_path=yolov8_onnx_model_path,
    confidence_threshold=0.3,
    category_mapping=category_mapping,
    device="cpu", # or 'cuda:0'
)
  • 添加yolov10 导出 onnx 支持
detection_model = AutoDetectionModel.from_pretrained(
    model_type='yolov10onnx',
    model_path=yolov8_onnx_model_path,
    confidence_threshold=0.3,
    category_mapping=category_mapping,
)
  • 添加参数 EP_LIST, 使用onnx推理时直接传递
detection_model = AutoDetectionModel.from_pretrained(
    model_type='yolov10onnx',
    model_path=yolov8_onnx_model_path,
    confidence_threshold=0.3,
    category_mapping=category_mapping,
    ep_list=['CUDAExecutionProvider', 'CPUExecutionProvider']
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sahi_fei-0.11.19.tar.gz (108.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sahi_fei-0.11.19-py3-none-any.whl (120.8 kB view details)

Uploaded Python 3

File details

Details for the file sahi_fei-0.11.19.tar.gz.

File metadata

  • Download URL: sahi_fei-0.11.19.tar.gz
  • Upload date:
  • Size: 108.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.18

File hashes

Hashes for sahi_fei-0.11.19.tar.gz
Algorithm Hash digest
SHA256 bc843efcac03423381a9d219958f1293fe323b6611392f46e78bc02d72ae7599
MD5 42cefd5580444aa8059d91e648a5e151
BLAKE2b-256 e81c7bd522184e3f64b8d312fdca0a0be55e9793031a7a2b4e594a1eb6ed30db

See more details on using hashes here.

File details

Details for the file sahi_fei-0.11.19-py3-none-any.whl.

File metadata

  • Download URL: sahi_fei-0.11.19-py3-none-any.whl
  • Upload date:
  • Size: 120.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.18

File hashes

Hashes for sahi_fei-0.11.19-py3-none-any.whl
Algorithm Hash digest
SHA256 908682d3e1a3370805b1cec00c0e5c376dd33d8d33ea432c6a4fd261fccd579c
MD5 9654995a271108a9e81c5b2b345f8188
BLAKE2b-256 752a203f32fec90f7e7291e0e32b15f0ff8786d997e96253b224e0e83393892d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page