DALI icon indicating copy to clipboard operation
DALI copied to clipboard

How to read image data with multi-class label with function fn.readers.file?

Open MoonBunnyZZZ opened this issue 1 year ago • 2 comments

I have a multiclass task.Every image has more than one class index. How to read the data with function fn.readers.file?It seems like that the function only support single label per image.Am I right?

MoonBunnyZZZ avatar Sep 06 '24 08:09 MoonBunnyZZZ

Hi @MoonBunnyZZZ,

Thank you for reaching out. In your case, the most flexible approach would be to use the external source operator, which allows you to return any number of outputs (images and labels).

JanuszL avatar Sep 06 '24 09:09 JanuszL

Hi @MoonBunnyZZZ,

Thank you for reaching out. In your case, the most flexible approach would be to use the external source operator, which allows you to return any number of outputs (images and labels).

@JanuszL Thank you foryour answer.If using th external source operator,the speed may be slow than readers.file function?

MoonBunnyZZZ avatar Sep 06 '24 09:09 MoonBunnyZZZ