怎样在jupyter中显示图片
from matplotlib.pyplot import imshow
import numpy as np
from PIL import Image
%matplotlib inline
pil_im = Image.open('data/empire.jpg', 'r').convert('RGB')
imshow(np.asarray(pil_im))
怎样在jupyter中使用多个conda环境
conda create -n keras2_py3 python=3.6
pip install ipykernel
python -m ipykernel install --user --name keras2_py3 --display-name 'keras2_py3'
# remove
conda remove -n 'name' --all
Error : Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
import tensorflow as tf
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
tf.keras.backend.set_session(tf.Session(config=config))
theano配置
in case you passed the