-
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
Training routine #2
Comments
Hey @relyativist, Thanks for your interest in our work! I've added a relatively complete end-to-end demo of transfer learning at I've illustrated a single instance of the layer freezing (or unfreezing) and model (since there's a If there are any questions or issues getting the notebook to run, please post here. Best, |
From my brief research, it looks like it isn't possible to convert I might port the code over to |
@ravnoor Thanks for complete response and support. In your example inference.py in tree directory markdown you mentioned about stereochastic native MRIs, but I didn't find whether labels should also be in t1 native or MNI? I didn't find corresponding transformation in NoelImageProcessing regarding labels. Thanks VY |
The labels are expected to be in the same stereotaxic space as the T1- and T2-weighted images, in this case, MNI152. You're right, the labels aren't transformed to the template space yet. Thanks for pointing that out! I'll fix that next week. |
Hi @ravnoor I successfully tuned mode with fixed layers on model[1], and saved learnt model with frozen layers in model[0], thanks for guide. However, I have an issue with model inference on new model in example notebook on last cell inference, because it ran too long, what actually progress of |
It shouldn't take too long. How much RAM are you currently working with? Are you using a GPU for compute? |
@ravnoor Yes, I am using GPU with 12 gb of ram, and it utilise about 9 gb with batch_size=4096. Actually, It didn't finish after 12 hours for 1 subject |
How about the system RAM? Does the inference exit with or without an error? Also, make sure your inputs (T1 and T2 images) are correctly co-registered and skull-stripped (gh-6). If they are not, the number of input patches to the network will be overwhelmingly large. This might partially explain why the network takes so long. |
@ravnoor Thank you for tip with memory alloc. Resolved the issue tuning batch size, so the inference finished successfully. I have additional questions regarding results. I experimented with performance set to true during test model, I have additional output with files |
I'm glad it worked out for you! The Looks like
|
Hey,
I am trying transfer learning on my data with given weights. Do you have updated training routing script for this?Do you now if it possible to translate Theano weight to Pytorch?
Thanks, VY
The text was updated successfully, but these errors were encountered: