CoOp icon indicating copy to clipboard operation
CoOp copied to clipboard

Running on Multi-label Classification

Open SZUHvern opened this issue 2 years ago • 1 comments

Dear Zhou, Thank you for sharing Dassl!

I encounter some problem when implementing 'coop' with multi-label classification. My label in One-hot presentation is like: [0,1,0,1,0,0,0,1], so how to define '_classnames' and '_lab2cname' in 'base_dataset.py'? I have already reshape my data like:{train:classname:[[name1],[name7]], impath: xxx, label: [0,1,0,0,0,0,0,1]} and feed it into 'Datum'

Do you have any good suggestions, or is it possible to update dassl to be compatible with multi-label tasks?

Many Thanks

SZUHvern avatar Aug 26 '22 04:08 SZUHvern

Have you solved the problem?Thanks

wj7486 avatar Mar 29 '23 02:03 wj7486