-
I`ve tried to use a camvid example(ipynb file), wherefrom multiclass you can choose one preferred class and do training with it. As I understood mask images are in RGB shape, therefore have 3 channels. However, in my case, I have a single class dataset, where mask images are in black and white. If I read the image using cv2 and giving cv2.IMREAD_GRAYSCALE parameter I have error in training. Image shape (512,640,3), mask shape (512,640). If I try to expand dims of the mask to 1 or read masks as RGB, like original images(3 channels), training works well, but dice_loss gets minus numbers and iou score goes beyond 100%. File "/home/goback_main/anaconda3/envs/pl/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I`ve found out the solution to this problem:
|
Beta Was this translation helpful? Give feedback.
I`ve found out the solution to this problem: