Open delldu opened 3 years ago
I am glad you are interested in our work.
Thank you for your answer. I have a little question want to ask you. During the execution of Extract features orders, what is stored in the path/to/dataset is your cat.rar and city.rar or our own test data set,or empty folders, I have set up a path for path/to/dataset. I have set up a path for the path/to/dataset. I currently run directly to the python you give write_act. Py path/to/dataset - act_path path/to/activation - 0.95 - pca_path pca_rate path/to/pca - gpu gpu_id, path is one of my new folder, inside of a dataset, activation, pca is a new empty folder Are the activation files generated automatically during Extract features command run, I have downloaded the GMM - cat - pca95 - full7. PKL and pca95 - the PKL, should how to apply? Thank you very much!
Thank you I tried to run the Extract features" where i put your city.rar, in the path/to/dataset, but in the runtime prompt "“IsADirectoryError: [Errno 21] Is a directory: 'path/to/pca'”what kind of file should i put in the'path/to/pca'" Previously, I incorporated your cat.rar and city.rar into the path/to/dataset,it shows “ValueError: could not broadcast input array from shape (256,256,3) into shape (256)”,Why is that,Which data set should I put in at run time. So if I want to get the relevant scores for the coco data set dcgan generated,Should I put coco test data set or what data set in my path/to/dataset? Thank you very much for your reply.
Thank you I tried to run the Extract features" where i put your city.rar, in the path/to/dataset, but in the runtime prompt "“IsADirectoryError: [Errno 21] Is a directory: 'path/to/pca'”what kind of file should i put in the'path/to/pca'" Previously, I incorporated your cat.rar and city.rar into the path/to/dataset,it shows “ValueError: could not broadcast input array from shape (256,256,3) into shape (256)”,Why is that,Which data set should I put in at run time. So if I want to get the relevant scores for the coco data set dcgan generated,Should I put coco test data set or what data set in my path/to/dataset? Thank you very much for your reply.
Thank you for your help, but one problem I encountered during debugging “Extract features”is “ File "GIQA-master/write_act.py", line 67, in get_activations images = images.transpose((0, 3, 1, 2)) ValueError: axes don't match array” now my dataset is vg,I'm trying to turn the grayscale image into a three way,Still showing the same problem。What is the reason?How should I solve it? Thank you for your help
Thank you for your help, but one problem I encountered during debugging “Extract features”is “ File "GIQA-master/write_act.py", line 67, in get_activations images = images.transpose((0, 3, 1, 2)) ValueError: axes don't match array” now my dataset is vg,I'm trying to turn the grayscale image into a three way,Still showing the same problem。What is the reason?How should I solve it? Thank you for your help
I think it may be caused by the wrong image file. You may check and debug it yourself.
Thank you for your reply! So, I would like to ask, are all the photos in your dataset color images?Are there any restrictions on image data sets?
Thank you for your reply! So, I would like to ask, are all the photos in your dataset color images?Are there any restrictions on image data sets?
Only color images are ok. It's better to use enough data with enough resolution.
Thank you. I have removed all grayscale images,But when running : python write_act.py img/image --act_path activation/vg.pkl --pca_rate 0.95 --pca_path pca/pca95-cat.pkl --gpu 1 ,still showing error: File "write_act.py", line 70, in get_activations images = images.transpose((0, 3, 1, 2)) ValueError: axes don't match array What's the reason? I tried the online approach, all of which was to change the image to RGB,but there's still no solution. Thank you very much for your reply。
This is the shape of some of the pictures I listed, all three channels.my environment is my environment。 (375, 500, 3) (427, 640, 3) (640, 425, 3) (640, 427, 3) (427, 640, 3) (640, 424, 3) (375, 500, 3) (423, 640, 3) (480, 640, 3) (480, 640, 3) (640, 426, 3) (640, 419, 3) (640, 640, 3)
If your images are not in the same size, you need to resize them to the same size, then the error will be fixed.
If your images are not in the same size, you need to resize them to the same size, then the error will be fixed.
And also, for building GMM model or just using KNN-GIQA, the number of images to get activation should not be too small, I am not sure what dataset you are trying to apply, but I think it should at least have 5000 images to get a good result.
Dear friend, We are interested in your work, but found it is hard to running source code. The key problems are: 1) What's your work environment: python version, sklearn version, pytorch version ? 2) Could you please give us command examples with your pkl files ? Thanks a lot and happy new year ! Best Regards,