nick8967
Posts: 158
Joined: Fri Mar 25, 2016 11:02 pm

8GB RAM speed up Convolutional Neural Network?

Sat Jul 18, 2020 9:26 am

I have built a CNN on tensorflow and I run it on Rpi 4B 4GB. My question is if the validation on 4GB Rpi takes x minutes, can a 8GB RAM Rpi reduce that in y minutes (y<<x) ? Does anyone has an idea? experience on that?

RGJ-PI
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 136
Joined: Fri May 24, 2019 2:10 pm
Location: Cambridge UK

Re: 8GB RAM speed up Convolutional Neural Network?

Sat Jul 18, 2020 10:01 am

I've re titled thread to more clearly describe question

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: 8GB RAM speed up Convolutional Neural Network?

Sat Jul 18, 2020 10:03 am

RGJ-PI wrote:
Sat Jul 18, 2020 10:01 am
I've re titled thread to more clearly describe question
Good idea because I thought it was Trump's least favourite TV station.

https://www.tensorflow.org/lite/perform ... timization
Last edited by DougieLawson on Sat Jul 18, 2020 10:05 am, edited 1 time in total.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Rpi 4 8GB RAM

Sat Jul 18, 2020 10:04 am

nick8967 wrote:
Sat Jul 18, 2020 9:26 am
I have built a CNN on tensorflow and I run it on Rpi 4B 4GB. My question is if the validation on 4GB Rpi takes x minutes, can a 8GB RAM Rpi reduce that in y minutes (y<<x) ? Does anyone has an idea? experience on that?


{Disclaimer: no experience.}

Since it is unlikely that anyone will have built and run your particular implementation of a Neural Network, it seems that ideas are all we have to contribute.


My idea is simply to question what resource is constraining the performance of your application? In broad categories: processing power; i/o throughput; memory (RAM)?.

Only if your code is memory-limited, and perhaps swapping heavily, will a hardware upgrade help. AIUI there is no difference in processing power or i/o capability between members of the RPi4B product range.

Return to “Advanced users”