自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (1)
  • 收藏
  • 关注

原创 matplotlib保存伪彩色图像,去除白框、白边、坐标轴

【代码】matplotlib保存伪彩色图像,去除白框、白边、坐标轴。

2023-09-09 21:54:16 466 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

filed_output.py

python abaqus 保存每一帧的场输出为一个文件,只输出的mises值,如果需要保存其他值改动输出就可以了

2019-11-29

空空如也

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

TA关注的人

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