https://www.cs.toronto.edu/~kriz/cifar.html
I did it using Keras
Datasets - Keras Documentation
https://keras.io/datasets/
Hello,
I have developed this code in Matlab to extract 10000 images from cifar data.
create a directory named base in your work space.
clear all
clc
load('data_batch_1.mat')
im=zeros(32,32,3);
for cpt=1:10000
R=data(cpt,1:1024);
G=data(cpt,1025:2048);
B=data(cpt,2049:3072);
k=1;
for x=1:32
for i=1:32
im(x,i,1)=R(k);
im(x,i,2)=G(k);
im(x,i,3)=B(k);
k=k+1;
end
im=uint8(im);
imwrite(im,strcat('..\base\',int2str(cpt),'.png'),'png');
Try this code:
if true
clc;
clear all;
load('meta.mat');
%Create folders
for i=1:length(fine_label_names)
mkdir('CIFAR-100\TEST\',fine_label_names{i});
mkdir('CIFAR-100\TRAIN\',fine_label_names{i});
%%Training images
load('train.mat');
for cpt=1:50000
pathdest = strcat('CIFAR-100\TRAIN\',fine_label_names{fine_labels(cpt)+1},'\',filenames{cpt});
imwrite(im,pathdest,'png');
%%Test images
load('test.mat');
pathdest = strcat('CIFAR-100\TEST\',fine_label_names{fine_labels(cpt)+1},'\',filenames{cpt});
I am already familiar with machine learning, Python and Neural Networks.
08 September 2016 3,941 1 View
I am using Java and OpenCv as tools to detect object in still images and videos.
08 September 2016 1,136 2 View
will it be 2d as (1000)* (3*32*32)? or will it be 4d as (1000)* (3) (32)(32)?
08 September 2016 7,824 1 View
I need to implement or download an algorithm for Vehicle detection in images.
08 September 2016 5,887 4 View
this is code I used #prepare labels...
08 September 2016 993 2 View
If I will test my classifier using images that include the target object in an image among other items. I assume a sliding window is used.
08 September 2016 7,813 6 View
I already built a classifier to detect a single vehicle in a frame.
08 September 2016 2,438 0 View
Detecting Vehicles and pedestrians, how the classifier is trained? How exactly preprocessing of images is applied?
07 August 2016 914 6 View
These features will be input to a classifier
31 December 2013 9,089 2 View
should be like 50% each or should negative size be multiple of positve size?
01 January 1970 647 0 View
After immunohistochemistry of previously fixed in PFA and EtOH and then frozen 20 μm sections of zebrafish brain, DAPI staining is very weak (right) compared to the same sections stained without...
05 August 2024 9,637 2 View
Hi everyone I need a file with a dirty and clean potato image
04 August 2024 7,199 4 View
I fabricated Ti3C2Tx using concentrated HF 40%, I plot an XRD as attached image below.. please let to know if I obtained it or not.
02 August 2024 6,789 4 View
Dear researchers. I tried using the IHC PROFILER in image j to quantify nuclear DAB staining. I followed the instructions in the original article by "Varghese F, Bukhari AB, Malhotra R, De A...
29 July 2024 2,229 0 View
My question pertaining to the DAB staining in cytoplasm of human oral squamous cell carcinoma tissue. When quantifying the epithelial cancer cells do we have to crop remove the stromal tissue?...
29 July 2024 2,682 6 View
In my molecule there is Chloro group at 2-position of phenyl ring, but in 2D image it appears as methyl showing no interaction.
28 July 2024 734 0 View
The above are manually labeled extrinsic matrices based on the first image It can be seen that the projection error at the edge is large, while the error at the center is small. What could be the...
23 July 2024 7,479 3 View
Machine Learning for Automated Diagnosis of Skin Cancer with Dermoscopy Images
21 July 2024 5,471 0 View
Anomaly detection in scanned image data set
18 July 2024 3,578 3 View
I have been running native page for FAM DNA substrate ( fluorescence samples) for protein DNA binding reaction. Binding is there but towards the end of the lane , I am loosing signals...
17 July 2024 6,213 4 View