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
Map initialisation with random noise and prefered direction #45
Comments
This has gotten stranger. Looking at the SOM file created by PINK, the neuron dimensions do not look correct to me. I would expect for input images of shape
But the SOM header outputs I was expecting the behavior for these multi-channel images to be the same as Following the behavior from |
I'm slowly drilling down into this. I think there there may be a bug in the
I think this comparison should be It remains to be seen whether this actually produces meaningful SOMs or whether there are other issues later. |
So I think that there may be two issues here. One is the initialization of the SOM. When more than one channel is included in the data,
This does not seem to be operating over the channel dimension. The second issue seems to be with the SOM itself when there are multiple channels. It looks the like the second channel does not ever get updated and remains the uniform noise it is initialized. From what I can tell the generation of the rotated images and calculation of the euclidean distance seems to be correct, so I am guessing it is with the weighting update. I wanted to create a some of (4,3) neurons. I am pretty certain the ordering I have read the axes in is not correct. But the important thing to note is the noise that is still present. Any thoughts? I can try to spend a little more time digging into this if it is a bug. I'm a bit slow as I get myself familiar with the code base. But if the simple answer is |
Hi Tim! Thanks for reporting. I will take a look into it and come back to you as soon as I have checked that behavior. |
Yes, you are right. Multichannel images are not working in PINK v2. I will fix this in the next days and within v2.4. Sorry for that. |
Thanks for that - glad it was not just user error! I'll refrain from trying to debug then - thanks Bernd! |
I have fixed now some index inconsistencies in the Cartesian 3D data layout. Because of performance the image transformations were implemented for the fastest indices. This means that the depth (channel) index have to be the first index (d, r, c). It is fixed for the CPU version yet. The GPU version is in process. |
See also the jupyter notebook for testing: https://github.com/HITS-AIN/PINK/blob/master/jupyter/notebooks/devel/train-morphology-EFIGI-png.ipynb |
I am using an image binary file with about 200k images, with each image having a dimension of (150,150,2).
It seems that when using
--init random_with_preferred_direction
to create the initial map state there is a segmentation fault. Switching this to justrandom
seems to work fine.I am guessing that it has got to do with the third dimension of each image. I have no dug through the code to isolate much more than this at the moment.
The text was updated successfully, but these errors were encountered: