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

ValueError: Expected the input data X have 774 features, but got 38 features #13

Open
JennyVanessa opened this issue Nov 26, 2022 · 1 comment

Comments

@JennyVanessa
Copy link

Dear authors,
I am interested in your work and I want to test it, but i meet this error:

ValueError: Expected the input data X have 774 features, but got 38 features

I run the "get the GMM-GIQA score" command only, like this

python gmm_score.py test/test_images --gmm_path checkpoints/gmm-cat-pca95-full7.pkl --pca_path checkpoints/pca95-cat.pkl --output_file test/output/output.txt --gpu 0

and I thought it maybe was the problem of PCA model that you provided, which reducing the 2048-dimensions to 38 dimensions.

:) looking forward to your reply. thx

@cientgu
Copy link
Owner

cientgu commented Nov 28, 2022

The PCA model do compress the information from 2048 channel to 774 channel, you may check if there's something wrong in the PCA model, or maybe your package version is not correct.

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