Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in loading Pretrained Snapshot #8

Open
rswethashankar92 opened this issue Mar 18, 2020 · 7 comments
Open

Problem in loading Pretrained Snapshot #8

rswethashankar92 opened this issue Mar 18, 2020 · 7 comments

Comments

@rswethashankar92
Copy link

Hi, I tried to execute demo_AU_RCNN.py, where there is a code to load the pre-trained snapshot using chainers, I end up getting an error,

File "demo_AU_rcnn.py", line 28, in init
first_fc_weight = weight_param['head/fc/W'] # shape = (1000, 2048)
File "/home/wse1kor/anaconda3/envs/leni/lib/python3.7/site-packages/numpy/lib/npyio.py", line 266, in getitem
raise KeyError("%s is not a file in the archive" % key)
KeyError: 'head/fc/W is not a file in the archive'

please help me out.

@rswethashankar92
Copy link
Author

Am i supposed to use the vgg16 pretrained model ?

@machanic
Copy link
Owner

@rswethashankar92 the demo is a visualization demonstration, Can you use python AU_rcnn/train.py --evaluate

@swetha-sree
Copy link

Hello @sharpstill using demo_AU_rcnn.py we can visualize the AU unit results?

@swetha-sree
Copy link

I am facing the same error, Can you help?

@machanic
Copy link
Owner

machanic commented Apr 26, 2020

@swetha-sree @rswethashankar92 @dev-srikanth I am hurry for preparing another paper these days, you probably need to provide more detail information? And I will answer you in about 1 month layer. You can fix the bug by yourself.

Alternatively, you can use AU_rcnn/train.py --evaluate to test F1 score, this demo is only to visualize the detection result on the face.

@apenzko
Copy link

apenzko commented Jun 26, 2020

I am facing the same issue.

@swetha-sree @rswethashankar92 did you find a way to resolve this?

@machanic
Copy link
Owner

Hi all, Thanks for helping each other, I will convert this code to a clean pytorch version.
I hope I can make it better to help you and easy to develop for its extension!
Do you have any idea or suggestion of current code? The bug & problem of the demo code will also be fixed then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants