[mob] Fix tensor size for clip image

This commit is contained in:
Neeraj Gupta
2024-08-20 12:54:26 +05:30
parent 692589e4c4
commit 3a0d6e808b

View File

@@ -178,7 +178,8 @@ class OnnxDartPlugin: FlutterPlugin, MethodCallHandler {
inputTensorShape = longArrayOf(totalSize, 112, 112, 3)
}
ModelType.ClipImageEncoder -> {
inputTensorShape = longArrayOf(1, 3, 224, 224)
inputTensorShape = longArrayOf(1, 3, 256, 256)
// inputTensorShape = longArrayOf(1, 3, 256, 256)
}
ModelType.ClipTextEncoder -> {
inputTensorShape = longArrayOf(1, 77)