Closed andrewjkwok closed 6 days ago
That was very silly! The code works fine.
I was following the tutorial here: https://jef.works/STalign/notebooks/merfish-allen3Datlas-alignment.html
The simple error was that in a previous step setting muA
and muB
, I had set the device to cpu
sigmaA = 2 #standard deviation of artifact intensities
sigmaB = 2 #standard deviation of background intensities
sigmaM = 2 #standard deviation of matching tissue intenities
muA = torch.tensor([3,3,3],device=device) #average of artifact intensities
muB = torch.tensor([0,0,0],device=device) #average of background intensities
It might be worth just editing this in the tutorial to avoid similar issues in the future?
Hi,
Thanks for this great tool.
I have been able to successfully run STalign on my cpu, but am coming up against an error when trying to use my NVIDIA GPU. Specifically, when I run:
where device =
cuda:0
I receive the following error:
Given that the code runs fine when my
device
argument is set to cpu, could I check what the issue may be?