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

Exception: Mask format 'png' does not allow 'binary' encoding! Allowed are: integer,rgb,rgba #51

Open
robmarkcole opened this issue Oct 19, 2023 · 0 comments

Comments

@robmarkcole
Copy link
Contributor

I want to annotate change detection and generate 8 bitmask.png which is single channel and 0 is no-change and 255 is change, which I think is pretty standard format. However the config below:

    "segmentation": {
        "path": "{id}/mask.png",
        "mask_encoding": "binary",
        "score": "f1",
        "mask_area": [0, 0, 256, 256],
        "unverified_threshold": 1,
        "test_images": null
    },

Returns

Exception: Mask format 'png' does not allow 'binary' encoding! Allowed are: integer,rgb,rgba
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