tensorflow
Jennifer233
IT程序媛小硕硕
展开
-
IMPORTANT: You may need to close and restart your shell after running ‘conda init‘.
【代码】IMPORTANT: You may need to close and restart your shell after running 'conda init'.原创 2023-01-09 09:13:48 · 1405 阅读 · 0 评论 -
【激动人心】ubuntu+tensorflow-gpu15.0+cudatoolkit10.0安装
ubuntu环境下利用anaconda 安装 tensorflow原创 2022-06-21 11:05:30 · 1226 阅读 · 0 评论 -
win10+anaconda虚拟环境安装tensorflow-gpu坑
避坑,安装了太多次,太坑了*********************************************************************************************************安装anaconda3.5.2,版本稳定,python3.6.5之前别的版本python3.6.1,各种问题,后来才知道浪费了很多时间创建虚拟环境,然后激活虚拟环境直接安装:conda install tensorflow==1.14.0然后直接安装c原创 2021-08-25 10:26:40 · 857 阅读 · 1 评论 -
测试tensorflow-gpu是否安装成功
>>> import tensorflow as tf>>> tf.test.is_gpu_available()结果如下:(tf14) C:\Users\Administrator>pythonPython 3.6.13 |Anaconda, Inc.| (default, Mar 16 2021, 11:37:27) [MSC v.1916 64 bit (AMD64)] on win32Type "help", "copyright"...原创 2021-08-04 16:46:55 · 6468 阅读 · 1 评论 -
图像通道转换[n c h w] 转 [n h w c]
Tensorflow定义的tensor的shape为[n,h,w,c],而我们直接读取文件格式是[n,c,h,w],为了转成[n,h,w,c]形势,可以采用三种方法:img = np.transpose(img, (0, 2, 3, 1))img = img.reshape(img.shape[0],img.shape[2],img.shape[3],img.shape[1])...原创 2018-10-11 17:16:54 · 17621 阅读 · 1 评论