Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Image must have uint8 channel type #4

Open
github-eliviate opened this issue Jul 21, 2023 · 0 comments
Open

TypeError: Image must have uint8 channel type #4

github-eliviate opened this issue Jul 21, 2023 · 0 comments

Comments

@github-eliviate
Copy link

File "/home/ccc/miniconda3/envs/net/lib/python3.6/site-packages/albumentations/augmentations/transforms.py", line 973, in apply
return F.posterize(image, num_bits)
File "/home/ccc/miniconda3/envs/net/lib/python3.6/site-packages/albumentations/augmentations/utils.py", line 107, in wrapped_function
result = func(img, *args, **kwargs)
File "/home/ccc/miniconda3/envs/net/lib/python3.6/site-packages/albumentations/augmentations/functional.py", line 217, in posterize
raise TypeError("Image must have uint8 channel type")
TypeError: Image must have uint8 channel type

albumentations里面posterize只支持uint8:
image
请问你的医疗图像是unit8的吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant