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

data_dict['X2'] = np.concatenate((data_dict['X2'], np.load(DATASET.train_folder + '/hog_features.npy')), axis=1) #29

Open
yangqian-qian opened this issue Jul 23, 2020 · 15 comments

Comments

@yangqian-qian
Copy link

when i did 'python train.py --train=yes', code 'data_dict['X2'] = np.concatenate((data_dict['X2'], np.load(DATASET.train_folder + '/hog_features.npy')), axis=1)' from data_loader.py reprted a error, which is 'numpy.AxisError: axis 1 is out of bounds for array of dimension 1' ,i do not know how to correct it, i tried to amend axis=1 to axis=0, well , code 'return X[start]'
from utils.py showed me a new error ,which is 'index 9006 is out of bounds for axis 0 with size 0'
anyway, i want to ask Did anyone run this code successfully,and how should i correct my code, thanks.

@yuerunyu
Copy link

when i did 'python train.py --train=yes', code 'data_dict['X2'] = np.concatenate((data_dict['X2'], np.load(DATASET.train_folder + '/hog_features.npy')), axis=1)' from data_loader.py reprted a error, which is 'numpy.AxisError: axis 1 is out of bounds for array of dimension 1' ,i do not know how to correct it, i tried to amend axis=1 to axis=0, well , code 'return X[start]'
from utils.py showed me a new error ,which is 'index 9006 is out of bounds for axis 0 with size 0'
anyway, i want to ask Did anyone run this code successfully,and how should i correct my code, thanks.

Hi,you can check convert_fer2013_to_images_and_landmarks.py,modify "visualise" to "visualize".Then you will get correct landmarks.npy and hog_features.npy.and run"python train.py --train=yes",it will works!

@yangqian-qian
Copy link
Author

yangqian-qian commented Aug 13, 2020 via email

@izhimahu
Copy link

convert_fer2013_to_images_and_landmarks.py,modify "visualise" to "visualize.I tried that but it didn't work.Could you tell me how to change it

@yangqian-qian
Copy link
Author

yangqian-qian commented Dec 17, 2020 via email

@viitormiiguel
Copy link

Hello, I have the same issue, even adjusting the code. This problem may also be because the landmarks.npy file is empty.

@aj7521
Copy link

aj7521 commented Jan 24, 2021

Did anyone resolve this issue? I am still getting File "C:\Users\WELCOME\Desktop\FYP\data_loader.py", line 20, in load_data
data_dict['X2'] = np.concatenate((data_dict['X2'], np.load(DATASET.train_folder + '/hog_features.npy')), axis=1)
File "<array_function internals>", line 6, in concatenate. ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 20993 and the array at index 1 has size 3438.

@18117281Ao
Copy link

我不仅更改了一个代码,还更改了几个代码。我可以给你我修改后的代码,希望它能帮助你
...
------------------ 原始邮件 ------------------ 发件人 <[email protected]:发送时间: 2020年12月16日(星期三) 下午3:22 收件人: "amineHorseman/face-expression-recognition-using-cnn"[email protected];抄送: "阳倩"[email protected];手册"[email protected];主题: 回复: [amineHorseman/facial-expression-recognition-using-cnn] data_dict['X2'] = np.concatenate(((data_dict['X2'], np.load(DATASET.train_folder + '/hog_features.npy')), axis=1) (#29) convert_fer2013_to_images_and_landmarks.py,修改 "visualise" to "visualize.我试过了,但它不起作用。你能告诉我如何改变它吗 - 你收到这个,因为你订阅了这个线程。直接回复此电子邮件,在 GitHub 上查看或取消订阅。

Hello, can you send me a copy of the code you modified? My email address [email protected]

@ou1443989517
Copy link

我不仅改了一个代码,还改了几个代码。我可以给你我修改过的代码,希望对你有帮助

------------------ 原始邮件 ------------------ 发件人:“amineHorseman/facial -expression-recognition-using-cnn" [email protected]; 时间 2000 年 12 月 16 日发送睡眠 (sp) 下午 2:22 月 16 日下午 3;"使用面部胺法&n&n" github.com>; 抄送: "yangqian"[email protected];"Manual"[email protected]; 主题: Re: [amineHorseman/facial-expression-recognition-using-cnn] data_dict['X2'] = np.concatenate((data_dict['X2'], np.load(DATASET.) convert_fer2013_to_images_and_landmarks.py,将“visualise”修改为“visualize”。我试过了,但没用。你能告诉我如何更改它吗?你收到这个是因为你订阅了这个线程。直接回复这封电子邮件,在 GitHub 上查看,或取消订阅。

can you send me a copy?thanks mail:[email protected]

@ka0614
Copy link

ka0614 commented Oct 22, 2022

I didn't just change one code, but also changed several codes. I can give you my modified code, hope it will help you

------------------ 原始邮件 ------------------ 发件人: "amineHorseman/facial-expression-recognition-using-cnn" <[email protected]>; 发送时间: 2020年12月16日(星期三) 下午3:22 收件人: "amineHorseman/facial-expression-recognition-using-cnn"<[email protected]>; 抄送: "yangqian"<[email protected]>;"Manual"<[email protected]>; 主题: Re: [amineHorseman/facial-expression-recognition-using-cnn] data_dict['X2'] = np.concatenate((data_dict['X2'], np.load(DATASET.train_folder + '/hog_features.npy')), axis=1) (#29) convert_fer2013_to_images_and_landmarks.py,modify "visualise" to "visualize.I tried that but it didn't work.Could you tell me how to change it — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Hello, I changed "visualise" to "visualize but got an error. Can you send me a copy of the code you modified? My email address is [email protected]

@fyhfyhfyh123456
Copy link

You have solved this problem, and I have encountered the same problem as you. I really need your modification opinions. Thank you very much.

@fyhfyhfyh123456
Copy link

My email is [email protected]. Thanks again

@ou1443989517
Copy link

ou1443989517 commented Feb 17, 2023 via email

@fyhfyhfyh123456
Copy link

Sorry, I have lost this code

------------------ 原始邮件 ------------------ 发件人: "amineHorseman/facial-expression-recognition-using-cnn" @.>; 发送时间: 2023年2月17日(星期五) 晚上7:24 @.>; @.@.>; 主题: Re: [amineHorseman/facial-expression-recognition-using-cnn] data_dict['X2'] = np.concatenate((data_dict['X2'], np.load(DATASET.train_folder + '/hog_features.npy')), axis=1) (#29) You have solved this problem, and I have encountered the same problem as you. I really need your modification opinions. Thank you very much. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
thank you

@fyhfyhfyh123456
Copy link

I didn't just change one code, but also changed several codes. I can give you my modified code, hope it will help you

You have solved this problem, and I have encountered the same problem as you. I really need your modification opinions. Thank you very much.My email is [email protected].

@shangguanwt
Copy link

我不仅更改了一个代码,还更改了几个代码。我可以给你我修改后的代码,希望对你有帮助
...
------------------原始邮件------------------ 发件人: “胺骑士/面部表情识别使用-CNN” [email protected]; 发送时间: 2020年12月16日(星期三) 下午3:22 收件人: ”amineHorseman/面部表情识别-使用-CNN“<面部表情识别-使用[email protected]>; 抄送: ”杨前“[email protected];”手册“[email protected]; 主题: 回复: [amineHorseman/facial-expression-recognition-using-cnn] data_dict['X2'] = np.concatenate((data_dict['X2'], np.load(DATASET.train_folder + '/hog_features.npy')), axis=1) (#29) convert_fer2013_to_images_and_landmarks.py,将“可视化”修改为“可视化”。我试过了,但没有用。你能告诉我如何改变它吗 — 您收到此消息是因为您订阅了此线程。 直接回复此电子邮件,在 GitHub 上查看或取消订阅。

You have solved this problem, and I have encountered the same problem as you. I really need your modification opinions. Thank you very much.My email is [email protected]

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

10 participants