Enthernet Code
DIIDevHeads IoT Integration Server
•Created by Enthernet Code on 8/13/2024 in #code-review
How do I fix a tensor dimension mismatch in TinyML disease detection?
Hello guys am workin on Disease Detection from X-Ray Scans Using TinyML, i have gathered a diverse dataset of X-ray images from public medical databases, used images labeled with specific diseases or conditions, such as pneumonia, tuberculosis, or normal/healthy cases, i have also prepared my training script but keep getting an error while training the model
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "tensorflow/lite/python/interpreter.py", line 42, in set_tensor
self._interpreter.SetTensor(self._tensor_index_map[tensor_index], value)
ValueError: Cannot set tensor: Dimension mismatch. Got [1, 128, 128, 3], expected [1, 64, 64, 1]
here's my code
3 replies