idealo / image-quality-assessment

Convolutional Neural Networks to predict the aesthetic and technical quality of images.
https://idealo.github.io/image-quality-assessment/
Apache License 2.0
2.07k stars 447 forks source link

Issue with saving output of predictions. #72

Open alinpreda2694 opened 4 years ago

alinpreda2694 commented 4 years ago

Hello, I am having trouble using your script to write the output of the predictions as JSON. I get no errors, but nothing is saved. Could you show me an example of how exactly this is supposed to be done? Thank you"

tongqingzhou-nudt commented 4 years ago

Few tips I think may help: 1.Specify your target file and src file name in the command; 2.Run the script in the root directory so it can access the src dir. 3.Check the data format to find if there is sth wrong when reading the csv using 'read_csv'. 4.The script is not complex, you can debugging to find what's wrong in getting the distribution.

Karenou commented 2 years ago

Hi, I also have the same problem of saving the output as json file. I add the argument of --predictions-file in both the bash file, predict file and entrypoint.predict.cpu.sh, but still nothing is saved. May I know if you could show an example? Many thanks!

aleenprd commented 2 years ago

Oh, hey. It's been a while since I used that. Well, I can only say that the docker image runs fine on Ubuntu or or Mac but not Windows, which, ai think is what you are also using. I remember fixing the windows as well but don't remember what I did. If I am not mistaken you can go through the Dockerfile or some other config and change some path slashes accordingly.