Skip to content
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

4D tensor appears in NN code #572

Open
dzenanz opened this issue Aug 25, 2022 · 0 comments
Open

4D tensor appears in NN code #572

dzenanz opened this issue Aug 25, 2022 · 0 comments
Assignees

Comments

@dzenanz
Copy link
Member

dzenanz commented Aug 25, 2022

https://sentry.io/organizations/kitware-data/issues/3512135111/?alert_rule_id=10511315&alert_timestamp=1660823390256&alert_type=email&environment=production&project=6196580&referrer=alert_email

for val_data in data_loader:
assert np_array.shape[0] == 1 # we are dealing with scalar images

img {affine: array([[-1., 0., 0., 0.], [ 0., -1., 0., 0.], [ 0., 0., 1., 0.], [ 0., 0., 0., 1.]]), data: tensor([[[[0.], [0.], [0.], ..., [0.], [0.], [0.]], [[0.], [0.], [0.], ..., [0.], [0.], [0.]], [[0.], [0.], [0.], ..., [0.], [0.], [0.]], ..., [[0.], [0.], [0.], ..., [0.], [0.], [0.]], [[0.], [0.], ..., path: '/tmp/tmpxeohm_29/9a4bae7112ed27db4a74b103fb5f284b.png', stem: '9a4bae7112ed27db4a74b103fb5f284b', type: 'intensity'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant