-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you provide an example on CIFAR or any image dataset using scatnetgpu? #2
Comments
Also the number of output channels is not given..new parameters M and L is different from pyscatwave repo? |
Hi, thanks for your interest in this library. from keras.datasets import cifar10
(x_train, y_train), (x_test, y_test) = cifar10.load_data()
x_train = np.moveaxis(x_train, 1, -1)
x_test = np.moveaxis(x_test, 1, -1)
from scatnetgpu import ScatNet
sn = ScatNet(M=2, J=4, L=6)
sn_train = []
for img in x_train:
sn_train.append(sn.transform(img))
sn_test = []
for img in x_test:
sn_test.append(sn.transform(img)) Please note that scattering networks provides only a representation of your data. A classifier (e.g. SVM) is required if you want to train a model. For the second question, as I said on the README this library is compatible with the original scatnet library. I've never used pyscatwave so I can't help you about the different output shape. Anyway, you could look at my thesis work that used this library, maybe it could guide you a little. |
Thanks for prompt reply. The transform step returns a list of list. It has several keyword as indices. Which part is the features extracted from images? Transform gives a list of length one which contains lists of (3,3) which is further bifurcated. As far as i know none of the machine learning packages takes lists as input. Can you give some documentation as in which index corresponds to what? |
This particular output structure was chosen to keep the compatibility with the original matlab library. First list is long 3 because data have 3 channels. Each channel is transformed independently so you have one list for each channel. If you just want to use the scatnet representation for classification, you may want to use the |
Hello, |
Just use |
Hello,
Can you provide an example on CIFAR or any image dataset using scatnetgpu?
The text was updated successfully, but these errors were encountered: