SSDMobileNet How Can I set num_coords.
ERR:Cannot copy between a TensorFlowLite tensor with shape [1, 896, 16] and a Java object with shape [1, 896, 4].
Check that the model you using is the correct one. I ran into an error like this and turns out I was using a non SSD mobilenet model. The SSD function was bombing out because of that.
SSDMobileNet How Can I set num_coords. ERR:Cannot copy between a TensorFlowLite tensor with shape [1, 896, 16] and a Java object with shape [1, 896, 4].
bytesList: img.planes.map((plane) { return plane.bytes; }).toList(), model: widget.model == yolo ? "YOLO" : "SSDMobileNet", imageHeight: img.height, imageWidth: img.width, imageMean: widget.model == yolo ? 0 : 127.5, imageStd: widget.model == yolo ? 255.0 : 127.5, numResultsPerClass: 1, threshold: widget.model == yolo ? 0.2 : 0.4,