-
Notifications
You must be signed in to change notification settings - Fork 13
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
Runtime error related to tensor size when running "analysis-gene_maps" #68
Comments
I am experiencing the same issue. From what I can gather, the parameter normalize_size is coerced to true here: xfuse/xfuse/analyze/gene_maps.py Lines 104 to 110 in c1f7ead
Causing this conditional statement to pass, which is where the error occurs: xfuse/xfuse/analyze/prediction.py Lines 87 to 91 in c1f7ead
I am also confused, as I also set the |
Thank you for the reports! Is this error happening in all your experiments or only in a particular dataset? Unfortunately, I have not been able to reproduce it on my own data, so debugging this will be a bit tricky. To provide some context, the sizes variable should capture the number of pixels in each predicted location, and the line where the error occurs is used to normalize out any size differences. When the If I recollect correctly, the reason why we force size normalization in the gene maps analysis is that when 1/scale is fractional, the discretized locations may not be of the same size. To produce gene map images that don't have any weird banding-like artifacts, it is then necessary to normalize out those differences. |
Hi, My config file is :
|
@AdrianaLecourieux |
Hi @ludvb,
Thank you for inventing the tool for upscaling ST data.
I came across this error after training the model when running analysis "analysis-gene_maps".
ERROR : RuntimeError: The size of tensor a (30598626) must match the size of tensor b (23687921) at non-singleton dimension 0
For the training part, since I am very new to deep learning models, I tried parameters with small values so that the model can be trained fast and I could get a sense of what the result looks like. I am not sure if the parameters used caused the problem. Here is my config file.
Could you please help with the issue? Thank you in advance!
Yuzhou
The text was updated successfully, but these errors were encountered: