查看kaggle的配置版本
!nvidia-smi
查看tensorflow或者keras版本
keras.__version__
tensorflow.__version__
安装其他版本的tensorflow和keras
!pip install q keras==2.3.1
!pip install q tensorflow==2.1.0
cannot import name 'Adam' from 'keras.optimizers' (/opt/conda/lib/python3.7/
修改为:from tensorflow.keras.optimizers import Adam
kaggle联网(pip/wget)
由于kaggle单独运行在其内核中,所以无法联网,没有办法搜寻网络中的模型。
左上角 add-ones->Google Cloud Services( also you can choose other functions of the Google cloud and paste the code to your kaggle)
需要登陆谷歌账号,且翻墙才能等谷歌账号
如果不使用ImageNet预训练
from keras.applications import vgg16, inception_v3, resnet50, mobilene