ndrplz / small_norb Goto Github PK
View Code? Open in Web Editor NEWPython wrapper to small NORB dataset
License: MIT License
Python wrapper to small NORB dataset
License: MIT License
I was wondering if you were able to verify the azimuth and elevation angles.
I changed the export routine to include the azimuth and elevation integers in the filename.
image_lt_path = join( split_dir, '{:06d}_{}_{:02d}_{}_{}_lt.jpg'.format(
i, category, instance,norb_example.elevation,norb_example.azimuth))
Then I looked at all images with the same azimuth and elevation and eye.
feh *airplane_*_5_30_lt.jpg
There seemed to be quite a lot of variation in pose both within class and across classes.
Animal seemed more consistent. Airplane seemed to have large inconsistencies...
For example, these are all labeled elevation 5, azimuth 30 eye left:
Hi,
first of all thank you for your repository. Now also TF Datasets offers smallnorb dataset, but due to the poor results I obtained, I ended up with your work.
I have two very simple questions:
def create_dataset_tensors(split):
X_train = np.empty((dataset.n_examples * 2, 96, 96))
y_train = np.empty((dataset.n_examples * 2))
index = 0
for i in tqdm(range(dataset.n_examples)):
X_train[index] = dataset.data[split][i].image_lt
y_train[index] = dataset.data[split][i].category
index += 1
X_train[index] = dataset.data[split][i].image_rt
y_train[index] = dataset.data[split][i].category
index += 1
return X_train[...,None], y_train
Andrea, thank you for this code, it is incredibly useful for my project. However, scipy.misc.imsave
is now deprecated and instead I think we should use either scipy.misc.imwrite
or imageio.imwrite
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.