-
Notifications
You must be signed in to change notification settings - Fork 569
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
Any training tutorials? #584
Comments
Well https://tutorial.voxelmorph.net shows training mechanisms. I wouldn't use a model with
Also, how are your images normalized? |
The image regestered[i] is 8-bit grayscale image. Another case, if I use And when I run the code |
I don't think you checked the shape of the warp in the code above? the input image to the model should be (1, 256, 256, 1) due to how tensorflow works if you have both of those of the right shape and floats, I think they should work. Doing this in a fresh colab works fine:
|
Yes, at least the code above can run. |
Task (what are you trying to do/register?)
I am trying to train my own model for
1000*1000
size image but the model actually don't learn anything.The loss went down to 0.02 and converged, but the 'moved' image is exactly same as 'moving' image.
What have you tried
I changed the size of model.
from
[(32,32,32,32) (32,32,32,32,32,16)]
to
[(256,)*4 (256,)*8]
It have very little change, if not changed at all.
Details of experiments
Please carefully specify details about your experiments. If you are training, when what is the setup? What loss are you using? What does the convergence look like? If you are registering, please show example inputs and outputs. etc.
It just copied from https://colab.research.google.com/drive/1zaDnAJGUokS0knqWttuTgrRJMb6zxukI?usp=sharing
I changed the input size and the model size, nothing else.
P.S. another way is to resize the warp field to use the warp field for
1024*1024
image.However, when I use the code
warp_model = vxm.networks.Transform(in_shape, interp_method='nearest') registered[max_idx]=cv.resize(images[max_idx],(256,256)) warped_seg = warp_model.predict([registered[i], warp])
it keep going out error as
Data cardinality is ambiguous: x sizes: 256, 1 Make sure all arrays contain the same number of samples.
The text was updated successfully, but these errors were encountered: