Hi, if the same model architecture is used both on the HL and on the Training computer, I would think the weight file generated on the comuter should be the same format and we could "import" it, don't you think?wangyf8797 wrote: ↑Tue Nov 10, 2020 2:28 amhi bro,sorry for my late.The saved kmodel only contains the weights, and what i learned so far is that the files mentioned in the articles(.tflite .kmodel) are not suppported.
I will contact you if there are new answers,and i am also curious about that.
#include "HUSKYLENS.h"
HUSKYLENS huskylens;
void setup()
{
Serial.begin(115200);
pinMode(A0,INPUT_PULLUP);
Wire.begin();
while (!huskylens.begin(Wire))
{
Serial.println(F("Begin failed!"));
delay(100);
}
}
void loop()
{
if(digitalRead(A0) == 0)
{
while (!huskylens.writeLearn(1)) // bool writeLearn(int ID)
{
Serial.println(F("learn object ID1 failed!"));
delay(100);
}
Serial.println(F("learn object ID1 success"));
}
}
#include "HUSKYLENS.h"
HUSKYLENS huskylens;
void setup()
{
Serial.begin(115200);
pinMode(A0,INPUT_PULLUP);
Wire.begin();
while (!huskylens.begin(Wire))
{
Serial.println(F("Begin failed!"));
delay(100);
}
}
void loop()
{
if(digitalRead(A0) == 0)
{
while (!huskylens.writeLearn(1)) // bool writeLearn(int ID)
{
Serial.println(F("learn object ID1 failed!"));
delay(100);
}
Serial.println(F("learn object ID1 success"));
}
}
Very interesting. Now if you could train a pretrained model (using transfer learning) on the computer (using lots of images), and generate the corresponding kmodel with the trained weights, that would be very cool. I wonder if the saved kmodel is only the weights or the whole model (network architecture + weights).wangyf8797 wrote: ↑Mon Oct 19, 2020 9:50 amtwo tips:
1. The SD card needs to be formatted as FAT32
2. When importing models, only models with the same algorithm are supported, and models with different algorithms cannot be imported.