自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(226)
  • 收藏
  • 关注

原创 AttributeError: ‘tensorflow.python.framework.ops.EagerTensor‘ object has no attribute ‘reshape‘

AttributeError: 'tensorflow.python.framework.ops.EagerTensor' object has no attribute 'reshape'

2023-03-10 17:38:15 522 1

原创 TypeError: Value passed to parameter ‘input‘ has DataType uint8 not in list of allowed values: float

TypeError: Value passed to parameter 'input' has DataType uint8 not in list of allowed values: float16, bfloat16, float32, float64

2023-03-10 17:33:14 464

原创 ValueError: Tensor Tensor(“conv2d_18/Relu:0“, shape=(?, 512, 512, 3), dtype=float32)

解决django+keras ValueError: Tensor Tensor("conv2d_18/Relu:0", shape=(?, 512, 512, 3), dtype=float32) is not an element of this graph.

2022-08-04 18:13:25 718

原创 AttributeError: ‘RandomOverSampler‘ object has no attribute ‘fit_sample‘

AttributeError: ‘RandomOverSampler’ object has no attribute ‘fit_sample’报错代码resample_ratio = 0.3 # (anomalies / normal) after resamplingsample_normal = tn + fp # total number of true normal pointssample_anomaly = int(resample_ratio*sample_normal) # mus

2022-04-19 13:24:27 2100

原创 ModuleNotFoundError: No module named ‘fbprophet‘

报错代码from fbprophet import Prophet报错信息No module named 'fbprophet'解决办法pip install pystan==2.17.1.0pip install fbprophet==0.6依次下载以上两个包

2022-04-19 10:38:04 4084 1

原创 AttributeError: module ‘pydot‘ has no attribute ‘find_graphviz‘

windows AttributeError: module ‘pydot’ has no attribute ‘find_graphviz’报错信息AttributeError: module 'pydot' has no attribute 'find_graphviz'解决办法安装 windows_10_cmake_Release_graphviz-install-3.0.0-win64.exe安装graphviz官网https://www.graphviz.org/download/

2022-04-18 14:25:54 878

原创 TypeError: Received unknown keyword arguments: {‘epochs‘: xx}

TypeError: Received unknown keyword arguments: {‘epochs’: 30}报错信息TypeError: Received unknown keyword arguments: {'epochs': 30}解决办法pip install keras==2.0keras 1.x 没有epochs参数

2022-04-14 11:16:39 1025

原创 django+nginx 安装、启动、配置

安装sudo brew install nginx查看nginx安装目录open /usr/local/etc/nginx/查看nginx配置文件cat /usr/local/etc/nginx/nginx.conf编辑nginx配置文件#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log

2022-02-14 10:38:23 353

原创 django+gunicorn配置和启动

django+nginx+gunicornn能解决的问题django 是一个web框架,而非web server,直接用django拉起的web服务仅限于开发环境使用,生产环境不够稳定,也无法承受大量请求的并发,在生茶环境下需要使用服务器软件来处理各种请求,如Gunicorn、 Nginx或Apache,而Gunicorn+Nginx的搭配,好处多多,一方面基于Nginx转发Gunicorn服务,在生产环境下能补充Gunicorn服务在某些情况下的不足,另一方面,如果做一个Web网站,除了服务外,还有很多

2022-02-10 14:43:52 3265

原创 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!报错信息@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@IT IS POSSIBLE THAT SO

2022-01-12 10:42:08 348

原创 AttributeError: ‘str‘ object has no attribute ‘decode‘

tensorflow AttributeError: ‘str’ object has no attribute ‘decode’报错信息model_config = json.loads(model_config.decode('utf-8'))AttributeError: 'str' object has no attribute 'decode'解决办法pip install h5py==2.10.0

2021-12-22 14:39:31 516

原创 HDF5 library version mismatched error

HDF5 library version mismatched error报错信息Warning! ***HDF5 library version mismatched error***The HDF5 header files used to compile this application do not matchthe version used by the HDF5 library to which this application is linked.Data corruption or

2021-12-15 17:48:40 808

原创 Solving environment: failed with initial frozen solve. Retrying with flexible solve.

Solving environment: failed with initial frozen solve. Retrying with flexible solve.anaconda切换Python版本conda install python=3.x报错信息Solving environment: failed with initial frozen solve. Retrying with flexible solve.解决办法conda update -n base condacon

2021-12-02 14:07:11 675

原创 AttributeError: ‘NoneType‘ object has no attribute ‘get‘

AttributeError: ‘NoneType’ object has no attribute ‘get’报错信息Traceback (most recent call last): File "/usr/lib/python2.7/encodings/__init__.py", line 74, in search_function entry = _cache.get(encoding, _unknown)AttributeError: 'NoneType' object has

2021-12-01 14:36:36 1263

原创 mac下载安装redis

mac redis 下载安装下载官网地址http://redis.io安装cd usr/localtar zxvf redis-6.x.x编译sudo make install启动redis-server关闭ps aux|grep rediskill -9 pid欢迎大家交流学习,任何问题都可以留言

2021-09-16 10:33:55 173

原创 mac下载rabbitmq

mac下载rabbitmqbrew install rabbitmq启动brew services start rabbitmq配置项进入sbin目录cd /usr/local/Cellar/rabbitmq/3.7.12/sbin添加账号./rabbitmqctl add_user rabbit rabbit添加访问权限./rabbitmqctl set_permissions -p “/” rabbit “." ".” “.*”设置超管权限./rabbitmqctl set_us

2021-09-16 10:32:49 247

原创 FileNotFoundError: [Errno 2] No such file or directory: ‘pretrained/gated-conv.pth‘

FileNotFoundError: [Errno 2] No such file or directory: ‘pretrained/gated-conv.pth’报错信息FileNotFoundError: [Errno 2] No such file or directory: 'pretrained/gated-conv.pth'下载地址https://github.com/nobody132/masr/releaseserror:pip install pyaudioconda i

2021-09-02 17:13:04 548 1

原创 ERROR: Failed building wheel for ctcdecode

ERROR: Failed building wheel for ctcdecode报错信息Processing /ctcdecodeBuilding wheels for collected packages: ctcdecode Building wheel for ctcdecode (setup.py) ... error ERROR: Command errored out with exit status 1: command: /root/anaconda3/envs/ma

2021-09-02 17:10:42 1338 1

原创 ImportError: libGL.so.1: cannot open shared object file: No such file or directory

ubuntu ImportError: libGL.so.1: cannot open shared object file: No such file or directory报错信息ImportError: libGL.so.1: cannot open shared object file: No such file or directory解决办法apt-get update apt install libgl1-mesa-glx欢迎大家交流学习,任何问题都可以留言.

2021-08-26 17:49:06 497

原创 windows安装django和django基本操作(入门)

windows安装django进入django官网https://www.djangoproject.com/download/ 以上两种方式均可安装pip方式pip install django下载安装包 Django-3.1.7.tar.gz# 解压后执行以下命令E:cd Django-3.1.7python setup.py install验证pip list或者import djangodjango.__version__创建项目1.macdjan

2021-08-26 17:43:59 253 1

原创 RuntimeError: run loop already started raise RuntimeError(‘run loop already started‘)

RuntimeError: run loop already started raise RuntimeError(‘run loop already started’)报错代码self.engine.say(content)self.engine.runAndWait()self.engine.stop()报错信息raise RuntimeError('run loop already started')RuntimeError: run loop already started解决办

2021-08-24 13:46:14 1758 6

原创 OSError: libespeak.so.1: cannot open shared object file: No such file or directory

OSError: libespeak.so.1: cannot open shared object file: No such file or directory报错信息OSError: libespeak.so.1: cannot open shared object file: No such file or directory解决办法sudo apt-get update sudo apt-get install espeak欢迎大家交流学习,任何问题都可以留言...

2021-08-03 16:24:01 2458 2

原创 AttributeError: ‘str‘ object has no attribute ‘decode‘

AttributeError: ‘str’ object has no attribute ‘decode’报错信息AttributeError: 'str' object has no attribute 'decode'解决办法pip install h5py==2.10.0欢迎大家交流学习,任何问题都可以留言

2021-08-03 16:02:45 197

原创 ubuntu sh: 1: aplay: not found

ubuntu sh: 1: aplay: not found报错信息sh: 1: aplay: not found解决办法apt-get install alsa-utils欢迎大家交流学习,任何问题都可以留言

2021-08-03 15:54:35 1963

原创 detected binary path: /root/anaconda3/envs/.../bin/uwsgi!!! no internal routing support, rebuild wit

detected binary path: /root/anaconda3/envs/…/bin/uwsgi!!! no internal routing support, rebuild with pcre support !!!报错信息detected binary path: /root/anaconda3/envs/.../bin/uwsgi!!! no internal routing support, rebuild with pcre support !!!解决办法安装uwsgi,不

2021-08-03 15:50:57 304

原创 error: lto-wrapper failed collect2: error: ld returned 1 exit status

error: lto-wrapper failed collect2: error: ld returned 1 exit status报错信息error: lto-wrapper failed collect2: error: ld returned 1 exit status解决办法查看当前系统安装所有版本的gccls /usr/bin/gcc* -l 下载gcc-4.8sudo apt-get install gcc-4.8修改系统gcc版本删除已有软连接

2021-08-03 15:38:44 1729

原创 ValueError: Tensor Tensor(“dense_1/Softmax:0“, shape=(?, 5552), dtype=float32) is not an element of

ValueError: Tensor Tensor(“dense_1/Softmax:0”, shape=(?, 5552), dtype=float32) is not an element of this graph.报错代码model = load_model(weight_file)解决办法model = load_model(weight_file)x_pred = np.zeros((1, 6, len(words)))在load之后随便加个空数据进行predict, 之后再调

2021-07-23 16:16:43 616

原创 docker containers新增端口映射

docker containers新增端口映射查看当前容器IDdocker ps -a关闭容器docker stop name/container id修改hostconfig.jsonvi /var/lib/docker/containers/[容器ID]/hostconfig.jsonvi /var/lib/docker/containers/9f0b445196fb04f2437706d368941c8064065375527b1e8ddddb04a11a985fa6/hostcon

2021-07-21 14:24:45 276

原创 解决TypeError: ‘module‘ object is not iterable

解决TypeError: ‘module’ object is not iterable检查项目中每一个涉及到路径的代码解决django.core.exceptions.ImproperlyConfigured: The included URLconf ‘chinese.urls’ does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably ca

2021-07-21 14:20:31 3227

原创 invalid request block size: 21573 (max 4096)...skip

invalid request block size: 21573 (max 4096)…skip报错信息invalid request block size: 21573 (max 4096)...skip解决办法buffer-size = 65535欢迎大家交流学习,任何问题都可以留言

2021-07-21 14:18:54 626

原创 django+uwsgi配置文件

django+uwsgi配置文件uwsgi配置文件[uwsgi]# 指定sock的文件路径socket=/home/.../project/ai/kmeans_django/uwsgi.sock#直接做web服务器使用http=0.0.0.0:8011#项目目录chdir=/home/.../project/ai/kmeans_django#项目中wsgi.py文件的目录,相当于项目目录wsgi-file=/home/.../project/ai/kmeans_django/kmeans_d

2021-07-20 11:56:11 237

原创 django+nginx+uwsgi配置文件

django+nginx反向代理配置文件修改iginx配置文件sudo vi /etc/nginx/sites-available/defaultdjango+nginx反向代理配置文件nginx 配置文件测试/etc/init.d/nginx configtest查看nginx配置文件错误位置Testing nginx configuration…fail!sudo nginx -tnginx启动/etc/init.d/nginx startnginx重新启动/etc

2021-07-20 11:52:52 189 1

原创 ImportError: libSM.so.6: cannot open shared object file: No such file or directory

ubuntu ImportError: libSM.so.6: cannot open shared object file: No such file or directory报错信息ImportError: libSM.so.6: cannot open shared object file: No such file or directory解决办法apt-get install libsm6apt-get install libxrender1apt-get install libxe

2021-07-20 11:49:15 238

原创 Exception: you need a C compiler to build uWSGI

ubuntu安装uwsgi报错error linking uWSGI报错信息Exception: you need a C compiler to build uWSGI解决办法conda install -c conda-forge uwsgi欢迎大家交流学习,任何问题都可以留言

2021-07-20 11:47:24 1226

原创 UnavailableInvalidChannel: The channel is not accessible or is invalid. channel name: conda-forg ch

UnavailableInvalidChannel: The channel is not accessible or is invalid. channel name: conda-forg channel url: https://conda.anaconda.org/conda-forg error code: 404报错信息 Collecting package metadata (current_repodata.json): failedUnavailableInvalidChanne

2021-07-20 11:40:08 407 1

原创 ubuntu yolov5中文标签显示 OSError: cannot open resource

ubuntu OSError: cannot open resource报错信息ubuntu OSError: cannot open resourcefontText = ImageFont.truetype("simsun.ttc", textSize, encoding="utf-8") File "/project/ai/yolov5_detection/utils/plots.py", line 70, in plot_one_box im = cv2ImgAddText

2021-07-20 11:39:10 1642 1

原创 ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

ubuntu ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory报错信息ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory解决办法apt-get updateapt-get install libglib2.0-dev欢迎大家

2021-07-20 11:24:19 1210

原创 ImportError: libGL.so.1: cannot open shared object file: No such file or directory

ubantu ImportError: libGL.so.1: cannot open shared object file: No such file or directory报错信息ImportError: libGL.so.1: cannot open shared object file: No such file or directory、解决办法apt-get install sudosudo apt install libgl1-mesa-glx欢迎大家交流学习,任何问题

2021-07-20 11:22:44 176

原创 ERROR: Failed building wheel for dlib

ubuntu 安装dlib ERROR: Failed building wheel for dlib报错信息pip install -i https://pypi.douban.com/simple dlibLooking in indexes: https://pypi.douban.com/simpleCollecting dlib==18.17.100 Using cached https://pypi.doubanio.com/packages/2e/63/801499a0aa

2021-07-20 11:20:11 2561 2

原创 xlrd.biffh.XLRDError: Excel xlsx file; not supported

报错代码data = pd.read_excel(data_file)print(data)报错信息xlrd.biffh.XLRDError: Excel xlsx file; not supported解决办法pip install xlrd==1.2.0欢迎大家交流学习,任何问题都可以留言

2021-07-20 11:18:19 96

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除