Remove redundant import and global in SileroOnnxModel

This commit is contained in:
Mark Backman
2025-06-29 09:58:00 -04:00
parent 324546b4e7
commit 0cdcfcee8d

View File

@@ -46,10 +46,6 @@ class SileroOnnxModel:
path: Path to the ONNX model file.
force_onnx_cpu: Whether to force CPU execution provider.
"""
import numpy as np
global np
opts = onnxruntime.SessionOptions()
opts.inter_op_num_threads = 1
opts.intra_op_num_threads = 1