function generateImagetoTxt(a)
    I = imread(a);
    I = imresize(I,[299,299]);
    f2 = fopen('inputimage.txt','w');
    for d = 1:1 % batchsize ;
    for i = 1:3 % chan
    for j = 1:299 % rows
    for k = 1:299 % cols
    fprintf(f2,"%f\n",I(j,k,i));
    end
    end
    end
    end
    fclose(f2);
end