Description
I meet the same problem with #1048
while my mask file is RGB, I got problem ValueError: size shape must match input shape. Input is 2D, size is 3.
When I changed my mask file to gray image, I got same error with issue 1048
RuntimeError: CUDA error: an illegal memory access was encountered CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1. terminate called after throwing an instance of 'c10::CUDAError' what(): CUDA error: an illegal memory access was encountered CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
My custom dataset define as the following
CLASSES = ('background', 'trachea')
PALETTE = [[0, 0, 0], [255,255,255]]
the final of issue 1048 said Mask pixel value should be label value solved this problem.
what does this mean? how to change my config file or mask file?