Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running on Multi-label Classification #36

Open
SZUHvern opened this issue Aug 26, 2022 · 1 comment
Open

Running on Multi-label Classification #36

SZUHvern opened this issue Aug 26, 2022 · 1 comment

Comments

@SZUHvern
Copy link

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

@wj7486
Copy link

wj7486 commented Mar 29, 2023

Have you solved the problem?Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants