Orkis-Research / Pytorch-Quaternion-Neural-Networks

This repository is an update to all previous repositories with implementations of various Quaternion-valued Neural Networks in PyTorch
GNU General Public License v3.0
200 stars 54 forks source link

pixel representation #7

Open gravitychen opened 4 years ago

gravitychen commented 4 years ago

Dear author,

the code in QuaternionLinear() splits 1d input data into R,I,J,K part , but when we want to do some task on images e.x.MNIST dataset size = ([1,784]), it's weird to operate pixels like this, if I want to make each pixel as quaternion , how should I change the code?

Thank you Chen

TParcollet commented 4 years ago

MNIST is on the grayscale. Thus, you can replicate each value three time to obtain 0 + value I + value j + value k.

gravitychen commented 4 years ago

MNIST is on the grayscale. Thus, you can replicate each value three time to obtain 0 + value I + value j + value k.

Thank you ,so it's better to use QuaternionConv() right?