python函数
qq_43579156
这个作者很懒,什么都没留下…
展开
-
安装solaris库,亲测可用
solaris库安装,也许可以为你提供一定的参考价值。亲测可用。原创 2022-11-20 00:12:58 · 389 阅读 · 1 评论 -
pip错误ValueError: check_hostname requires server_hostname
原因:可能是开启了代理 解决方案:关闭即可原创 2021-08-24 15:42:28 · 242 阅读 · 0 评论 -
tensorboardx显示
1.重定向 ssh -L 16006:127.0.0.1:6006 username@remote_server_ip 2.服务器启动tensorboard tensorboard --logdir=xxx --port=6006 3.本地网页 127.0.0.1:16006原创 2021-07-06 17:22:07 · 113 阅读 · 0 评论 -
PyQt5安装使用
在anaconda虚拟环境中 1.pip install pyqt5 2.pip install PyQt5-tools -i http://pypi.douban.com/simple --trusted-host=pypi.douban.com 3.其中Program:.\envs\image_GUI\Lib\site-packages\qt5_applications\Qt\bin\designer.exe 4.Arguments: -m PyQt5.uic.pyuic $ FileName $原创 2021-06-15 20:13:54 · 68 阅读 · 0 评论 -
ubuntu终端运行python---更改虚拟环境
问题 (MVSNet_torch) d***@d***-System-Product-Name:~/python_code/MVSNet_pytorch-master$ python Python 3.8.5 (default, Sep 4 2020, 07:30:14) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>原创 2021-05-08 15:39:56 · 435 阅读 · 0 评论 -
tf.slice()函数
举例 t = tf.constant( [[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]], [[5, 5, 5], [6, 6, 6]]]) tf.slice(t, [1, 0, 0], [1, 1, 3]) 这个输出是: [[[3, 3, 3]]] 解释 首先t的shape是(3,2,3)。 slice的函数输入分别是: t:被切割对象 [1,0,0]:每个维度切割起始位置 [1,1,3]:每个维度切割数目 因此输出是[[[3, 3, 3]]] 参考:http转载 2021-03-12 10:40:09 · 202 阅读 · 0 评论