www0wwwjs1 / Matrix-Capsules-EM-Tensorflow

A Tensorflow implementation of CapsNet based on paper Matrix Capsules with EM Routing
Apache License 2.0
218 stars 83 forks source link

the mean and std of smallNORB dataset #49

Open HJLYU0519 opened 5 years ago

HJLYU0519 commented 5 years ago

I want to realize the first normalization of smallNORB, but I could not get the value of mean and variance(std) in data/smallNORB.py
177 line: mean, variance = tf.nn.moments(image, [0, 1, 2]) I am sure both mean and variance is scalar. is there some way to get the mean and variance(std) of smallNORB dataset?

Thanks so much if you could help me!

HJLYU0519 commented 5 years ago

if I print(mean, variance), I could just get some attributes but not the value of mean and std