会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Tomorrow
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
15
16
17
···
73
下一页
2022年3月21日
python找不到模块的问题解决方法(有空钻研一下具体的原因)
摘要: python很蠢,路径问题一直让人头疼。 import sys print(sys.path) # 查看当前路径 from os import pathd = path.dirname(__file__) # 获取当前路径parent_path = os.path.dirname(d) # 获取上一
阅读全文
posted @ 2022-03-21 10:38 Tomorrow1126
阅读(789)
评论(0)
推荐(0)
2022年3月20日
python 如何查看某个包的详细信息?如何查看环境信息?
摘要: pip show xxxx pip list https://blog.csdn.net/swansonge/article/details/115957148
阅读全文
posted @ 2022-03-20 19:39 Tomorrow1126
阅读(270)
评论(0)
推荐(0)
安装pytorch方法,直接上官网!
摘要: https://pytorch.org/get-started/previous-versions/
阅读全文
posted @ 2022-03-20 19:10 Tomorrow1126
阅读(83)
评论(0)
推荐(0)
2022年3月18日
pytorch将其他类型转为tensor torch.as_tensor()、torch.from_numpy()
摘要: import torch import numpy as np a = np.array([1, 2, 3]) t = torch.as_tensor(a) print(t) t[0] = -1 a 将numpy转为tensor也可以使用t = torch.from_numpy(a)
阅读全文
posted @ 2022-03-18 18:53 Tomorrow1126
阅读(325)
评论(0)
推荐(0)
python replace函数
摘要: Python replace() 方法把字符串中的 old(旧字符串) 替换成 new(新字符串),如果指定第三个参数max,则替换不超过 max 次。 语法 replace()方法语法: str.replace(old, new[, max]) 参数 old -- 将被替换的子字符串。 new -
阅读全文
posted @ 2022-03-18 18:03 Tomorrow1126
阅读(794)
评论(0)
推荐(0)
--prefix
摘要: linux configure --prefix 的作用是:编译的时候用来指定程序存放路径 源码的安装一般由3个步骤组成:配置(configure)、编译(make)、安装(make install)。Configure是一个可执行脚本,它有很多选项,在待安装的源码路径下使用命令./configur
阅读全文
posted @ 2022-03-18 15:31 Tomorrow1126
阅读(318)
评论(0)
推荐(0)
安装boost
摘要: https://www.cnblogs.com/liushui-sky/p/12843679.html i4k.xyz/article/qq_41854911/119454212 现在的问题是只能用/usr/bin/python3.8,用conda环境中的其他python就用不了read_cache
阅读全文
posted @ 2022-03-18 15:29 Tomorrow1126
阅读(244)
评论(0)
推荐(0)
tmux切换页,鼠标滚动
摘要: 设定鼠标支持 设定鼠标滚动支持,执行如下命令即可 设定鼠标滚动支持:tmux set mouse on
阅读全文
posted @ 2022-03-18 14:44 Tomorrow1126
阅读(301)
评论(0)
推荐(0)
cannot import name '_registerMatType' from 'cv2.cv2'
摘要: https://stackoverflow.com/questions/70537488/cannot-import-name-registermattype-from-cv2-cv2 The same thing occurred to me yesterday when I used Colab
阅读全文
posted @ 2022-03-18 14:22 Tomorrow1126
阅读(755)
评论(0)
推荐(0)
运行 ./trian.sh denied解决
摘要: chmod +x run_train.sh 然后就可以啦
阅读全文
posted @ 2022-03-18 14:21 Tomorrow1126
阅读(23)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
16
17
···
73
下一页
公告