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

Discussion #3

Open
Deepa985 opened this issue Apr 20, 2022 · 1 comment
Open

Discussion #3

Deepa985 opened this issue Apr 20, 2022 · 1 comment

Comments

@Deepa985
Copy link

Hi, thank you for uploading the codes and datasets. Now I'm doing this project, but I'm facing some errors. Could you please help me in resolving the error?

55

56

57

@liuyiqing2018
Copy link
Owner

Thank you for your interest. It seems that you have used your own model, of which the structure may differ from the given one. So try to use the given pre-trained model first and see whether it works:
trained_model = torch.load('resnet18_0.9326.model')
and then you can try your own model. Note that your model should be the same structure as 'class Net', which has a few differences from the original ResNet18:

  1. Our model has no average pooling layer;
  2. The length of the input feature in the FC layer is 51222 to keep consistent with the input size (N, 3, 64, 64);
  3. The length of the output feature in the FC layer is 3 since the task is a three-class classification problem.

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