- 博客(11)
- 资源 (1)
- 收藏
- 关注
原创 ImportError: libGL.so.1: cannot open shared object file: No such file or directory
ubuntu 16.0.4 import cv2报错ImportError: libGL.so.1: cannot open shared object file: No such file or directory解决方法apt install libgl1-mesa-glx
2020-08-25 20:50:15
819
原创 Your CPU supports instructions that this tensorflow binary wasn't compiled to use :AUX
运行tensorflow时出现以下提示Your CPU supports instructions that this tensorflow binary wasn’t compiled to use :AUX虽然不影响运行,但是看起来很不舒服解决方法在代码最前边加入以下代码。import osos.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'...
2020-02-15 20:31:46
126
原创 Numpy报错 _np_qint8 = np.dtype([("qint8", np.int8, (1,))])
运行python3.5 keras2.1.6版本,报错np_qint8 = np.dtype([(“qint8”, np.int8, (1,))])_np_quint8 = np.dtype([(“quint8”, np.uint8, (1,))])_np_qint16 = np.dtype([(“qint16”, np.int16, (1,))])_np_quint16 = np.dty...
2020-02-15 12:53:57
4543
2
原创 python abaqus二次开发 模拟3维裂纹扩展
已调试,备份留作日后参考,#!/usr/bin/env/ python# -*- coding:utf-8 -*-# === 导入必要的模块 ===from abaqus import *from abaqusConstants import *import meshimport regionToolsetimport job#-------------------------...
2019-12-16 13:35:13
2514
原创 Python abaqus实现二维裂纹扩展(XFEM)
自己做的一个简单的案例,用python用于abaqus的模拟比较省时间,留作参考在abaqus中,点击file——run script——运行脚本就可以了,abaqus工作目录下的.rpy文件是abaqus的日志,进行每一步操作也有相应的代码,可以直接拷贝过来用#!/usr/bin/env/ python# -*- coding:utf-8 -*-# === 导入必要的模块 ===fr...
2019-12-12 14:47:34
4367
7
转载 python&Keras实现多GPU或指定GPU的使用
转载,自己好方便查看1. keras新版本中加入多GPU并行使用的函数下面程序段即可实现一个或多个GPU加速:注意:使用多GPU加速时,Keras版本必须是Keras2.0.9以上版本from keras.utils.training_utils import multi_gpu_model #导入keras多GPU函数import VGG19 ...
2019-12-07 21:25:29
744
原创 python3.5 Windows 下安装matplotlib2.2
python3.5 Windows 下安装matplotlib2.2python 3.5 已经不支持直接pip安装matplotlib, 因为自己使用的是3.5版本,在安装的时候报各种错误,要求python版本必须是3.6及以上,然后就用下面的命令就可以安装matplotlib 2.2版本了pip install "matplotlib>2.0,<3.0"...
2019-12-05 16:20:54
929
原创 查看文件编码格式
查看文件编码格式// 查看文件编码格式import chardetdata =open(r"D:test.py", "rb").read()print(chardet.detect(data))
2019-08-20 10:50:28
483
原创 查看linux环境下GPU、CPU和内存使用情况
查看linux环境下GPU、CPU和内存使用情况查看GPU CPU和内存使用情况查看GPU使用情况查看CPU使用情况查看内存使用情况查看GPU CPU和内存使用情况查看GPU使用情况// 查看GPU使用情况nvidia-smi或者使用gpustat使用前若没有gpustat,就先安装,安装命令为pip install gpustat如果没有权限可尝试以下方式pip ins...
2019-08-20 10:42:18
1161
原创 Python UnicodeEncodeError: 'gbk' codec can't encode character 解决方法
@TOCPython UnicodeEncodeError: ‘gbk’ codec can’t encode character 解决方法Python UnicodeEncodeError: ‘gbk’ codec can’t encode character 解决方法运行python程序读取csv文件时遇到了Python UnicodeEncodeError: ‘gbk’ codec ca...
2019-07-22 15:27:15
706
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人