-
Notifications
You must be signed in to change notification settings - Fork 86
Can't Visualise results #50
Comments
You need to parse the validation results of the added keys manually as in these lines. |
Can you please help me with the code snippet of how to do it for visualizing the optical flow, and from it I can follow and do the same for visualizing the warped image etc. Thank you |
You may follow these lines as an example and copy the related functions to eval.py |
I used the following lines in eval.py to praise the validation results.
And I got the following images: I don't think that they are accurate results, since the moving and fixed image appear to be exactly same. And moreover the summary of results after running the eval.py file is as follows: Summary Could you please help me!! |
@zsyzzsoft What does warped_moving_0, warped_moving_1 etc and real_flow_0, real_flow_1 etc indicate? Why my moving image (i.e results['image_moving']) and fixed image (i.e results['image_fixed']) ? Why my warped moving (results['warped_moving']) and results['warped_moving'_1] also same ? PS: I have run train.py and eval.py on my own data of size 28828896. |
Looks like there is something wrong with your dataset config. |
I have pairs of moving and fixed images (lets say 68_mov and 68_fix) and I also have their respective segmentation masks (68_mov_seg and 68_fix_seg). To create a validation .h5 file, I have created a group 68_mov and in it I have 2 members or datasets: 'segmentation' corresponding to 68_mov_seg and 'volume' corresponding to 68_mov. This is followed by group 68_fix and in it I have 2 members or datasets: 'segmentation' corresponding to 68_fix_seg and 'volume' corresponding to 68_fix. And since I have to perform pairwise matching I run the command Still I get output as
Moreover, as my dataset siye is 28828896 you told me this 'The network assumes that input resolution is a multiple of 64. In your case, you may remove the 6-th level layers (conv6, conv6_1, pred6, and upsamp6to5) in the network as a workaround.' and hence I removed these parts from network/base_networks.py. Below is code from base_networks.py
You have been of great help to me. Please help again!! |
@zsyzzsoft Thank you so much for all your help till now.
Actually, I wanted to visualize the results as well like moving images, warped moving images, optical flow etc. For that I ran eval.py file and I added the keys as mentioned by you in eval.py file like
keys = ['pt_mask', 'landmark_dists', 'jaccs', 'dices', 'jacobian_det','real_flow','image_fixed', 'warped_moving']
But in end I couldn't see any images anywhere, just the .txt file of evaluation results in evaluate folder. Could you please let me know what other changes do I have to make to visualize the results.
The text was updated successfully, but these errors were encountered: