Image Source: Pexels
We have already gone through and , one of the blogs. We don’t need to create a new architecture from scratch for our projects; instead, we can use existing Convolutional Neural Networks(CNN) popular architectures like LeNet-5, ResNet, VGG16, etc. models to check how it predicts. Today, we will use Convolutional Neural Networks(CNN) VGG16 architecture pre-trained model to predict “Sunflower,” and we will check how much accuracy shows. We can also compare and see with ResNet50. VGG16 developed by Oxford Visual Geometry Group and they won the ILSVRC challenge in 2016.
I am working on a few kinds of research on the Enterprise Resource Planning side and using Convolutional Neural Networks(CNN) Image Recognition and computer vision.
I have used Google Colab IDE for this example.
array([[[[203., 208., 214.], [203., 207., 218.], [203., 207., 219.], ..., [153., 141., 91.], [147., 137., 86.], [143., 136., 82.]], [[203., 208., 214.], [203., 207., 216.], [203., 207., 218.], ..., [154., 142., 94.], [152., 140., 90.], [147., 140., 86.]], [[203., 208., 214.], [203., 207., 216.], [203., 207., 216.], ..., [156., 144., 96.], [155., 143., 95.], [148., 138., 87.]], ..., [[ 38., 39., 31.], [ 41., 42., 34.], [ 45., 46., 38.], ..., [ 75., 83., 46.], [ 63., 71., 30.], [ 62., 70., 31.]], [[ 39., 40., 32.], [ 48., 49., 41.], [ 53., 54., 46.], ..., [ 77., 83., 47.], [ 69., 75., 41.], [ 55., 58., 37.]], [[ 51., 52., 46.], [ 56., 57., 49.], [ 58., 59., 51.], ..., [ 52., 57., 37.], [ 52., 57., 37.], [ 53., 57., 40.]]]], dtype=float32)
array([[3.05578737e-07, 4.26656479e-05, 2.26003564e-07, 2.30163678e-07, 8.09272706e-07, 4.42982673e-06, 5.13311943e-06, 5.18421984e-06, 2.78640618e-06, 1.12787745e-06, 6.81875417e-06, 8.82964159e-05, 8.58488420e-05, 3.54265321e-05, 1.27700495e-03, 3.72253562e-05, 6.28964044e-05, 5.11727354e-04, 3.98794291e-05, 2.37619970e-04, 8.58197382e-06, 6.49429421e-06, 3.92633820e-06, 3.72681757e-06, 7.70820552e-05, 2.04036382e-06, 8.60090859e-06, 7.88476791e-06, 2.73991782e-06, 9.53123072e-06, 3.31184992e-06, 8.39840868e-06, 7.82992447e-06, 1.82564872e-06, 3.09656343e-06, 5.46039519e-06, 3.94358758e-05, 2.23494226e-06, 1.03303764e-05, 3.10655219e-06, 7.71864052e-06, 1.90423657e-06, 1.15880794e-05, 2.88405699e-05, 1.06960601e-06, 2.36297979e-06, 2.66098778e-05, 2.12312934e-05, 3.34994468e-07, 7.19070556e-07, 1.00934267e-06, 5.09901020e-06, 6.36530103e-06, 7.41217036e-06, 8.44141596e-06, 2.55668529e-05, 1.92188395e-06, 2.36207620e-06, 1.15940375e-05, 8.30581394e-06, 5.51877338e-06, 3.57783819e-07, 2.66538137e-07, 7.68887446e-07, 1.99364263e-06, 7.29299745e-06, 2.52659197e-06, 1.92604375e-06, 1.89828563e-06, 4.48712035e-06, 2.38558627e-04, 8.04296542e-06, 3.52766765e-05, 1.37722207e-04, 1.06318831e-03, 1.83382490e-05, 6.56146367e-05, 1.87845275e-04, 1.74759582e-04, 1.72436776e-04, 2.22234630e-05, 7.75555600e-06, 7.11390567e-06, 2.26234852e-06, 5.90739837e-05, 4.27465748e-05, 1.84010605e-06, 1.13051210e-05, 3.59233527e-05, 1.08051776e-04, 3.45040666e-04, 2.68766621e-06, 5.15351940e-06, 4.17230103e-06, 7.16148701e-04, 5.38996483e-06, 4.62541720e-06, 8.79942149e-07, 2.80363736e-07, 1.11245390e-06, 1.22340191e-06, 7.70158931e-06, 2.14415581e-06, 1.74044044e-06, 8.52825167e-07, 4.01477882e-06, 1.16540048e-06, 3.78274213e-04, 1.78056061e-02, 5.25669020e-05, 8.40800567e-05, 3.83351071e-05, 7.94949767e-04, 1.98072917e-03, 2.90533964e-04, 6.17394107e-04, 1.81244643e-04, 2.96801409e-05, 1.14731836e-06, 2.03854815e-05, 2.58941805e-06, 1.94161453e-06, 5.45472460e-07, 1.86471630e-06, 7.11415714e-06, 2.25812604e-04, 2.47411546e-04, 2.86673298e-06, 1.00697753e-06, 1.35049459e-05, 2.23419443e-06, 1.16311703e-05, 4.41983611e-05, 5.10572306e-07, 6.16165289e-06, 3.34213792e-06, 5.93638470e-06, 2.02122715e-06, 1.36478252e-06, 2.66342613e-06, 5.59629143e-06, 1.88819104e-06, 6.20956200e-07, 2.30028627e-06, 1.03345985e-06, 2.57130750e-07, 5.41961015e-07, 3.41455404e-07, 1.38679036e-06, 1.01604854e-07, 5.26375345e-07, 3.58697762e-05, 6.94297159e-06, 5.47938107e-05, 6.64629551e-05, 3.42464118e-05, 3.98240954e-05, 4.18849777e-05, 6.85793566e-06, 2.53486519e-06, 5.56461509e-06, 2.01532675e-05, 9.84742019e-06, 3.55519774e-06, 4.46708282e-06, 7.68940197e-07, 8.26857729e-07, 1.33447509e-06, 7.39803909e-06, 7.07730692e-07, 6.73000704e-06, 7.19878517e-06, 1.38546193e-06, 1.41080045e-06, 3.22256437e-06, 3.39583084e-06, 1.09345160e-06, 4.13439557e-06, 1.42939971e-05, 8.06879416e-06, 1.20828076e-06, 3.56689384e-06, 1.58238836e-05, 8.60109776e-06, 8.14229134e-06, 9.38311787e-05, 2.35798998e-05, 1.10560155e-04, 5.82528537e-06, 7.23348285e-06, 3.00193619e-06, 2.53009657e-05, 2.42190254e-05, 2.58084001e-05, 2.32922207e-06, 1.14213663e-05, 5.57714520e-05, 6.01524607e-06, 5.53550944e-06, 1.15602088e-05, 4.95783388e-05, 1.24011467e-05, 9.92905643e-06, 2.16678491e-05, 1.67907856e-05, 1.66986301e-05, 1.88018203e-06, 1.32773503e-05, 1.53033852e-05, 6.46980538e-07, 7.37077471e-07, 5.27923021e-06, 2.85780447e-06, 1.57909908e-05, 8.82981385e-06, 9.86499799e-06, 7.49210813e-06, 1.29310874e-05, 1.63167242e-05, 5.71112469e-05, 5.81507220e-06, 6.50775428e-06, 5.67639154e-06, 6.35960096e-05, 1.06733623e-05, 4.14365559e-06, 4.09081395e-06, 6.60630440e-06, 4.82506857e-06, 6.32020101e-06, 6.48964196e-05, 3.01776508e-05, 2.11471888e-05, 1.41183482e-05, 1.82705535e-05, 3.14353406e-06, 8.19876732e-06, 2.91374290e-05, 1.40969023e-05, 9.17103443e-06, 3.04677560e-05, 4.51928236e-06, 9.05038632e-06, 1.85090380e-06, 1.21960484e-05, 7.16890054e-06, 2.26784164e-06, 2.79493588e-06, 3.93362416e-06, 1.83187931e-05, 9.35809112e-06, 5.52220627e-06, 2.31927988e-05, 2.00399427e-05, 2.81345929e-05, 9.08905804e-06, 1.68198276e-05, 3.36548510e-05, 3.41370760e-05, 5.61516536e-05, 7.52920751e-05, 2.36754622e-05, 1.17929803e-05, 1.05416320e-05, 9.39520214e-06, 1.50233507e-04, 9.06330752e-06, 2.65492945e-05, 2.96715780e-06, 4.05038281e-06, 4.86987346e-06, 8.03794319e-06, 6.39578093e-06, 2.38049529e-06, 1.23988809e-06, 2.30048136e-06, 8.49555477e-07, 2.96542680e-06, 5.08769745e-06, 2.91877695e-05, 9.22000436e-06, 2.06762161e-05, 9.36905224e-07, 7.12328474e-05, 6.63069659e-05, 6.49612821e-06, 2.90123899e-06, 7.30061345e-07, 4.99548889e-07, 2.09834911e-06, 1.34346340e-06, 9.98838118e-07, 1.04531091e-06, 1.40434099e-06, 8.07605466e-06, 1.02820977e-05, 3.38626160e-06, 6.25132361e-06, 1.11056079e-06, 1.27784970e-05, 7.60611947e-05, 1.07396138e-03, 1.26928047e-04, 1.03203383e-04, 8.42595415e-04, 1.09227294e-04, 2.22890703e-05, 8.29118580e-05, 6.01560751e-04, 1.83993708e-02, 1.30793424e-02, 1.61791351e-04, 4.84648335e-05, 7.57845337e-05, 7.14745147e-06, 3.77485158e-05, 1.35463251e-05, 1.88046288e-05, 1.68413768e-04, 3.57015932e-04, 2.41306348e-04, 6.97651994e-04, 1.10023364e-03, 3.01510590e-04, 4.04191110e-03, 2.79511733e-04, 7.71347142e-04, 3.89417313e-04, 3.36270370e-02, 1.85251884e-05, 1.52857083e-05, 7.00743612e-06, 8.63031619e-06, 4.00515528e-05, 7.55803831e-06, 3.37610459e-06, 2.20264337e-05, 5.99679106e-06, 6.83693142e-05, 1.28536578e-06, 2.57222632e-06, 5.79362222e-06, 2.01152579e-06, 1.58408625e-06, 1.06532116e-06, 6.46317267e-06, 5.48926346e-06, 3.64766197e-06, 1.22451593e-05, 1.04300225e-05, 3.86486545e-06, 1.57871568e-06, 2.21071900e-06, 5.90081072e-07, 1.11292832e-06, 4.85814644e-06, 4.93041807e-06, 2.99518160e-06, 8.80461357e-06, 3.36710445e-06, 4.53182196e-07, 6.16060697e-06, 3.83203223e-06, 5.02778630e-06, 1.22288861e-06, 1.29093387e-05, 1.42332065e-05, 4.03760941e-06, 1.33134617e-05, 5.48127582e-06, 5.23151175e-06, 1.64897142e-06, 1.12628932e-05, 7.14067937e-06, 1.29502718e-04, 2.78858579e-06, 1.71657314e-06, 1.00027619e-05, 7.98643487e-06, 1.33583180e-05, 1.44484566e-05, 4.31762555e-06, 5.89299680e-06, 4.76469040e-06, 9.52348910e-06, 1.21028816e-05, 4.99797898e-06, 3.43803958e-06, 5.85838370e-06, 3.59664398e-07, 4.19958866e-07, 1.01931924e-07, 1.42755709e-06, 6.27383706e-05, 1.75235286e-07, 2.48728185e-07, 1.46453667e-05, 1.63414697e-05, 2.63333422e-05, 2.07832272e-05, 1.82801559e-05, 4.07137886e-05, 5.05123035e-06, 3.71932924e-06, 1.67502833e-06, 4.37968556e-05, 2.17621890e-03, 1.15322780e-06, 3.28816299e-07, 1.27455639e-03, 2.55641244e-05, 2.32104539e-05, 5.77107130e-05, 3.77413869e-07, 2.68027041e-04, 5.83107176e-04, 1.23482573e-06, 1.15527259e-03, 3.05949245e-04, 8.51330424e-06, 1.08849854e-05, 1.27936046e-05, 4.17949786e-06, 3.02523540e-06, 4.77754884e-06, 6.67666900e-05, 9.13331227e-04, 6.83420003e-05, 6.05605346e-05, 2.65896460e-06, 2.32783748e-07, 6.62672610e-05, 7.83321138e-06, 7.29138119e-05, 8.22097645e-05, 2.76197752e-05, 3.86877400e-06, 1.92959851e-05, 1.53759538e-04, 1.22754730e-03, 2.31955401e-05, 2.25187523e-05, 1.37415144e-03, 1.71360618e-04, 6.57359897e-06, 3.05693029e-05, 8.94019613e-04, 3.87250075e-05, 9.26090330e-02, 1.65536603e-05, 5.22646758e-07, 2.79248488e-04, 1.41403936e-02, 4.37176932e-05, 1.90584160e-05, 2.06518988e-03, 2.26494012e-05, 3.32585078e-05, 3.70180962e-04, 5.31265723e-05, 6.81740812e-06, 2.07475125e-04, 2.51020392e-04, 1.87597951e-04, 1.15935793e-04, 2.58565501e-06, 3.50448659e-07, 1.57836411e-07, 5.09635083e-06, 1.15059838e-05, 3.97383887e-03, 5.29357530e-05, 8.92711341e-07, 5.56647819e-06, 5.02356124e-05, 5.46906767e-06, 3.69359113e-05, 3.96299447e-06, 3.11257390e-05, 8.22404672e-06, 4.29498868e-06, 5.16236178e-05, 3.20028062e-06, 2.47130320e-05, 6.82687187e-07, 3.92503898e-06, 5.79350126e-06, 3.52262796e-05, 2.02863794e-05, 8.18413682e-04, 2.10476555e-05, 2.66402049e-06, 9.28560767e-05, 2.51898717e-04, 2.16715690e-03, 1.90725536e-04, 1.83988514e-03, 8.54619313e-04, 6.05309142e-05, 7.45324769e-06, 1.30628121e-06, 3.17390914e-05, 5.06055258e-05, 5.00457318e-05, 4.61654650e-04, 1.06420682e-03, 2.38512803e-04, 3.55627781e-05, 8.02082104e-06, 1.56492133e-05, 9.81812036e-07, 2.79784808e-06, 2.04979660e-05, 4.15409340e-06, 3.83446859e-05, 7.29761377e-05, 1.25286926e-04, 1.06759890e-05, 2.07925059e-05, 6.36163577e-06, 2.89021627e-05, 6.63748187e-06, 1.28692163e-05, 1.95406701e-05, 1.82689342e-04, 5.09995630e-07, 2.42021470e-05, 1.11044483e-05, 2.51967776e-05, 1.63998513e-04, 3.15916637e-04, 9.24316337e-05, 3.18137900e-05, 4.42755663e-05, 9.27048518e-07, 2.27293435e-06, 8.39256757e-07, 1.65362007e-06, 1.49262545e-03, 6.23295055e-05, 6.48849664e-07, 1.82850727e-05, 4.01221405e-06, 3.97716212e-06, 4.59510005e-07, 2.15689593e-04, 2.66127063e-06, 4.31284150e-07, 5.54433745e-06, 6.47405512e-04, 1.28662850e-05, 3.31774732e-04, 6.00880769e-04, 1.18001135e-05, 5.08400126e-06, 1.05292538e-05, 3.42820596e-04, 1.21662451e-04, 2.78696571e-05, 1.13292326e-05, 1.92549464e-06, 2.73385990e-06, 3.02809314e-03, 1.07101814e-05, 1.47588380e-05, 6.86822432e-06, 7.35019057e-06, 9.20158755e-07, 2.55354935e-05, 3.20404470e-05, 2.88639021e-05, 1.75143068e-05, 3.79058043e-03, 4.18317597e-07, 2.20196380e-04, 2.64696082e-05, 3.48813001e-06, 2.06516517e-04, 2.92050740e-04, 2.74323975e-05, 1.80063804e-03, 3.64751281e-06, 1.24745338e-05, 3.83023253e-05, 4.08674516e-02, 5.06278302e-05, 5.54509370e-06, 1.75329149e-06, 9.99703552e-05, 3.57171230e-05, 4.24613700e-06, 6.66965963e-03, 2.64494838e-06, 1.16434794e-05, 2.53690287e-05, 3.71658672e-07, 5.51011726e-06, 2.28143858e-06, 1.45683396e-06, 3.16849590e-04, 4.26957326e-04, 4.41021752e-04, 3.22438154e-06, 1.19841206e-05, 1.94186185e-04, 8.55900216e-05, 1.30212511e-05, 8.38710330e-05, 1.45285549e-05, 3.71515307e-06, 4.59703297e-05, 8.36696345e-05, 5.17179324e-05, 3.74398087e-06, 1.92321895e-04, 7.43717578e-07, 6.00287640e-05, 1.92536882e-05, 7.56953305e-05, 5.87768853e-03, 7.34748173e-05, 3.43913166e-06, 1.77472102e-05, 7.21679171e-05, 1.83791926e-04, 1.62778974e-07, 4.17179835e-04, 3.86381498e-06, 3.97726490e-06, 3.89497181e-05, 1.82068300e-06, 2.92137545e-03, 5.41350491e-05, 7.64110446e-05, 2.32366438e-06, 3.93773429e-04, 4.04365383e-05, 8.24283634e-04, 1.50146352e-05, 8.60960790e-06, 1.17344189e-05, 1.09504981e-05, 6.75164574e-06, 7.91828672e-04, 7.65331279e-05, 8.73268058e-04, 6.83407279e-06, 2.42794795e-05, 9.62242993e-05, 9.39237907e-06, 9.89673481e-06, 3.03138995e-06, 1.59295687e-05, 1.17901189e-04, 1.78574021e-06, 3.47324785e-05, 2.27114674e-06, 1.57771556e-05, 1.05936910e-04, 1.58295370e-04, 6.51750233e-05, 2.30368132e-05, 6.48308151e-06, 1.54122885e-04, 4.86878926e-05, 9.97196821e-06, 1.59060626e-04, 7.14827329e-05, 1.84852339e-03, 3.92224611e-05, 6.60093574e-05, 2.64276991e-06, 2.54268321e-06, 6.30670775e-06, 1.30197907e-06, 1.77732863e-06, 1.62241895e-06, 2.04546639e-04, 2.10217986e-05, 2.36125872e-03, 1.11548390e-04, 1.46878310e-05, 6.59812533e-04, 2.18815912e-05, 7.24090251e-06, 8.61550507e-06, 1.05814536e-06, 9.61349087e-06, 5.18229217e-06, 2.73495913e-04, 1.64016732e-04, 1.06728430e-05, 4.28974105e-04, 2.33494234e-06, 2.71231711e-05, 4.53741413e-05, 2.18974572e-04, 1.41621476e-05, 1.75833848e-04, 1.04549990e-05, 1.02097954e-04, 1.22600715e-04, 2.01380612e-06, 2.19471418e-04, 7.61590345e-05, 3.08177709e-06, 4.99578928e-05, 1.22552428e-05, 3.63319006e-04, 1.30194501e-04, 2.48200638e-04, 1.95460860e-02, 3.54353368e-04, 1.13739852e-05, 1.28724087e-05, 9.06025234e-05, 2.80954614e-02, 2.98863074e-06, 4.19498747e-06, 5.69919532e-04, 4.53274733e-05, 4.10245638e-03, 2.38259508e-05, 3.65375332e-03, 2.85095552e-06, 5.07093268e-03, 1.02526496e-06, 3.39097205e-05, 5.86767419e-05, 1.28655724e-04, 4.01729130e-06, 9.65985510e-06, 1.34182255e-05, 1.31303132e-05, 2.74858326e-06, 8.94886267e-04, 3.90112609e-06, 4.30869368e-05, 5.12015149e-02, 7.92249693e-07, 2.59220269e-06, 2.00209644e-04, 1.61275739e-06, 1.05913466e-06, 3.21431412e-06, 8.58628755e-06, 1.62449669e-06, 3.42390445e-06, 4.96297085e-04, 1.81248796e-03, 2.41392663e-05, 4.32157378e-07, 3.01770888e-06, 1.11065616e-04, 1.77732254e-05, 3.05088088e-05, 9.11442272e-04, 1.13624501e-05, 6.02112868e-06, 6.81888469e-06, 2.71202862e-06, 3.62944138e-06, 2.47901971e-05, 3.23408221e-06, 5.97417511e-06, 1.55234098e-04, 1.26242821e-06, 4.08067339e-04, 3.11883724e-07, 9.41288832e-04, 1.89910679e-05, 4.65363119e-05, 6.62990264e-04, 2.46679643e-04, 1.15720606e-04, 1.27595180e-04, 3.17860258e-06, 2.90104672e-05, 8.44335300e-05, 5.12565236e-07, 8.89181763e-07, 3.85935891e-06, 8.37064290e-05, 1.64868208e-04, 3.51172348e-05, 5.60819490e-06, 2.19401511e-04, 4.08127438e-04, 2.69722318e-06, 5.18108427e-05, 1.41212431e-05, 5.73181251e-06, 1.92136831e-05, 4.39776253e-04, 1.11156645e-04, 5.55086626e-06, 1.17950176e-05, 1.13379328e-05, 7.41436179e-06, 4.34479443e-05, 5.60880426e-06, 2.54477936e-06, 2.78401558e-06, 2.52124846e-06, 4.74029133e-04, 1.11520667e-05, 1.58382863e-05, 2.21489008e-05, 8.94513869e-05, 4.53031425e-05, 2.42639339e-06, 9.41761471e-07, 2.41876455e-06, 2.39499968e-05, 1.76770504e-06, 3.49765382e-04, 1.04347237e-04, 1.82023689e-06, 2.56720523e-04, 8.46163039e-06, 2.87607800e-05, 1.36316055e-06, 7.28603163e-06, 5.31369369e-06, 3.09025025e-04, 6.92504454e-06, 1.13626294e-04, 6.45976834e-05, 2.12645959e-04, 6.34211210e-06, 5.79789173e-07, 1.00772922e-05, 2.38798311e-04, 2.79529445e-07, 2.56625754e-06, 1.54522166e-03, 4.59202738e-06, 8.97846530e-06, 1.08892273e-04, 1.85783074e-06, 2.58549233e-04, 1.10477367e-05, 4.26274755e-06, 2.16908393e-05, 5.18997585e-05, 2.66095361e-04, 7.00207602e-04, 3.97078747e-06, 8.14143732e-06, 4.05794941e-03, 4.56544990e-03, 1.36343551e-05, 9.84614326e-06, 2.23758383e-04, 1.06980542e-05, 7.60413613e-03, 3.89469869e-06, 1.54093863e-03, 2.07548455e-05, 1.38083542e-05, 1.64757068e-06, 4.22058765e-05, 3.34254612e-04, 7.71678606e-06, 2.17240336e-06, 8.05103082e-06, 3.34178258e-05, 9.74871909e-06, 4.19897819e-03, 2.21732148e-06, 2.94500951e-05, 1.44843875e-06, 4.40798671e-04, 1.36662566e-04, 9.72910811e-07, 1.83892189e-06, 3.00911506e-05, 4.90481125e-06, 1.06224115e-06, 1.51085749e-03, 2.16351000e-05, 1.75692949e-05, 3.48874892e-06, 8.44033882e-02, 5.02096314e-04, 8.81049375e-04, 7.91626280e-06, 2.65544746e-03, 1.60782315e-06, 1.75788991e-05, 4.40554885e-07, 3.00262604e-06, 8.78133532e-03, 1.14007060e-04, 2.35061689e-05, 3.09362349e-06, 3.14549688e-05, 9.27602650e-06, 5.56967512e-04, 1.34986755e-03, 4.28237363e-05, 8.68285861e-05, 6.86484273e-05, 2.41255839e-04, 1.01370015e-03, 8.49879652e-05, 1.17188638e-05, 3.81034974e-04, 2.95864129e-06, 2.00250111e-06, 1.92668776e-05, 4.98022244e-04, 3.20632651e-04, 1.25848544e-06, 4.34792355e-07, 5.19158457e-05, 2.88173087e-05, 3.58667467e-06, 2.74704871e-05, 8.08424229e-05, 4.49468207e-05, 3.96547621e-05, 6.18261356e-06, 5.46228403e-05, 1.21731800e-05, 6.00794783e-06, 7.07755646e-07, 9.70227939e-06, 2.10088911e-05, 1.33511290e-04, 7.22141749e-07, 5.04510172e-06, 1.28416696e-05, 6.84117026e-07, 5.20191236e-07, 2.89630179e-06, 1.45360449e-04, 1.05803738e-04, 9.16635327e-05, 4.01739671e-05, 7.56677173e-06, 4.95888307e-05, 9.37304321e-06, 3.22277687e-04, 1.61703036e-03, 1.06508247e-04, 4.11351398e-02, 3.95816169e-04, 2.24826828e-04, 2.55554100e-03, 1.74095680e-04, 1.36616029e-04, 9.14557095e-05, 8.98788494e-05, 2.36667966e-05, 6.75775846e-06, 8.64556787e-05, 5.90984455e-05, 1.71457632e-05, 2.27517444e-06, 6.56980683e-06, 4.90690923e-07, 7.74254545e-07, 1.67320184e-06, 1.43143143e-06, 1.32629293e-06, 2.85204987e-05, 2.19985977e-05, 1.60261220e-03, 1.76478516e-05, 6.65154948e-06, 2.30248575e-03, 3.09689131e-06, 4.62867407e-04, 2.72313400e-06, 2.36071937e-04, 4.72994770e-06, 4.50090374e-06, 1.94501445e-05, 3.64630228e-06, 4.93342086e-05, 5.86665010e-07, 2.34285311e-04, 2.18613877e-06, 2.52503451e-05, 3.56117904e-01, 3.87917044e-06, 6.99442353e-06, 3.17362021e-04, 1.68024737e-03, 5.50244295e-04, 1.30264234e-04, 9.19837694e-05, 7.31236560e-06, 7.79973780e-05, 2.77132588e-03, 8.81705419e-05, 6.66962023e-06, 1.54279714e-05, 1.91835825e-05]], dtype=float32)
Downloading data from https://storage.googleapis.com/download.tensorflow.org/data/imagenet_class_index.json 40960/35363 [==================================] - 0s 0us/step
[[('n11939491', 'daisy', 0.3561179), ('n02843684', 'birdhouse', 0.09260903), ('n04522168', 'vase', 0.08440339), ('n03991062', 'pot', 0.051201515), ('n07730033', 'cardoon', 0.04113514)]]
Wow! Correctly predicted as “Daisy” and 0.356 prediction accuracy.
Note: I have checked with ResNet50 with same sunflower image and shows as “Daisy” and 0.48 prediction accuracy.
Leave A Comment