
随手记
Jolen_xie
生活性博士研究生
展开
-
服务器下flash-attention安装报错error: [Errno 18] Invalid cross-device link:
中os.rename(wheel_filename, wheel_path)为shutil.move(wheel_filename, wheel_path)原创 2025-03-05 13:21:26 · 167 阅读 · 0 评论 -
HuggingFace下载模型TimeoutError
Q:AutoTokenizer.from_pretrained里HuggingFace提示HTTPSConnectionPool(host=‘huggingface.co’, port=443)A:在python文件开头加入如下代码。原创 2025-03-05 11:39:42 · 209 阅读 · 0 评论 -
pycocotools报错 if type(resFile) == str or type(resFile) == unicode: NameError: name ‘unicode‘ is
pycocotools报错 if type(resFile) == str or type(resFile) == unicode: NameError: name 'unicode' is not defined原创 2022-10-15 11:39:51 · 594 阅读 · 0 评论 -
编译库文件时报错move_base: symbol lookup error: undefined symbol:
Q:编译库文件时报错/opt/ros/kinetic/lib/move_base/move_base: symbol lookup error: /home/xjl/deepDisk/ubuntu/fangzhen/AstarPlugin/devel/lib//libglobal_planner_lib.so: undefined symbol: _ZN5Astar7getPathER5PointS1_A:CMakeLists中编译库时未完全添加所需的可执行文件文件结构:--fun----inclu原创 2022-04-12 18:42:12 · 706 阅读 · 0 评论 -
github推送Please make sure you have the correct access rights and the repository exists.
A: github推送和拉取报错:kex_exchange_identification: read: Connection reset by peerfatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.Q: 我选择重新生成SSH key,具体步骤如下:本地生成SSH keyssh-keygen原创 2022-03-17 16:40:20 · 1002 阅读 · 0 评论 -
python使用Axes3D画三维图加入legend图例时报错AttributeError: ‘Poly3DCollection‘ object has no attribute ‘_edgecolo
Q:python使用Axes3D画三维图加入legend图例时报错AttributeError: 'Poly3DCollection' object has no attribute '_edgecolors2d'报错源代码fig = plt.figure()ax = Axes3D(fig)X, Y = np.meshgrid(3, 3)ax.plot_surface(X, Y, np.zeros([3,3], label="surf")ax.legend()plt.show()A:在ax原创 2021-12-06 22:25:25 · 4863 阅读 · 1 评论 -
ubuntu先anaconda中python3与ros共存时opencv报错
Q: ubuntu使用python调用opencv报错ImportError: /opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so: undefined symbol: PyCObject_TypeA:主要是掉用来ros总python2中的cv2,因此在代码前如下代码:import syssys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages')...原创 2021-11-30 15:30:31 · 2297 阅读 · 0 评论 -
把pdf转为高清jpg图片,其dpi为300以上
把pdf转为高清jpg图片,其dpi为300以上在用latex写好伪代码后生成的pdf,想生成jpg格式,可以用如下方法工具:Adobe Acrobat Pro DC如果是:文件>导出到>图像这样的图像dpi较小,有很重的锯齿感1. 点击窗口右侧“导出PDF”2. 选择图像3. 电机JPEG右侧的齿轮,然后根据需求设置即可...原创 2021-11-05 19:41:21 · 7409 阅读 · 0 评论 -
latex伪代码
latex伪代码需要包括的包\usepackage[ruled]{algorithm2e}案例代码\begin{algorithm}[H]\caption{algorithm caption}%算法名字\LinesNumbered %要求显示行号\KwIn{input parameters A, B, C}%输入参数\KwOut{output result}%输出some description\; %\;用于换行\For{condition}{ only if\; \If{c原创 2021-11-05 12:23:59 · 1187 阅读 · 0 评论 -
conda虚拟环境下使用pip安装包报错Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)
Q1: conda虚拟环境下使用pip安装软件报错:WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection obj原创 2021-10-21 11:05:13 · 8933 阅读 · 0 评论 -
随机名字获取,杜绝取名烦恼
随机名字获取from urllib.request import Request, urlopenreq = Request("https://frightanic.com/goodies_content/docker-names.php", headers={'User-Agent': 'Mozilla/5.0'})webpage = str(urlopen(req).read())word = webpage.split("b\'")[1]word = word.split("\\")[0]原创 2021-10-21 10:49:32 · 1303 阅读 · 0 评论 -
用latexdiff输出论文修改痕迹
转载: https://zhuanlan.zhihu.com/p/267887565仅做学习使用第一步我们先在overleaf上创建一个示例项目,文件名为main.tex,pdf渲染效果如下第二步,我们随便在main.tex上做点修改,把修改后的文件取个名字叫做revise.tex,修改后的效果如下乍一看不太容易看出来哪里作出了修改,我们现在用latexdiff处理一下,latexdiff在tex套装里默认安装了,可以在本地执行,网上也有在线版的,但是可能不安全。现在在本地终端里执行一下命令:转载 2021-10-09 09:36:54 · 3835 阅读 · 0 评论 -
C++读取txt文件里每行的数据
#include <iostream>#include <stdio.h>#include <stdlib.h>#include <string.h>using namespace std;const char *board_list = "./example_list.txt";int main(int argc, char **argv){ FILE *f = fopen(board_list, "rt");原创 2021-08-06 22:11:00 · 4904 阅读 · 0 评论 -
boost::bind(&mynteye::imageCallback,this, _1, _2)报错error: no match for call to ‘(boost::_mfi::mf2<vo
在使用message_filters做传感器融合时,在sync->registerCallback中的boost::bind出现报错 image_sub_left = new message_filters::Subscriber<sensor_msgs::Image>(nh_, "/mynteye/left/image_color",1,ros::TransportHints().tcpNoDelay()); image_sub_right = new message_f原创 2021-08-06 14:31:00 · 2033 阅读 · 0 评论 -
安装ROS使用sudo rosdep init 报错ERROR: cannot download default sources list from:
Q:安装ROS使用rosdep init报错sudo apt install python-rosdepsudo rosdep initrosdep update报错:ERROR: cannot download default sources list from: https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list Website may be down.A:解原创 2021-07-03 10:46:24 · 1080 阅读 · 0 评论 -
Reinforcement learning分支结构
原创 2021-05-21 16:12:00 · 159 阅读 · 0 评论 -
conda创建环境报错conda.core.subdir_data.Response304ContentUnchanged
该情况可能是源出现了问题1.换回默认源conda config --remove-key channels2.再尝试创建环境3.如果想再重现添加清华镜像源conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/con原创 2021-05-18 16:28:26 · 839 阅读 · 0 评论 -
Tensorflow报错UnknownError (see above for traceback): Failed to get convolution algorithm. This is pro
环境配置为Ubuntu16.04、tensorflow 1.13.1、cuda10、cudnn7.6.4。在运行tensorflow代码时报错UnknownError (see above for traceback): Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was pr原创 2021-05-04 19:19:19 · 322 阅读 · 1 评论 -
Latex的图片、文献、引用跳转链接
使用链接跳转需要使用宏包hyperref\usepackage[colorlinks,linkcolor=blue,anchorcolor=blue,citecolor=red]{hyperref}clolorlink的意思是将超链接以颜色来标识,而并非使用默认的方框来标识。linkcolor, anchorcolor, citecolor分别表示标识link, anchor, cite等各种链接的颜色。若不想使用彩色,就使用black即可...原创 2021-04-04 16:21:11 · 2863 阅读 · 1 评论