![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
日常总结
我是小蚂蚁
努力提高自己,加油。
展开
-
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148解决方法
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find HDF5: Found unsuitable version “”, but required is at least “1.8” (found HDF5_hdf...原创 2018-07-13 19:22:17 · 33271 阅读 · 5 评论 -
安装skimage出错的解决方法
前言今天在安装skimage的时候报出错误如下:ERROR: Complete output from command python setup.py egg_info: ERROR: Beginning with Matplotlib 3.1, Python 3.6 or above is required. This may be due to an o...原创 2019-06-08 09:15:15 · 14594 阅读 · 5 评论 -
ubuntu安装php7.0-curl方法
前言今天在使用php做个小项目的时候,报出了错误:PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /root/tts_php_demo.php:13这个问题还不简单么?明显是php的curl扩展没有启动起来呀,然而,我发现事情并没有我想象的那么简单。系统配置阿里云服务器系统版本:...原创 2019-06-09 22:08:05 · 3214 阅读 · 0 评论 -
InvalidArgumentError (see above for traceback): Assign requires shapes of both tensors to match. lhs
在使用tf-faster-rcnn进行模型测试的时候,运行 ./tool/demo.py 总报出以下错误:InvalidArgumentError (see above for traceback): Assign requires shapes of both tensors to match. lhs shape= [8] rhs shape= [84][[Node: save/Assi...原创 2019-05-13 15:17:00 · 1037 阅读 · 2 评论 -
使用PHP调用Python命令无法返回汉字字符串的解决方法
前言平时做深度学习的一些实验,都是使用的python语言。有时候想把自己做的一些小实验,改造成一个小应用,通过移动端或者浏览器端和用户进行交互。因为不太会使用python的一些诸如flask和django等Web应用框架,反而PHP使用的很熟练,所以我在做一些小功能小项目的时候,都是使用PHP语言作为接口,将服务端和移动端、浏览器端连接起来。具体操作流程是:发送请求调用系统命令结果结果客户端...原创 2019-05-23 08:34:26 · 1468 阅读 · 2 评论 -
FCHD: A fast and accurate head detector快速准确的人头检测代码预测出来的边界框位置不准确的解决方法
算法简介人头检测在视频监控中非常重要,而公交车、商场或者大型场馆的拥挤人群计数则是其重要应用场景。算法思想作者称拥挤人群计数目前主要有两种实现路径:1.使用回归的算法思路,直接根据图像回归出拥挤人群密度热图,它的缺点是只能得到场景整体的一个拥挤指数,不能获知人群个体的具体位置,而且这种方法对图像分辨率很敏感。2.使用目标检测的方法,比如直接使用Faster RCNN检测人,检测后数目标为...原创 2019-05-22 08:46:11 · 3975 阅读 · 24 评论 -
使用numpy实现LSTM和RNN网络的前向传播过程
前言学习到LSTM这里,着实花费了不少力气,查阅过各种文章,进行过各种冥想,最终收获也是很大,学到了不少好东西。因为LSTM和RNN这里确实要比其他神经网络复杂一些,于是就手写了一个LSTM和RNN的前向传播,了解其内部的运行逻辑。RNN的前向传播代码网上有现成的,而且也比较简单,这里只贴出来自己写的LSTM代码。LSTM前向传播俗话说:开局一张图,内容全靠编。简单的先阐述一下流程:...原创 2019-05-14 08:38:49 · 1199 阅读 · 5 评论 -
PIL将png的RGBA四通道改为jpg的RGB三通道方法
img.convert(“RGB”)原创 2019-01-02 15:36:52 · 36473 阅读 · 0 评论 -
TypeError: Won't implicitly convert Unicode to bytes; use .encode()的解决方法
再用python3写一个lmdb读写脚本的时候,报出了这个错误:TypeError: Won’t implicitly convert Unicode to bytes; use .encode()。截图如下:可以看出在27行定义了一个字符串,在29行就报出了错误。而错误的最后也写了 use .encode()。所以,需要在29行的字符串后加上 .encode() 即可。如下:lmdb_...原创 2018-12-29 08:37:56 · 6326 阅读 · 0 评论 -
TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely错误解决方法
将一个list矩阵转化为numpy数组之后,使用np.isnan()方法,报出了这么一个错误:TypeError: ufunc ‘isnan’ not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting ...原创 2018-12-13 15:20:24 · 66270 阅读 · 4 评论 -
python3从json文件中读取数据json.loads(path)
虽然网上有很多相关介绍,但还是想记录一下,以方便下次查找使用。import jsonf = open('xxx.json', 'r+')str_json = f.read()temp = str_json.replace("'", '"') # 将 单引号 替换为 双引号temp = json.loads(temp) # loads 将 字符串 解码为 字典# 这样就 ok 了需要...原创 2018-12-06 09:23:54 · 8196 阅读 · 0 评论 -
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (ch
今天在使用字符串解析成json对象时,遇到了下面的错误:json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)提示很明显,将字符串中的单引号,改为双引号即可:str_json = f.read()temp = str_json.re...原创 2018-10-15 14:56:57 · 1466 阅读 · 0 评论 -
ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory解决办法
ubuntu,pycharm在import tensorflow的时候,报错: ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory Failed to load the native TensorFlow runtime. 解决办法: Rnn -> Edi...原创 2018-07-15 17:06:50 · 3781 阅读 · 4 评论 -
使用python3操作mysql数据库
因为使用的python3.6,所以需要载入pymysql库,需要注意的是,python2和python3载入的库是不一样的。pymysql.Connect( host, port, user, passwd, db, charset )如:host = “localhost”,port = 3306,user = “root”,passwd = “root”,db = “pachon...原创 2019-06-07 19:15:13 · 554 阅读 · 0 评论