ImportError: cannot import name 'LoadPNG' from 'monai.transforms' #2528
Unanswered
Mitra-coding
asked this question in
Q&A
Replies: 1 comment
-
from monai.transforms import LoadImage
LoadImage(reader="pilreader")(filename='test.png') |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've installed monai in colab:
!pip install monai
when I want to import 'LoadPNG':
from monai.transforms import LoadPNG
I get this error:
ImportError: cannot import name 'LoadPNG' from 'monai.transforms' (/usr/local/lib/python3.7/dist packages/monai/transforms/__init__.py)
Upgrading via
!pip install --upgrade monai
didn't help.Any guidance would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions