Skip to content

TypeError: Image must have uint8 channel type #4

@github-eliviate

Description

@github-eliviate

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的吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions