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

About how to change the trained model #106

Open
Lin-plax opened this issue Nov 21, 2022 · 0 comments
Open

About how to change the trained model #106

Lin-plax opened this issue Nov 21, 2022 · 0 comments

Comments

@Lin-plax
Copy link

I have trained the vggface_48w in this project with the resnet18. And it is OK, the accruacy can be 90%.
BUT when I try to change the model, such as the resnet18 in PytorchVision. The accruacy is been to 0 ALLWAYS. EVEN 0.0125 it NOT.

Now, I have try to find the problem. I noticed something:

  1. I remove the metrics.py in the train.py, then the accruacy is not 0 all the time(even it is 0.2~0.3).
  2. If i only changed the num_classes from 13938 into 1333 in the cofig.py, the network will be OK, and the accruacy is appear.

I really not konw where is the problem. And I really want to know the answer.
Thanks for your reading.

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

1 participant