mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 16:48:03 +08:00
Fix classification and move segmentation
This commit is contained in:
@@ -19,7 +19,8 @@ from . import c_lib_wrap as C
|
||||
class Runtime:
|
||||
def __init__(self, runtime_option):
|
||||
self._runtime = C.Runtime()
|
||||
assert self._runtime.init(runtime_option), "Initialize Runtime Failed!"
|
||||
assert self._runtime.init(
|
||||
runtime_option._option), "Initialize Runtime Failed!"
|
||||
|
||||
def infer(self, data):
|
||||
assert isinstance(data, dict), "The input data should be type of dict."
|
||||
|
Reference in New Issue
Block a user