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

pickled data error #20

Closed
Mahdidrm opened this issue Nov 30, 2020 · 2 comments
Closed

pickled data error #20

Mahdidrm opened this issue Nov 30, 2020 · 2 comments

Comments

@Mahdidrm
Copy link

Hi @machanic
I really like this code and hope to have its Pytorch version.
Actually, I couldn't run it yet! I changed the addresses in config.py but I have errors on the needs!
like this one that drove me crazy :))

  File "D:\XAI\Code\AU_R-CNN-master\AU_rcnn\train.py", line 459, in <module>
    main()

  File "D:\XAI\Code\AU_R-CNN-master\AU_rcnn\train.py", line 202, in main
    extract_len=args.extract_len)  # 可改为/home/nco/face_expr/result/snapshot_model.npz

  File "D:/XAI/Code/AU_R-CNN-master\AU_rcnn\links\model\faster_rcnn\faster_rcnn_resnet101.py", line 119, in __init__
    mean_array = np.load(mean_file)

  File "C:\ProgramData\Anaconda3\envs\R-CNN\lib\site-packages\numpy\lib\npyio.py", line 444, in load
    raise ValueError("Cannot load file containing pickled data "

ValueError: Cannot load file containing pickled data when allow_pickle=False

Could you please guide me?

thanks

@machanic
Copy link
Owner

machanic commented Dec 1, 2020

Please put put the mean file into the hard disk. You can download the mean file (which includes the value of mean of all pixels colors of images) from : https://drive.google.com/open?id=1y-yjOPuo7OcXA_bbNIZ0bfmV72mOBXON

Then you can use --mean to specify the location of hard disk.
https://github.com/machanic/AU_R-CNN/blob/master/AU_rcnn/train.py#L129

@machanic
Copy link
Owner

machanic commented Dec 1, 2020

Also, you can refer to #18 for more information about mean file.

@machanic machanic closed this as completed Jan 8, 2021
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

2 participants