Load torch files rather than images? #1281
-
I am trying to setup a dataloader using torchio, but the problem is that all my images are saved directly as torch files, image0.pt, image1.pt ect. Is there a way to use such images without loading all of them into memory directly? The only thing I can find in the documentation about using torch.tensors is if you already have the tensor, but not if you want to load it lazily when needed. |
Beta Was this translation helpful? Give feedback.
Answered by
romainVala
Apr 9, 2025
Replies: 1 comment
-
Hi |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tueboesen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
not sure what your image0.pt contains, but you can use a custom reader
as propose here #437 (comment)