2021年7月25日
摘要: enumerate()说明enumerate()是python的内置函数enumerate在字典上是枚举、列举的意思对于一个可迭代的(iterable)/可遍历的对象(如列表、字符串),enumerate将其组成一个索引序列,利用它可以同时获得索引和值enumerate多用于在for循环中得到计数例 阅读全文
posted @ 2021-07-25 22:49 swxj 阅读(299) 评论(0) 推荐(0) 编辑
  2021年4月23日
摘要: 问题产生的原因:无法执行sess.run()的原因是tensorflow版本不同导致的,tensorflow版本2.0无法兼容版本1.0.解决办法:tf.compat.v1.disable_eager_execution() import tensorflow as tftf.compat.v1.d 阅读全文
posted @ 2021-04-23 22:55 swxj 阅读(248) 评论(0) 推荐(0) 编辑
  2021年2月16日
摘要: not与逻辑判断句if连用,代表not后面的表达式为False的时候,执行冒号后面的语句。比如:a = Falseif not a: (这里因为a是False,所以not a就是True) print "hello" 这里就能够输出结果hello a = None同理 原文链接:https://bl 阅读全文
posted @ 2021-02-16 22:46 swxj 阅读(4309) 评论(0) 推荐(0) 编辑
  2020年11月19日
摘要: Dreamweaver CC 2018/64位下载地址: 链接: https://pan.baidu.com/s/1nwavvOwgB6F13YKP4qDiRQ 密码: bhpa 安装步骤: 1、右击软件压缩包选择解压到“Adobe Dreamweaver CC 2018 x64”。2、双击打开“S 阅读全文
posted @ 2020-11-19 14:34 swxj 阅读(777) 评论(0) 推荐(0) 编辑
  2020年11月1日
摘要: cuda,cudnn,tensorflow安装之后调用tf.test.is_gpu_available()之后出现false的解决方案 这里一定要安装对应的cuda,cudnn,tensorflow版本,如果版本不匹配就极有可能报错。 cuda 10.0 cudnn7.4.2 tensorflow- 阅读全文
posted @ 2020-11-01 21:53 swxj 阅读(4818) 评论(0) 推荐(0) 编辑
摘要: 问题描述 Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found Ignore above cudart dlerror if you do not have a GPU set u 阅读全文
posted @ 2020-11-01 21:49 swxj 阅读(6415) 评论(0) 推荐(0) 编辑
  2020年10月25日
摘要: 1 致谢 感谢网友123储蓉蓉go提供的帮助 链接如下: https://jingyan.baidu.com/article/b24f6c821a2f8b86bfe5da19.html 2 问题描述 在学习目标检测的时候需要安装CUDA 不过因为编译器版本的原因 就把VS2015换回了VS2013 阅读全文
posted @ 2020-10-25 11:52 swxj 阅读(2885) 评论(0) 推荐(0) 编辑
  2020年10月24日
摘要: 1.代码报错环境: Windows 10 + Python 3.7 2.整体代码: ImportError: Could not find the DLL(s) 'msvcp140_1.dll'. TensorFlow requires that these DLLs be installed in 阅读全文
posted @ 2020-10-24 22:57 swxj 阅读(3489) 评论(0) 推荐(0) 编辑
  2020年10月19日
摘要: 【万能语法】如果以后遇到ERROR: Cannot uninstall [pacakage]. It is a distutils installed project...类似错误,就可以先使用pip install --ignore-installed [package]后,再装。 阅读全文
posted @ 2020-10-19 23:29 swxj 阅读(7272) 评论(0) 推荐(2) 编辑
  2018年4月22日
摘要: python借助pip安装第三方库,所以首先确保电脑上已成功安装了pip。 安装sklearn前需要先安装numpy、scipy和pandas等库。安装的方式有两种: 一、前往python的组件库页(https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy) 阅读全文
posted @ 2018-04-22 18:27 swxj 阅读(1081) 评论(0) 推荐(0) 编辑