Why model weights trained on google colab cannot perform locally as in colab
I solved this problem by changing tensorflow-gpu==2.2.0 to tensorflow==2.3.0, which is extactly the same as the version in google colab.
Recently I trained my model on google colab and saved weights in google drive automatically by ModelCheckPoint.
When I use these saved weights on google colab the prediction performs great, but when I download the weights and run them locally on my laptop, the prediction is extemely terrible.
The GPU of my laptop is GeForce RTX 1060 with Max-Q design 12GB. Could anyone tell me what leads to the different performance between my laptop and google colab?
By the way, I tried to save the whole model and then load it, the saving process runs smoothly but when I load model, there is a ValueError says "There is a cyclic-dependency between functions", still have no idea how to solve it.