We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47e07f0 commit 9c6b57fCopy full SHA for 9c6b57f
1 file changed
dumbdisplay_examples/mnist/mnist_app.py
@@ -117,7 +117,7 @@ def _handleInferenceBtnFeedback(self, *args):
117
self._drawPixelsTo(self.copy_layer)
118
self._resetPixels()
119
except Exception as e:
120
- self.dd.log(f"Error during inference: {e}", is_error=True)
+ self.dd.log(f"Error during inference: {type(e)}", is_error=True)
121
finally:
122
self.draw_layer.disabled(False)
123
@@ -227,6 +227,6 @@ def _pixelsToInferenceData(self) -> list[float]:
227
for y in range(0, 28):
228
for x in range(0, 28):
229
shade = self.pixels[x][y]
230
- data.append(shade / 255.0)
+ data.append(float(shade) / 255.0)
231
return data
232
0 commit comments