-
Notifications
You must be signed in to change notification settings - Fork 21
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
Mi' size 3x3 or 4x4 or 6x1? #1
Comments
Hello Vanessa!
Thanks for trying our code! The 9 values (each row) in Demo_pos.txt is
the positioning information captured by our ultrasound imaging device:
1. The first value indicate the port number (0) of our tracking device.
The second value shows if the tracking device is working properly (0:
OK, 1: Error). These two values are just indicators and may not be
useful in the algorithm.
2. The following 7 values are grouped to indicate the position of the
frame at this time point:
(a) 3 values are translation along x, y and z
(b) The rest 4 values is a quaternion with elements in the order of
(x, y, z, w). This quaternion can then be converted to a rotation
matrix.
In our code "tools.py" function "params_to_mat44", it coverts the 9
values explained above to a 4x4 transformation matrix. We get the
matrices M(i) and M(i+1) at two consecutive time points, and compute
their relative transformation Mi' as in the article. Then we decompose
the Mi' into 6DOF to represent the relative transformation between two
time points, and use this 6DOF as the label for these two frames.
Hope this can solve your problem, and please let us know if we can
provide more help! Thanks!
Best,
Hengtao
…On 2020-11-11 04:14, vanessagd.2395 wrote:
Good morning,
First of all, thank you for your work!
I have a question about how you write My' in the demo_pos.txt file.
Mi' is a matrix of 4x4 as is the result of Mi'=M(i+1)*Mi^-1. . In the
article you say that you decompose Mi' into 6 degrees of freedom but
in the txt you write 9 values.
What representation do you use for the 9 values?
Thank you in advance.
Cordially
Vanessa.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2].
Links:
------
[1] #1
[2]
https://github.com/notifications/unsubscribe-auth/AFI66UF5N33K6HORFMDIRI3SPJIYTANCNFSM4TRXVNTA
--
Hengtao Guo
3rd Year Ph.D. Student
Department of Biomedical Engineering
Center for Biotechnology and Interdisciplinary Studies (CBIS)
Rensselaer Polytechnic Institute
Email: [email protected]
|
Hello Hengtao! Many thanks |
Hello Hazel, Thanks for connecting with us! The "dof_stats.txt" contains a 6*2 Numpy array. The 6 values in the first column are the mean values of 6 degrees-of-freedom (dof) of our training dataset, while the second column contains the standard deviation. We compute such statistics to do the standardization of our training set (line 405 in "train_network.py"). During the testing, we also use such statistics to recover the magnitude of the network's predictions (line 1081 & 1026 in "test_network.py"). Hope this answers your concerns, and please let us know if we can provide more help! Best, |
Thanks for the response! When trying to run(line 432 in train_network.py) I print the shape: Any ideas as to why this might be happening? |
If you are using the network_type as "resnext", I am guessing because the model is returning a tuple (line 262 in networks/resnext.py) instead of just a torch tensor. You can change "outputs=outputs" to "outputs=outputs[0]” in both line 691 and 693 (train_network.py) to see if this helps. |
Thanks this works well! |
Hello hengtao! |
Hello Hazel! Great to hear from you!
Hope you find this helpful, and please let us know if you have any questions or thoughts! Thanks! Hengtao |
Hello Hentao! |
You are very welcome! Looking forward to your progress! |
Hi Hengtao, This is very interesting work! I have a quick question about the proposed algorithm. Since image resolution can be a major concern for both ultrasound frames and imaging processing algorithms, I am wondering are there any resolution requirements for the input US image patches? Thanks in advance for your reply! |
Hello Qianqian, thanks for your question! In practice, the clinicians may use different resolutions for the ultrasound imaging according to their needs. Currently, the DCL-net is trained on a dataset with mixed resolutions (4, 5, 6, 7.1, 8.1, 9 cm depth), so I would say there are no resolution requirements so far. However, we are also considering this problem: whether train on one specific depth/resolution can help improve the performance. On the downside, this would make our dataset even smaller because the entire dataset will be divided into several groups. Nevertheless, we are still working towards the improved DCL-Net. Hope you find this useful to you, thanks! Hengtao
|
Hello Hengtao, |
Hi Vanessa, The DCL-Net is actually here, which was set as the default network. Thank you for pointing this out and I should be clarifying this in our codes! Essentially, our DCL-Net is based on 3D ResNeXt with attention module. Hope this can be helpful and let us know if you have further questions! |
Hi Hengtao, |
Hi, Hengtao! Thank you for answering the questions. |
Good morning,
First of all, thank you for your work!
I have a question about how you write My' in the demo_pos.txt file.
Mi' is a matrix of 4x4 as is the result of Mi'=M(i+1)*Mi^-1. . In the article you say that you decompose Mi' into 6 degrees of freedom but in the txt you write 9 values.
What representation do you use for the 9 values?
Thank you in advance.
Cordially
Vanessa.
The text was updated successfully, but these errors were encountered: