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

AttrubuteError #47

Closed
tangwwwwww opened this issue Apr 13, 2022 · 4 comments
Closed

AttrubuteError #47

tangwwwwww opened this issue Apr 13, 2022 · 4 comments

Comments

@tangwwwwww
Copy link

I put the custom data set using the same data loader as Imagenet, and organize my data as: "imagenet"/{train or val}/class name/*.jpg
image

But this situation still appears, how should I solve it?
image

and there is the [isic.yaml.] setting.
isic.txt

@qianlanwyd
Copy link
Member

First please make sure the label ranges from 0 to N-1, where N is the number of classes

@tangwwwwww
Copy link
Author

First please make sure the label ranges from 0 to N-1, where N is the number of classes

Sorry, that might be a silly question.This is a 7 classification task, so I should set num_classes to 6?And I tried,It's still the same problem.

@qianlanwyd
Copy link
Member

qianlanwyd commented Apr 15, 2022

Num_classes should be set to 7. It’s better to rewrite codes for your own custom data. Sorry I can’t help you much for your own custom data now. We will upload some tutorials and documents for better understanding in a few months.

@tangwwwwww
Copy link
Author

Num_classes should be set to 7. It’s better to rewrite codes for your own custom data. Sorry I can’t help you much for your own custom data now. We will upload some tutorials and documents for better understanding in a few months.

Num_classes should be set to 7. It’s better to rewrite codes for your own custom data. Sorry I can’t help you much for your own custom data now. We will upload some tutorials and documents for better understanding in a few months.

thank you.

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