kbressem / prostate158

MIT License
26 stars 7 forks source link

TypeError: Cannot interpret 'torch.float32' as a data type #1

Closed Muhammad-Raza156 closed 2 years ago

Muhammad-Raza156 commented 2 years ago
image

this error occurred while running the code

kbressem commented 2 years ago

Are you using MONAI > 0.9. There were breaking changes with the introduction of MetaTensor.

Muhammad-Raza156 commented 2 years ago

I am using MONAI 0.6.0.

On Sat, Sep 10, 2022 at 2:26 AM Keno @.***> wrote:

Are you using MONAI > 0.9. There were breaking changes with the introduction of MetaTensor.

— Reply to this email directly, view it on GitHub https://github.com/kbressem/prostate158/issues/1#issuecomment-1242493942, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJDD3ACGEMFHYJEEC56KNDTV5OTSDANCNFSM6AAAAAAQI3IFT4 . You are receiving this because you authored the thread.Message ID: @.***>

kbressem commented 2 years ago

I have not tested the code with any other version as given in: https://github.com/kbressem/prostate158#dependencies

Please try to update your environment. Hopefully, this will resolve the issue.

Muhammad-Raza156 commented 2 years ago

I will try it.

On Sat, Sep 10, 2022 at 2:33 PM Keno @.***> wrote:

I have not tested the code with any other version as given in: https://github.com/kbressem/prostate158#dependencies

Please try to update your environment. Hopefully, this will resolve the issue.

— Reply to this email directly, view it on GitHub https://github.com/kbressem/prostate158/issues/1#issuecomment-1242682917, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJDD3AB2YVFAAJ7ADKDEZLLV5RIXTANCNFSM6AAAAAAQI3IFT4 . You are receiving this because you authored the thread.Message ID: @.***>

kbressem commented 2 years ago

Did it work?

kbressem commented 2 years ago

Feel free to reopen the issue, if you need more help.