Open 870572761 opened 1 year ago
In the original labels, 0, 1, 2, 3, ... , 8 are used to represent the different categories, so all the labels are black. You can write a mapping code to visualize the labels.
In the original labels, 0, 1, 2, 3, ... , 8 are used to represent the different categories, so all the labels are black. You can write a mapping code to visualize the labels.
Thanks.
I find some labels just exist one type. Is it a special label or my wrong? There is my code.
import numpy as np
from PIL import Image
import torch
label_path1='.\leir\label\js.jpg'
a=Image.open(label_path1)
label = np.array(a)
label = np.asarray(Image.fromarray(label), dtype=np.int64)
lb=torch.tensor(label) lb = np.uint8(255.0 * lb)
lb = Image.fromarray(lb) lb.show() `
Apologies for the delay in responding. Have you resolved the previous issues or do you still need assistance? If you still need help, I can share the mapping code I have recently written with you.
Thanks.I really need that.It is my email: l870572761@gmail.com.
Apologies for the delay in responding. Have you resolved the previous issues or do you still need assistance? If you still need help, I can share the mapping code I have recently written with you.
Thanks.I really need that.It is my email: l870572761@gmail.com.
Apologies for the delay in responding. Have you resolved the previous issues or do you still need assistance? If you still need help, I can share the mapping code I have recently written with you.
谢谢作者,我非常需要这个映射代码,我的邮箱是:l870572761@gmail.com
Why the dataset's labels are all black?