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

3D interpolation in GPU, but error #7

Open
chelovek21 opened this issue Apr 11, 2023 · 1 comment
Open

3D interpolation in GPU, but error #7

chelovek21 opened this issue Apr 11, 2023 · 1 comment

Comments

@chelovek21
Copy link

chelovek21 commented Apr 11, 2023

I am trying to use GPU to achieve 3D interpolation, using the following method:
transformed_volume = transform(volume, scale=(0.5, 0.5, 0.5), interpolation='linear', device='gpu:0', reshape=True)
python=3.9, cupy-cuda112==8.5.0

But the output is an incorrect result, why?
@the-lay
The output result:
test2

The correct result should be:
test2 (copy)

@the-lay
Copy link
Owner

the-lay commented Apr 11, 2023

Hi! Could you please try it running it on CPU, is the result correct then?

transformed_volume = transform(volume, scale=(0.5, 0.5, 0.5), interpolation='linear', device='cpu', reshape=True)

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

2 participants