python
gakki_chen
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
PyQt5 qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found.
1.PyQt5 qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found问题解决:不要使用pip install pyqt5重新建立一个环境,使用conda install pyqt5安装!!2.qt.qpa.screen: QXcbConnection: Could not connect to displayCould not connect to any X display原创 2020-12-20 20:26:22 · 1634 阅读 · 2 评论 -
tensorflow 安装
安装tensorflow 可使用豆瓣镜像,速度更快 pip install tensorflow -i https://pypi.douban.com/simple原创 2020-11-13 17:18:55 · 194 阅读 · 0 评论 -
linux往github中上传文件
error1:*** Please tell me who you are.Rungit config --global user.email “you@example.com”git config --global user.name “Your Name”to set your account’s default identity.Omit --global to set the identity only in this repository.fatal: empty ident nam原创 2020-07-28 18:15:39 · 556 阅读 · 0 评论 -
控制每次重新运行时batch输入的参数一样
在程序的最开始加上:import numpy as npimport randomrandom.seed(317)np.random.seed(317)torch.manual_seed(317)torch.cuda.manual_seed_all(317)保证每次的随机数种子一样原创 2020-07-17 11:58:19 · 295 阅读 · 0 评论 -
修改gpu无效
在pytorch代码中,os.environ[‘CUDA_VISIBLE_DEVICES’]=num无效,可以在linux命令行运行py文件时输入CUDA_VISIBLE_DEVICES=num1,num2 python 文件名.py可以通过torch.cuda.device_count()查看visible的gpu的数量原创 2020-06-15 17:53:50 · 564 阅读 · 0 评论 -
numpy版本问题,lap安装,pop按位置删除多个数据
numpy版本问题,lap安装,pop按位置删除多个数据1.from numpy.lib.arraypad import _validate_lengths ImportError: cannot import name ‘_validate_lengths’解决方式:numpy版本问题,使用1.15.0版本pip install -U numpy==1.15.02.import lap时报错ValueError : numpy.ufunc has the wrong size, try recom原创 2020-05-26 10:01:47 · 2511 阅读 · 0 评论
分享