We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Quick setup and run https://github.com/gaocong13/Projective-Spatial-Transformers
RuntimeError: Subtraction, the - operator, with a bool tensor is not supported. If you are trying to invert a mask, use the ~ or logical_not() operator instead. from https://stackoverflow.com/questions/65637222/runtimeerror-subtraction-the-operator-with-a-bool-tensor-is-not-supported replace
-
~
logical_not()
mask_c0 = mask_d2 * mask_d0_d1 mask_c1 = mask_d2 * (1 - mask_d0_d1) mask_c2 = (1 - mask_d2) * mask_d0_nd1 mask_c3 = (1 - mask_d2) * (1 - mask_d0_nd1)
with
mask_c0 = mask_d2 * mask_d0_d1 mask_c1 = mask_d2 * ~(mask_d0_d1) mask_c2 = ~(mask_d2) * mask_d0_nd1 mask_c3 = ~(mask_d2) * ~(mask_d0_nd1)
The text was updated successfully, but these errors were encountered:
Tasks
Sorry, something went wrong.
Understand these predefined hard-coded geometry
# Pre-defined hard coded geometry src_det = 1020 iso_center = 400 det_size = 128 pix_spacing = 0.73 * 512 / det_size #0.194*1536 / det_size step_size = 1.75 vol_size = CT_vol.shape[0] norm_factor = (vol_size * vol_spacing / 2) src = (src_det - iso_center) / norm_factor det = -iso_center / norm_factor pix_spacing = pix_spacing / norm_factor step_size = step_size / norm_factor
Normalizing factor: normalizes the input volume such that it occupies the normalized physical space (-1,1)
Expected: Got: Using Camera Parameters:
msrepo
No branches or pull requests
Quick setup and run https://github.com/gaocong13/Projective-Spatial-Transformers
with
The text was updated successfully, but these errors were encountered: