You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @LucaMarconato . Thanks for developing spatialdata-io, it is super helpful in processing spatial data. I wanted to use this package to process my dbit-seq data, but I had trouble reading the dbit-seq image with sd.models.Image2DModel.parse function. It said "ValueError: Wrong dims: ('y', 'x'). Expected ('c', 'y', 'x').". My image is (2000, 2000), and it seems that the Image2DModel doesn't work well with my data. Do you have any suggestions on this? Thanks very much!
The text was updated successfully, but these errors were encountered:
Hi @KaiLi-2324, thanks for your interest in the package. Adding a dummy dimension by reshaping the array will be enough to solve your problem. If you have images with single channels, Image2DModel.parse() will expect the shape (1, y, x). For instance if you use numpy you can do np.expand_dims(x, 0).
Hi @LucaMarconato . Thanks for developing spatialdata-io, it is super helpful in processing spatial data. I wanted to use this package to process my dbit-seq data, but I had trouble reading the dbit-seq image with sd.models.Image2DModel.parse function. It said "ValueError: Wrong
dims
: ('y', 'x'). Expected ('c', 'y', 'x').". My image is (2000, 2000), and it seems that the Image2DModel doesn't work well with my data. Do you have any suggestions on this? Thanks very much!The text was updated successfully, but these errors were encountered: