随笔 - 402  文章 - 1 评论 - 20 阅读 - 113万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  Python

1 2 3 下一页
ERROR: No matching distribution found for pymcubes
摘要:(pytorch3drecgan) ubuntu@ubuntu:~/lcx/3D-RecGAN-pytorch-masterv3$ pip install pymcubesWARNING: Keyring is skipped due to an exception: Failed to unloc 阅读全文
posted @ 2024-04-03 20:17 chamie 阅读(122) 评论(0) 推荐(0) 编辑
虚拟环境bin/python: bad interpreter: No such file or directory
摘要:(pytorch3drecgan) ubuntu@ubuntu:~$ pip-bash: /home/ubuntu/anaconda3/envs/pytorch3drecgan/bin/pip: /home/liucaixia/anaconda3/envs/pytorch3drecgan/bin/p 阅读全文
posted @ 2024-04-03 18:22 chamie 阅读(82) 评论(0) 推荐(0) 编辑
ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out.
摘要:pip install open3d 错误:ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. 解决办法:pip --default-timeout=500 install open3d 阅读全文
posted @ 2024-04-03 18:22 chamie 阅读(16) 评论(0) 推荐(0) 编辑
Linux多cuda版本切换
摘要:转载:https://www.cnblogs.com/jyroy/p/14378146.html 多cuda版本的切换依靠软连接来实现 我们首先查看我们的所有的cuda版本,默认保存在/usr/local路径下,可以看到我们当前有9.0 9.2 10.0 10.1 10.2的五个版本的cuda ro 阅读全文
posted @ 2021-09-07 17:12 chamie 阅读(820) 评论(0) 推荐(0) 编辑
python_变量前加*或者**
摘要:当函数要接受元组或者字典参数时,它分别使用*前缀。 在变量前加*,则多余的函数参数会作为一个元组存在args中,如: def func(*ages): func(1,2,3) #args表示(1,2,3)这个元组 如果使用**前缀,多余的参数会被认为是字典 def func(**args): fun 阅读全文
posted @ 2021-07-23 13:55 chamie 阅读(435) 评论(0) 推荐(0) 编辑
python 获取上级(上上级目录..)
摘要:import osimport sys print '***获取当前目录***' print os.getcwd() print os.path.abspath(os.path.dirname(__file__)) print '***获取上级目录***' print os.path.abspath 阅读全文
posted @ 2021-07-23 10:46 chamie 阅读(1350) 评论(0) 推荐(0) 编辑
pip install git+
摘要:pip 从 git 源码仓库直接 install 安装git仓库中的包 pip install git+<git仓库地址> pip install git+<git仓库地址>@<分支名称> 阅读全文
posted @ 2021-07-20 14:48 chamie 阅读(760) 评论(0) 推荐(0) 编辑
GPU问题: Linux 无进程显存占用问题
摘要:在linux命令行中键入nvidia-smi,显示没有进程但是GPU显存却使用很多产生原因:历史进程未杀死 解决方案:用下面命令查看后台占用进程: fuser -v /dev/nvidia* 然后kill掉 kill -9 进程号 阅读全文
posted @ 2021-04-22 16:35 chamie 阅读(1717) 评论(0) 推荐(0) 编辑
显示三维体素
摘要:Matplotlib发布新版本3.1,新版本带来了那些新的功能和特性。 Axes3D.voxels对结果voxels进行着色,voxels()方法默认shade参数改True。它会根据方向调整阴影,其行为与trisurf()以及bar3d()的匹配参数相同。 示例代码: 阅读全文
posted @ 2019-11-14 19:32 chamie 阅读(919) 评论(0) 推荐(0) 编辑
解决ImportError: No module named utils
摘要:转载:https://blog.csdn.net/weixin_43979572/article/details/86159265 在Python中遇到了导包错误,其实包已经有了。原因是我再B文件的a.py中用到了utils包下的一个类比如from utils.RandomErasing impor 阅读全文
posted @ 2019-07-01 20:43 chamie 阅读(16420) 评论(0) 推荐(0) 编辑
python,sys.argv
摘要:sys.argv 是获取运行python文件的时命令行参数,命令行参数是以list形式存储参数。 例如:python convert_shapenet10.py 3DShapeNets 则 sys.argv[0]:convert_shapenet10.py sys.argv[1]:3DShapeNe 阅读全文
posted @ 2019-07-01 16:30 chamie 阅读(211) 评论(0) 推荐(0) 编辑
python定义函数时,形参前加*和**的意义
摘要:转发:https://blog.csdn.net/qq_34806812/article/details/82017839 1.加*表示接受一个tuple类型(元组),如: 2.加**表示接受一个dict类型(字典),如: 阅读全文
posted @ 2019-03-25 18:36 chamie 阅读(528) 评论(0) 推荐(0) 编辑
file_name[:-4]
摘要:file_name: chair_0001.off file_name[:-4] : chair_0001 阅读全文
posted @ 2018-10-31 14:30 chamie 阅读(479) 评论(0) 推荐(0) 编辑
python2除法保留小数部分
摘要:转载:http://www.cnblogs.com/yhleng/p/9223944.html 1.python2和python3除法的最大区别: python2: python2结果:取整数部分,小数并没有保留 python3: python3结果:得到真实结果,小数保留 2.如果python2想 阅读全文
posted @ 2018-06-25 21:45 chamie 阅读(19828) 评论(0) 推荐(1) 编辑
Python:查看矩阵大小,查看列表大小
摘要:对于Python3.5 查看矩阵大小 查看列表大小 阅读全文
posted @ 2018-04-09 21:56 chamie 阅读(63529) 评论(0) 推荐(0) 编辑
TensorFlow:tf.contrib.layers.xavier_initializer
摘要:xavier_initializer( uniform=True, seed=None, dtype=tf.float32 ) 该函数返回一个用于初始化权重的初始化程序 “Xavier” 。这个初始化器是用来保持每一层的梯度大小都差不多相同。 参数: uniform: 使用uniform或者norm 阅读全文
posted @ 2018-04-09 21:10 chamie 阅读(3751) 评论(0) 推荐(0) 编辑
python:list
摘要:这篇论文是用TensorFlow写的代码,以下是理解内容记录: 为了更好的理解,进行下面的代码实现: 阅读全文
posted @ 2018-04-09 20:50 chamie 阅读(171) 评论(0) 推荐(0) 编辑
TensorFlow-Python:创建空列表list与append的用法
摘要:1.空list的创建: 2.list中元素的创建和表达 3.list中元素的更改 4.在list末尾增加更多元素 5.如何截取list中的某一段 6. 修改改list中连续的元素 7.如何删除list中某段元素,或者全部 阅读全文
posted @ 2018-04-09 20:23 chamie 阅读(1860) 评论(0) 推荐(0) 编辑
Python安装coverage.py
摘要:coverage.py是一个用来统计python程序代码覆盖率的工具。它使用起来非常简单,并且支持最终生成界面友好的html报告。在最新版本中,还提供了分支覆盖的功能。 官方网站: http://nedbatchelder.com/code/coverage/ 出现错误: 解决办法: 建立一个文件 阅读全文
posted @ 2016-03-09 21:20 chamie 阅读(4329) 评论(0) 推荐(0) 编辑
python--随机函数(random,uniform,randint,randrange,shuffle,sample)
摘要:random()random()方法:返回随机生成的一个实数,它在[0,1)范围内运用random()方法的语法:import random #random()方法不能直接访问,需要导入random模块,然后通过random静态对象调用该方法random.randomrandom.random()... 阅读全文
posted @ 2015-10-28 16:50 chamie 阅读(67436) 评论(0) 推荐(2) 编辑

1 2 3 下一页
点击右上角即可分享
微信分享提示