Tandon-A / emotic

PyTorch implementation of Emotic CNN methodology to recognize emotions in images using context information.
MIT License
134 stars 47 forks source link

When i set the mode as test or inference, server said:AttributeError: Can't get attribute 'Emotic' on <module '__main__' from 'main.py'>?How to solve this problem? #12

Closed RyanShun-511 closed 2 years ago

RyanShun-511 commented 2 years ago

when the command is 'python main.py --mode inference --inference_file .....' and 'python main.py --mode test --inference_file ....’. There is a problem,said:AttributeError: Can't get attribute 'Emotic' on <module 'main' from 'main.py'>.How can i solve this problem

RyanShun-511 commented 2 years ago

add "from emotic import Emotic" in main.py. I have solved this problem by this way.

Tandon-A commented 2 years ago

@RyanShun-511 Hello,

Thanks for the fix. I will update the code.

Regards, Abhishek