Fix FastSAM canvas drawing bug (#4705)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
187b504d68
commit
2ba80e355a
3 changed files with 19 additions and 28 deletions
|
|
@ -263,7 +263,7 @@ class ProfileModels:
|
|||
data = clipped_data
|
||||
return data
|
||||
|
||||
def profile_tensorrt_model(self, engine_file: str, eps: float = 1e-7):
|
||||
def profile_tensorrt_model(self, engine_file: str, eps: float = 1e-3):
|
||||
if not self.trt or not Path(engine_file).is_file():
|
||||
return 0.0, 0.0
|
||||
|
||||
|
|
@ -291,7 +291,7 @@ class ProfileModels:
|
|||
run_times = self.iterative_sigma_clipping(np.array(run_times), sigma=2, max_iters=3) # sigma clipping
|
||||
return np.mean(run_times), np.std(run_times)
|
||||
|
||||
def profile_onnx_model(self, onnx_file: str, eps: float = 1e-7):
|
||||
def profile_onnx_model(self, onnx_file: str, eps: float = 1e-3):
|
||||
check_requirements('onnxruntime')
|
||||
import onnxruntime as ort
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue