GIQA icon indicating copy to clipboard operation
GIQA copied to clipboard

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

Open JennyVanessa opened this issue 2 years ago • 1 comments

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

JennyVanessa avatar Nov 26 '22 11:11 JennyVanessa

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.

cientgu avatar Nov 28 '22 07:11 cientgu