-
Notifications
You must be signed in to change notification settings - Fork 459
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
Question about model_type, num_classes,image size ? #43
Comments
In addition, I test it like "python test.py". The follow error occurred. Traceback (most recent call last): What is the root cause of error? Help me . |
i get the same error. |
1.We provide four model definitions. |
I am getting the same error. after doing the training i am usingthe resulting 2020-12-03-17-48_Anti_Spoofing_2.7_80x80_model_iter-575.pth after renaming it to 2.7_80x80_MiniFASNetV2SE.pth (the same MiniFASNet use in default training code). |
Same error, using MiniFASNetV2SE modified classes=2, got Missing key(s) in state_dict: |
@bit2001 Hello |
Hi,
First, thanks for your excellent product.
I am currently testing your ant-spoofing program.
There are some question.
What is the role of "model_type"(MiniFASNetV1/MiniFASNetV2/MiniFASNetV1SE/MiniFASNetV2SE) ?
There is only 4 items or can be added ?
What is the role of "num_classes" ?
There is 3 or 4 in your source ...
the 3 or 4 means "0" , "1", "2" ?
├── datasets
└── RGB_Images
├── org_1_80x60
├── 0
├── 1
└── 2
What is the meaning 0/1/2 respectively ?
If I want to 2 kind of classes(Real Face , Fake Face) , I can change 3 or 4 to 2 in your source ?
I want to train the 2 kind images(Real Face / Fake Face)
3.1) I can compose dataset like below ?
It is reasonable ?
├── datasets
└── RGB_Images
├── 1_230x230
├── Real
├── RealFace1.jpg
├── ....
└── Fake
├── FakeFace1.jpg
├── FakeFace2.jpg
├── ...
3.2) after finishing training, how do I name the output => snapshot .pth and copy it to "Silent-Face-Anti-Spoofing-master\resources\anti_spoof_models"
Do I name it as "1_80x80_MiniFASNetV2.pth" or another name or "1_230x230_MiniFASNetV2.pth" or new what ?
Of course , I anlayzed your source but it is a little bit confusing .
Thanks in Advance
The text was updated successfully, but these errors were encountered: