JLREx / PAtt-Lite

Official implementation for PAtt-Lite: Lightweight Patch and Attention MobileNet for Challenging Facial Expression Recognition
MIT License
33 stars 3 forks source link

Inquiry Regarding Environment Setup for PAtt-Lite Model #4

Closed HeeminYang closed 7 months ago

HeeminYang commented 8 months ago

Hello,

I hope this message finds you well. I am currently attempting to use the PAtt-Lite model that you have provided on your GitHub repository. However, I am encountering some difficulties in loading the model using Keras and TensorFlow.

Could you please provide some details about the environment in which the PAtt-Lite model was originally developed and saved? Specifically, I am interested in the following information:

The versions of Keras and TensorFlow used to create and save the model. The version of Python used in your virtual environment. This information would be extremely helpful for resolving compatibility issues I am facing. Below is the specific error message I am encountering:

ValueError: Layer 'conv1' expected 1 variables, but received 0 variables during loading. Expected: ['conv1/kernel:0']

MeneerAbel commented 7 months ago

I get the same error, so this would be nice indeed!

JLREx commented 7 months ago

Hi, we have replaced the saved model with a h5 version, this should load without issues. Regarding the environment and versions, we are using P100 GPU on the Kaggle platform. The model is saved with TensorFlow version 2.12.0 and Python version 3.10.12.

Hope this helps.

MeneerAbel commented 7 months ago

This indeed fixed it, thanks! I have another question. Can I assume the output of model.predict() is in the same order as the confusion matrices in your paper? So ['anger', 'disgust', 'fear', 'happiness', 'neutral', 'sadness', 'surprise']?

JLREx commented 7 months ago

Yes, the prediction is following this order.

HeeminYang commented 7 months ago

thank you for the providing information