fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
from onnx_modules.V220_OnnxInference import OnnxInferenceSession
|
from onnx_modules.V220_OnnxInference import OnnxInferenceSession
|
||||||
import numpy as np
|
import numpy as np
|
||||||
Session = OnnxInferenceSession(
|
Session = OnnxInferenceSession(
|
||||||
{
|
{
|
||||||
@@ -12,7 +12,7 @@ Session = OnnxInferenceSession(
|
|||||||
Providers = ["CPUExecutionProvider"]
|
Providers = ["CPUExecutionProvider"]
|
||||||
)
|
)
|
||||||
|
|
||||||
#这里的输入和原版是一样的,只需要在原版预处理结果出来之后加上.numpy()即可
|
#这里的输入和原版是一样的,只需要在原版预处理结果出来之后加上.numpy()即可
|
||||||
x = np.expand_dims(
|
x = np.expand_dims(
|
||||||
np.array(
|
np.array(
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user