emo_class_csc871 / models /nipun_model.py
jasonsfmeitian's picture
Update models/nipun_model.py
4dba6a4 verified
raw
history blame contribute delete
323 Bytes
import torch.nn as nn
from facenet_pytorch import InceptionResnetV1
def get_nipun_model():
model = InceptionResnetV1(pretrained='vggface2', classify=True, num_classes=7)
# Match Nipun's structure - he wrapped logits in Sequential
model.logits = nn.Sequential(
nn.Linear(512, 7)
)
return model