- 博客(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
936
原创 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
716
原创 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
873
原创 AttributeError: ‘RandomOverSampler‘ object has no attribute ‘fit_sample‘
AttributeError: ‘RandomOverSampler’ object has no attribute ‘fit_sample’ 报错代码 resample_ratio = 0.3 # (anomalies / normal) after resampling sample_normal = tn + fp # total number of true normal points sample_anomaly = int(resample_ratio*sample_normal) # mus
2022-04-19 13:24:27
2445
原创 ModuleNotFoundError: No module named ‘fbprophet‘
报错代码 from fbprophet import Prophet 报错信息 No module named 'fbprophet' 解决办法 pip install pystan==2.17.1.0 pip install fbprophet==0.6 依次下载以上两个包
2022-04-19 10:38:04
4559
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
1324
原创 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.0 keras 1.x 没有epochs参数
2022-04-14 11:16:39
1171
原创 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
490
原创 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
3967
原创 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
442
原创 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
633
原创 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 match the version used by the HDF5 library to which this application is linked. Data corruption or
2021-12-15 17:48:40
957
原创 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 conda con
2021-12-02 14:07:11
792
原创 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
1676
原创 mac下载安装redis
mac redis 下载安装 下载官网地址 http://redis.io 安装 cd usr/local tar zxvf redis-6.x.x 编译 sudo make install 启动 redis-server 关闭 ps aux|grep redis kill -9 pid 欢迎大家交流学习,任何问题都可以留言
2021-09-16 10:33:55
291
原创 mac下载rabbitmq
mac下载rabbitmq brew 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
350
原创 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/releases error:pip install pyaudio conda i
2021-09-02 17:13:04
793
1
原创 ERROR: Failed building wheel for ctcdecode
ERROR: Failed building wheel for ctcdecode 报错信息 Processing /ctcdecode Building 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
1998
4
原创 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
792
原创 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.7 python setup.py install 验证 pip list 或者 import django django.__version__ 创建项目 1.mac djan
2021-08-26 17:43:59
376
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
2764
7
原创 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
2864
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
267
原创 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
3740
原创 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
452
原创 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 解决办法 查看当前系统安装所有版本的gcc ls /usr/bin/gcc* -l 下载gcc-4.8 sudo apt-get install gcc-4.8 修改系统gcc版本 删除已有软连接
2021-08-03 15:38:44
2792
原创 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
721
原创 docker containers新增端口映射
docker containers新增端口映射 查看当前容器ID docker ps -a 关闭容器 docker stop name/container id 修改hostconfig.json vi /var/lib/docker/containers/[容器ID]/hostconfig.json vi /var/lib/docker/containers/9f0b445196fb04f2437706d368941c8064065375527b1e8ddddb04a11a985fa6/hostcon
2021-07-21 14:24:45
472
原创 解决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
3573
原创 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
759
原创 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
345
原创 django+nginx+uwsgi配置文件
django+nginx反向代理配置文件 修改iginx配置文件 sudo vi /etc/nginx/sites-available/default django+nginx反向代理配置文件 nginx 配置文件测试 /etc/init.d/nginx configtest 查看nginx配置文件错误位置 Testing nginx configuration …fail! sudo nginx -t nginx启动 /etc/init.d/nginx start nginx重新启动 /etc
2021-07-20 11:52:52
283
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 libsm6 apt-get install libxrender1 apt-get install libxe
2021-07-20 11:49:15
328
原创 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
1396
原创 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): failed UnavailableInvalidChanne
2021-07-20 11:40:08
1291
1
原创 ubuntu yolov5中文标签显示 OSError: cannot open resource
ubuntu OSError: cannot open resource 报错信息 ubuntu OSError: cannot open resource fontText = 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
1882
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 update apt-get install libglib2.0-dev 欢迎大家
2021-07-20 11:24:19
1337
原创 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 sudo sudo apt install libgl1-mesa-glx 欢迎大家交流学习,任何问题
2021-07-20 11:22:44
242
原创 ERROR: Failed building wheel for dlib
ubuntu 安装dlib ERROR: Failed building wheel for dlib 报错信息 pip install -i https://pypi.douban.com/simple dlib Looking in indexes: https://pypi.douban.com/simple Collecting dlib==18.17.100 Using cached https://pypi.doubanio.com/packages/2e/63/801499a0aa
2021-07-20 11:20:11
2896
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
164
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅