若需要一次性创建大量文件夹,或txt、word、ppt,批处理(.bat)语言无疑是一种便捷的方法,下面介绍利用.bat批量创建文件的方法: 1、批量创建文件夹 创建一个名为AAA的文件可用代码 MD AAA 若需要创建多个文件,输入多行代码即可,可借助excel快速实现 2、批量创建txt 创建一 Read More
posted @ 2020-01-02 21:28 阿音ayin Views(2005) Comments(0) Diggs(0) Edit
打开Tensorboard: 1、指定文件读取路径 程序运行完后在cmd 运行栏输入TensorBoard –logdir=’graph文件所在的文件夹的路径’, 为简化输入路径,可直接在该文件夹所在的文件夹中启动cmd. 2、使用浏览器访问localhost 在浏览器中输入http://local Read More
posted @ 2019-06-15 15:50 阿音ayin Views(284) Comments(0) Diggs(0) Edit
问 题:直接载入TensorBoard 总是提示No dashboard are active for current data set.根本不显示计算图。 原 因:文件路径问题,TensorBoard 未读取到文件数据,自然无法显示结果。 解决方法:设置文件路径。 程序运行完后在cmd 运行栏输入 Read More
posted @ 2019-06-15 15:31 阿音ayin Views(1505) Comments(0) Diggs(0) Edit
问 题:使用Tensorboard 进行数据可视化时,需要通过浏览器访问localhost 来调出,然而,一开始的时候总是提示localhost 拒绝了服务请求。 原 因:自己的电脑未设置好 解决方法: 1.首先查看 控制面板\系统和安全\管理工具 中有无Internet信息服务(IIS)管理器 若 Read More
posted @ 2019-06-15 15:23 阿音ayin Views(11392) Comments(0) Diggs(0) Edit
说明:训练模型,保存相关参数,以便在以后验证时直接输入验证数据集即可得到模型模拟结果。 主要参考了官方教程和博客 https://www.cnblogs.com/hejunlin1992/p/7767912.html 1、 模型存储 mymodel.meta 保存完整Tensorflow graph Read More
posted @ 2019-06-15 15:12 阿音ayin Views(911) Comments(0) Diggs(0) Edit
简单说明: 在待打包文件的文件夹【shift+右键】打开命令行窗口,输入 pyinstaller -F xxx.py 即可。 打包后的exe文件出现在 dist 文件夹中。 详细说明: cmd 进入到需要打包的py文件所在路径 eg:cd d:\abc 输入:(注意是双减号) pyinstaller Read More
posted @ 2019-06-15 14:33 阿音ayin Views(417) Comments(0) Diggs(0) Edit
系统:win7 Python 3.6 安装方法:直接使用pip3 安装 官网上有详细的要求及安装方法:https://tensorflow.google.cn/install/gpu 首先,我们可以看到安装GPU版需要电脑软硬件满足一定的条件,即需要首先安装CUDA和cudnn, 这个直接点击蓝色的 Read More
posted @ 2019-06-14 14:22 阿音ayin Views(8196) Comments(0) Diggs(0) Edit
环境介绍:windows 7, python3.6 1、在python 官网下载所需python 版本: https://www.python.org/downloads/ 笔者选用的是的python3.6.5 (Windows 64 位) 2、安装python. 直接点击下载下来的exe文件,按照 Read More
posted @ 2019-06-14 14:09 阿音ayin Views(590) Comments(0) Diggs(0) Edit
获取一个文件夹中的所有文件名 Read More
posted @ 2019-04-19 21:22 阿音ayin Views(851) Comments(0) Diggs(0) Edit
将一个txt 文档中含指定字符串内容的所有行提取出来并保存至新的txt文档中 Read More
posted @ 2019-04-19 20:52 阿音ayin Views(4455) Comments(0) Diggs(0) Edit