Description
Hi!
Is it possible to apply losses and optimizers, implemented in this library in the task of biometric identification?
Example:
We have a train set of photos of certain persons, all photos are geometrically transformed to the same size, and each photo has a label, denoting the person.
Here is the example of such dataset: https://www.kaggle.com/datasets/vasukipatel/face-recognition-dataset
Typical approach:
Train a classifier, based, say, on Resnet, then remove last linear layer and use other layers as feature detectors, like explained in this link: https://timm.fast.ai/create_model#Turn-any-model-into-a-feature-extractor
So, the question: is it possible to immediately remove last fully-connected layer and train feature extractor using losses and optimizers, implemented in this library?
I have tried to adopt the first example, Optimizing_AUROC_with_ResNet20_on_Imbalanced_CIFAR10, but have met errors, caused by mismatching shapes of tensors. After studying the papers, I have a doubt that this library would suit my needs.