teachablemachine-community icon indicating copy to clipboard operation
teachablemachine-community copied to clipboard

[BUG]: TMProcessingSketch.zip / TM_Connector.pde / move some code in settings()

Open beepmaster opened this issue 3 years ago • 0 comments

Describe the bug The TMProcessingSketch.zip file downloaded from the "Teacheable Machine" interface (Image/tensorflowlite micro.) run only with with Processing 3.5.4 and got an error : code should be updated as shown by processing.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'teacheable machine interface'
  2. Select tiny model (for tensorflow lite)
  3. Download the file, install the librairies needed (p5 & websocks)
  4. See error

Relevant Links Link to code to reproduce bug

Expected behavior Zip file should contains the updates as shown in processing log

public void settings() {
  size(448, 224);
}
IllegalStateException: size() cannot be used here, see https://processing.org/reference/size_.html

Screenshots

image

Error :

image

beepmaster avatar Jul 20 '22 11:07 beepmaster