bowang-lab / MAESTER

Masked Autoencoder Guided Segmentation at Pixel Resolution
MIT License
12 stars 6 forks source link

fixed problem with tensor storage; add some output during inference #1

Open mese79 opened 11 months ago

mese79 commented 11 months ago

Hi, nice work!

I realized that in the example notebook, when you try to open the tensor storage, the whole image slices (result) passed as the depth, and not just those where selected (src). This caused to append a large storage space to the one created by the inference process.
So, I just added the srcD variable, and used it to open the right size storage.
I also add some print log to the inference process that might help to see where we are in the process.