Downloads · 30 days
3
4% of all-time downloads
yangtzentg/LNSU
LNSU is a machine learning model from yangtzentg. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for keras.
Pretrained checkpoints for the CS231 – Facial Expression Recognition Benchmark project.
Downloads · 30 days
3
4% of all-time downloads
All-time downloads
75
Public
Repo size
1.8 GB
Likes
0
Public
Click a slice to open those files.
.pt811 MB · 52%
From the Hugging Face model README
Pretrained checkpoints for the CS231 – Facial Expression Recognition Benchmark project.
CS231/
├── dataset/
│ ├── RAF/
│ └── list_patition_label.txt
│
├── methods/
│ ├── Advanced-FER-CNN/
│ ├── EfficientNetV2-S/
│ ├── hybrid-vit/
│ ├── LNSU/
│ └── ResNet18-Discriminative-loss/
└── README.md
best_cnn_model.h5
best_CNNModel.keras
Place either checkpoint inside:
methods/Advanced-FER-CNN/
├── best_cnn_model.h5
└── best_CNNModel.keras
best_checkpoint.pth
best_EfficientNetV2_RAFDB_rafdb.pth
methods/EfficientNetV2-S/
├── best_checkpoint.pth
└── best_EfficientNetV2_RAFDB_rafdb.pth
best_model.pth
methods/hybrid-vit/
└── best_model.pth
start_0.pt
checkpoint_step_59999_gpu_0.pt
methods/LNSU/
├── start_0.pt
└── results/
└── checkpoint_step_59999_gpu_0.pt
start_0.pt is the initialization checkpoint required by the training pipeline.
Training script:
cd methods/LNSU
./train_exp.sh
resnet18_msceleb.pth
Place into:
methods/ResNet18-Discriminative-loss/models/
MLP_Affinity_RAF_DB_Training.ipynb
The notebook reproduces all DAN experiments on RAF-DB.
rafdb_resnet18_mlp_pretrained_ce_affinity.pth
rafdb_resnet18_mlp_pretrained_ce.pth
rafdb_resnet18_mlp_random_ce_affinity.pth
rafdb_resnet18_mlp_random_ce.pth
methods/ResNet18-Discriminative-loss/
├── rafdb_resnet18_mlp_pretrained_ce_affinity.pth
├── rafdb_resnet18_mlp_pretrained_ce.pth
├── rafdb_resnet18_mlp_random_ce_affinity.pth
└── rafdb_resnet18_mlp_random_ce.pth
This repository does not redistribute RAF-DB.
Please obtain RAF-DB from the official source and place it in:
dataset/
├── RAF/
│ ├── train_00001.jpg
│ ├── train_00002.jpg
│ └── ...
└── list_patition_label.txt
The benchmark includes:
All methods are evaluated on RAF-DB using a unified project structure.