上一页 1 2 3 4 5 6 ··· 28 下一页
摘要: 通过shape得到h,w, resize时先传入w。 h,w,depth=img.shapeimg=cv2.resize(img,(int(w/2),int(h/2)),interpolation=cv2.INTER_AREA) 扫码关注 实用AI客栈 获取最... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(81) 评论(0) 推荐(0)
摘要: #include #include #include #include char *dirname="/path/";DIR *dirfile;dirfiles=opendir(dirname);struct dirent *dir;while((dir =... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(385) 评论(0) 推荐(0)
摘要: 1.下载tensorflow官方代码 git clone --recurse-submodules https://github.com/tensorflow/tensorflow.git 2.下载Android SDK和Android NDK Androi... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(45) 评论(0) 推荐(0)
摘要: 解决方法: sudo rm /var/lib/apt/lists/* -vfsudo apt-get update 之后执行 sudo apt-get upgrade 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(48) 评论(0) 推荐(0)
摘要: 1.先卸载之前的版本 sudo pip3 uninstall tensorflow-gpu 2.安装新的tf sudo pip3 install tensorflow-gpu==1.3 3.tensorflow1.3需要CUDA8.0和cudnn6.0,因... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(61) 评论(0) 推荐(0)
摘要: 1.安装最新版tf--tensorflow1.5,gpu版本需要CUDA8和cudnn6,命令如下 GPU版:sudo pip3 install tf-nightly-gpu CPU版:sudo pip3 install tf-nightly 对应pip网... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(52) 评论(0) 推荐(0)
摘要: tf.constant需要用numpy array进行初始化,不能用tf自己的函数返回值,也就是tensor进行初始化赋值。 import tensorflow as tf import numpy as np arr=np.array([[1,2,3],[4... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(95) 评论(0) 推荐(0)
摘要: python中对文件、文件夹的操作需要涉及到os模块和shutil模块。 创建文件: 1) os.mknod("test.txt") 创建空文件 2) open("test.txt",w) 直接打开一个文件,如果文件不存在则创建文件 创建目... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(82) 评论(0) 推荐(0)
摘要: 安装pyTorch时,按照官网的命令进行安装 pip3 install http://download.pytorch.org/wh... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(332) 评论(0) 推荐(0)
摘要: $ sudo rm /var/lib/apt/lists/* -vf $ sudo apt-get update 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(18) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 28 下一页