Become a leader in the IoT community!
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Hello, i am trying to run Tflite model on esp32, but am getting wrong output, am doing temperature and humidity prediction. Am new to this can you help me
For example i expect temperature values between 20-30Β°C, but I’m getting negative numbers or very large values.
Can i ask , how did you train your model and how are you running it on the esp32
So collect data of humidity and temperature with dht11 and train it with Tansorflow and convert it to tflite and am using tflite micro
Hi @jas_mine0024 , how are you getting the output and what is supposed to be!
Did you quantize your model?
So for running model on microcontroller it have to be in int8 format ( 8-bit integer) quantize format that because microcontroller have limited memory and processing power
What’s that, sorry am new to this!
Ow yes i was looking, i think i skipped this partπ it’s show that my model is float32, i will convert it
Try this collab code for the quantization
Also you have to to normalize and quantize your input data
I appreciate it @wafa_ath
I’ve done that
Am still getting wrong output
I didn’t normalize and quantize my input data yet
Not sure how to do that
You have to bring your mean and standard deviation first
Mean and standard deviation…
I have two input data one for temperature and one for humidity should i apply on both of them
Then apply this formula
For normalizing
float temp_scaled = (temp – mean) / std_dev
Then for Quantize
int8_t q = (int8_t) round(temp_scaled / 0.01795339770615101) – 12
Yes for both
You can use the data that you used for the training to extract this info
Mean= total data/member of the total data
St dv =β(data -mean)^2/member of total data
Ow okay okay i get it , i will try that
Finally am getting it right, that’s amazing thank you so much @wafa_ath
What do you think, did try to use it and compare it to other AI?
With the hype that Deepseek is making and with the new updates V3
But Why does it make that hype !
First it’s used cost effective method comparing to other model like open ai .
Instead of relying on expensive human feedback for fine-tuning, DeepSeek uses automated reinforcement learning, which significantly reduces costs and speeds up training. Also it optimized its own hardware by bypassing Nvidiaβs software limitations,
By combining efficient training methods with smart hardware optimization it reduces the production cost
Yes i tried it but the server is always busy, i know that faced open AI from the beginning too and it will be fixed with time, but what i don’t understand that why openAI didn’t used automated reinforcement learning to reduce the cost too or there is a catch !
The thing here is it better in solving mathematical problem but for openAI it’s trained to deal and handle human conversation
CONTRIBUTE TO THIS THREAD