beckstev / MachineLearningSeminar

MachineLearningSeminar SS19 TU Dortmund
MIT License
0 stars 0 forks source link

Bug/use rgb #47

Closed FeGeyer closed 5 years ago

FeGeyer commented 5 years ago

Heureka, es ist gefixt!

Features:

Basically, one need to reshape the rescaled images, because cv.imread produces shapes like (240, 140 and not (240, 140, 1), which is requested by both transformation script and saving array.

To test: python hyper_tuning.py with various input NN. I also added some print orders, so that you can see how the shape changes. Feel free to delete them, if you are convinced that it works.

Attention: I did not change the input_shape of PreDogNN and PreBigDogNN, because we do not use hyper_tuning.py on them and i expect the grayscale images to be significantly worse to classify. So you will get an error, if you use hyper_tuning.py with this NNs.

I attached the input plot of grayscale images below.

subplot.pdf