A cutting edge model for anime character gender classification.
Update: Our new models ARE ALREADY RELEASE, with supreme performance, a brand new technique called transgressivability, and a wide range of model choices. To get the latest release, you can follow us and like this repo.
๐๐๐๐๐ Updated Models: https://huggingface.co/DOFOFFICIAL/animeGender-dvgg-0.8.
Modification: This model, animeGender-dvgg-0.7, uses all weights from the convolutional neural network of the original vgg-16 model released by an Oxford team, but has changed the network structure of the last sequantials, say, the dense layers, which means we have modified it into a binary classification model with two nodes (activated by a softmax layer) output the possibility of each gender, namely female, and male. Note that although the overall network structure, particularly the convolutional neural layers have been left untrained, in the future, we have planned to deeply modify this base model, vgg16, to achieve a higher score and precision in this classification task.
Input: While the original model vgg-16 has been designed with an input with 224 * 224 in terms of resolution, and 3 dementions in RGB colorspace, in our model animeGender-dvgg-0.7, we aim to only use 64 * 64 with RGB colorspace only, as the classification task is not too tough. Please note when feeding a picture into the model, please ensure that the input illustration only consists of the head and face of the character you want to identify, in order to make the result from the model most precise and reliable. Moreover, we have designed some Python functions in our open source codes to help you resize, crop, and transform your pictures into 64 * 64 RGB ones, and more information is available in the file folder.
Output: This model, animeGender-dvgg-0.7, has an original output with a one-dim tensor, which length is 2, respectively shows the possibilities of each result of your input, namely female and male. In our open source usage example, see in the file folder, we have conveniently transformed the raw output into a readable result, for example, "male", with a numerical number showing the possibility, or the confidence. Note that our model does not have the background knowledge of a certain character, or the context of an animation, so some gender-neutral characters may still be misclassified, or correctly matched but with a confidence that is around 0.5.
Checkpoint: We have provided the final and proposal model with the name "animeGender-dvgg-0.7", however, to satisfy some further requirements, for example, research, we have provided checkpoints on process, while they have been proved to have an inferior capability compared to the proposed model. More models available, please see the file folder.
[Pic 0]
[Pic 0] This is female with a confidence of 0.991.
[Pic 1]
[Pic 1] This is female with a confidence of 0.994.
[Pic 2]
[Pic 2] This is male with a confidence of 0.604.
[Pic 3]
[Pic 3] This is male with a confidence of 0.671.
[Pic 4]
[Pic 4] This is female with a confidence of 0.886.
[Pic 5]
[Pic 5] This is female with a confidence of 0.998.
[Pic 6]
[Pic 6] This is female with a confidence of 1.0.
[Pic 7]
[Pic 7] This is female with a confidence of 0.997.
Yours,
Team DOF Studio, July 6th, 2023.
113 commits
8 commits
A cutting edge model for anime character gender classification.
Update: Our new models ARE ALREADY RELEASE, with supreme performance, a brand new technique called transgressivability, and a wide range of model choices. To get the latest release, you can follow us and like this repo.
๐๐๐๐๐ Updated Models: https://huggingface.co/DOFOFFICIAL/animeGender-dvgg-0.8.
Modification: This model, animeGender-dvgg-0.7, uses all weights from the convolutional neural network of the original vgg-16 model released by an Oxford team, but has changed the network structure of the last sequantials, say, the dense layers, which means we have modified it into a binary classification model with two nodes (activated by a softmax layer) output the possibility of each gender, namely female, and male. Note that although the overall network structure, particularly the convolutional neural layers have been left untrained, in the future, we have planned to deeply modify this base model, vgg16, to achieve a higher score and precision in this classification task.
Input: While the original model vgg-16 has been designed with an input with 224 * 224 in terms of resolution, and 3 dementions in RGB colorspace, in our model animeGender-dvgg-0.7, we aim to only use 64 * 64 with RGB colorspace only, as the classification task is not too tough. Please note when feeding a picture into the model, please ensure that the input illustration only consists of the head and face of the character you want to identify, in order to make the result from the model most precise and reliable. Moreover, we have designed some Python functions in our open source codes to help you resize, crop, and transform your pictures into 64 * 64 RGB ones, and more information is available in the file folder.
Output: This model, animeGender-dvgg-0.7, has an original output with a one-dim tensor, which length is 2, respectively shows the possibilities of each result of your input, namely female and male. In our open source usage example, see in the file folder, we have conveniently transformed the raw output into a readable result, for example, "male", with a numerical number showing the possibility, or the confidence. Note that our model does not have the background knowledge of a certain character, or the context of an animation, so some gender-neutral characters may still be misclassified, or correctly matched but with a confidence that is around 0.5.
Checkpoint: We have provided the final and proposal model with the name "animeGender-dvgg-0.7", however, to satisfy some further requirements, for example, research, we have provided checkpoints on process, while they have been proved to have an inferior capability compared to the proposed model. More models available, please see the file folder.
[Pic 0]
[Pic 0] This is female with a confidence of 0.991.
[Pic 1]
[Pic 1] This is female with a confidence of 0.994.
[Pic 2]
[Pic 2] This is male with a confidence of 0.604.
[Pic 3]
[Pic 3] This is male with a confidence of 0.671.
[Pic 4]
[Pic 4] This is female with a confidence of 0.886.
[Pic 5]
[Pic 5] This is female with a confidence of 0.998.
[Pic 6]
[Pic 6] This is female with a confidence of 1.0.
[Pic 7]
[Pic 7] This is female with a confidence of 0.997.
Yours,
Team DOF Studio, July 6th, 2023.
113 commits
8 commits