bnsreenu / python_for_microscopists

https://www.youtube.com/channel/UC34rW-HtPJulxr5wp2Xa04w?sub_confirmation=1
MIT License
3.78k stars 2.35k forks source link

255_256_SRGAN - Conditionally set he image data format to channels_last #57

Open donatoaz opened 1 year ago

donatoaz commented 1 year ago

On my configuration with versions:

TF version: 2.10.0
Keras version: 2.10.0

I had to make this simple change in order to have this notebook work. Otherwise, creating the VGG19 model would fail indicating that the channel was incorrectly positioned.

I would even argue that perhaps this configuration should not be commented, but I'll leave it to you to decide. Let me know if I should change.