I am writing my Thesis about Machine Learning and for that purpose I am searching for Databases with Pictures. I have seen that some people just download pictures from Google Images with a script and there are a lot of tutorials how to do that. I know that some of those pictures have a copyright.
Am I allowed to use those pictures for my (non commercial) Thesis? Do I have to filter them by the license and look on every site the picture appears?