自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

FrankDura的博客

keep moving and do not settle

  • 博客(429)
  • 资源 (6)
  • 收藏
  • 关注

原创 pytorch 基于masking对元素进行替换

pytorch 基于masking对元素进行替换. 代码如下. 先展平再赋值.

2023-08-29 19:09:36 2281

原创 mount: wrong fs type, bad option, bad superblock报错 ubuntu

Ubuntu无法挂载磁盘。

2023-07-28 20:21:21 3421

原创 pytorch batchwise 索引 和 替换

pytorch batchwise 索引 和 替换。是inplace操作。

2023-04-27 20:21:00 2294 1

原创 apt-get删除不需要的ppa

apt get删除不需要的ppa

2022-10-26 12:41:43 477

转载 Ubuntu安装蓝牙驱动

Ubuntu 蓝牙 驱动

2022-10-23 15:56:02 4968

原创 Pytorch 神经网络模型保存与加载

网络模型结构保存

2022-10-14 19:00:07 537

原创 创建, 添加SSH key 笔记

ssh key创建 添加 以及处理 too open报错

2022-09-02 17:10:17 206

原创 Ubuntu 外接显示器

Ubuntu 显示器 驱动 显卡

2022-08-13 17:10:28 213

原创 Error: Failed to download metadata for repo ‘docker-ce-stable‘: Cannot download repomd.xml: Cannot d

Error: Failed to download metadata for repo 'docker-ce-stable': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

2022-05-28 17:03:38 4665 1

原创 Ubuntu切换内核

Ubuntu切换内核版本

2022-05-26 14:50:23 2301

翻译 python安装 Autodesk FBX 包

python配置Autodesk SDK

2022-05-26 11:34:39 2540 1

原创 Docker基本命令

docker基本命令

2022-05-20 15:46:47 184

原创 Colab下载文件夹

综述colab下载文件夹代码import os import tarfilefrom google.colab import files#...def generate_and_zip(save_name, target_dir): tar = tarfile.open(save_name,"w") for root,dir_name,files_list in os.walk(target_dir): for file in files_list: pathfil

2022-04-22 23:03:17 1952 2

原创 Unity3D 设置透明材质

描述本文介绍设置Unity3D中物理的透明材质.的步骤.操作对于你创建的基本体. 请注意Mesh Renderer 下Materials部分Element 0.有些初学者会发现你无法编译这个默认的Materials, 这是因为我们需先自定义Materials然后指定到这里,在项目Project中Asset/Materials中创建材料. 设置性质如下:创建完完毕后 拖给刚才的object就好....

2022-04-10 20:15:46 9476

原创 Unity3D WASD和方向键控制多个角色

描述控制两个或者更多角色. 当想要控制多个角色时, 可以直接使用Unity3D提供的input信号来进行控制.只需要在Project settings中进行相应的配置即可.步骤代码: var newMovementVector = new Vector2( Input.GetAxis("Horizontal_user1"), Input.GetAxis("Vertical_user1") );Unity3D中 找到Edit-&gt

2022-04-08 20:59:15 3393

原创 已知深度与内参从相机平面到物理坐标的转换.

已知Zc[uv1]=[fdx0u00fdyv0001][XcYcZc]\begin{gathered}Z_c\begin{bmatrix} u \\ v \\ 1 \end{bmatrix}= \begin{bmatrix} \frac{f}{dx} & 0 & u_0\\0 & \frac{f}{dy} & v_0 \\ 0 & 0 &1 \end{bmatrix} \begin{bmatrix} X_c\\ Y_c \\ Z_c \end{bmat

2022-03-18 20:52:45 463

原创 Realsense获取内参

环境Windows10python3.7代码import pyrealsense2 as rspipeline = rs.pipeline()config = rs.config()config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 30)config.enable_stream(rs.stream.color, 640, 480, rs.format.rgb8, 30)cfg = pipeline.start(co

2022-03-18 19:43:10 1253

原创 Linux安装指定版本的Unity3D

Unity3D在linux安装.

2022-03-14 20:21:55 4209

原创 apex安装

如果你使用了3090,请使用cuda11.1 并配合一下命令 pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html cd apex pip install -v --no-cache-dir --global-option="--cpp_ext" --global-

2022-03-04 09:59:55 2489

原创 RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at /opt/conda/conda-bld/

问题RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at /opt/conda/conda-bld/解决出现这个问题很可能是你的CUDA编号不对。比如你设置的变量中使用了2,3号GPU但是实际上你只有两个GPU0,1 这会导致该错误。...

2021-10-14 19:52:42 1753

原创 Visual studio关闭使用vcpkg

综述Visual studio关闭使用vcpkg方法点击设置项目属性:

2021-09-05 09:38:39 687

原创 expected seqence object with len>=0 or a single integer

综述报错内容:expected seqence object with len>=0 or a single integer解决这个错误一般当模型forward结束后将数据移到了CPU导致的。因此将这部分的cpu().numpy()取出后就可以了。

2021-08-28 22:08:55 1280

原创 pytorch加载部分模型权重

综述pytorch load模型部分权重:checkpoint= torch.load('checkpoint.pth'))model_dict = model.state_dict()pretrained_dict = {k: v for k, v in checkpoint['state_dict'].items() if k in model_dict} model_dict.update(pretrained_dict)model.load_state_dict(model_dict

2021-08-08 18:13:49 696

原创 (0) Unknown: Failed to get convolution algorithm. This is probably because cuDNN failed to initial

问题(0) Unknown: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.[[node Encoder_resnet/resnet_v2_50/conv1/Conv2D (defined at /media/frank/easystore/a

2021-07-30 15:10:16 730

原创 Unity3D error CS0227: Unsafe code may only appear if compiling with /unsafe...

描述Unity3D error CS0227: Unsafe code may only appear if compiling with /unsafe...解决设置File - > BuildSettings -> PlayerSettings -> Player -> OtherSettings -> Allow 'unsage' Code

2021-06-15 21:28:52 1066 2

原创 docker更改存储位置

描述下面介绍如何修改docker的存储位置。版本信息Docker version 20.10.3, build 48d30b5Ubuntu16解决 sudo gedit /etc/docker/daemon.json输入{"data-root":"You path here!"}重启sudo systemctl restart docker.service查看sudo docker info成功。...

2021-06-05 21:29:19 754

原创 Cmake OPENCV_NOT_FOUND

问题描述Cmake OPENCV_NOT_FOUND解决根据你的build路径在cmake gui中设置变量:继续编译即可。

2021-05-25 19:20:32 886 1

原创 Ubuntu删除Steam

sudo apt-get remove steam steam-launchersudo apt-get purge steam steam-launcherrm -rf ~/.local/share/Steam && rm -rf ~/.steam

2021-05-06 14:11:10 2848 1

原创 no known conversion for argument 1 from ‘std::string {aka std::basic_string<char>}’ to ‘const char*

报错no known conversion for argument 1 from ‘std::string {aka std::basic_string<char>}’ to ‘const char*解决字符串后面加上.c_str()

2021-05-05 14:51:56 4764

原创 Booth 算法

综述记一次介绍Booth 算法思想的答疑.正文Here I give the idea and explanation of the algorithm.First, let me introduce the idea:Consider the multiplication of 1101(multiplicand) and 1110 (multiplier).In this process, you may notice that if the current bit in the mult

2021-03-02 11:39:20 1804 3

原创 什么是2.5D 点云?

综述什么是2.5D点云?粗浅理解:left/right, front/back, up/down 看作三维.很多捕捉设备只能捕捉到: left/right, front, up/down -> 能够捕捉到前面,但是捕捉不到后面. 所以是2.5D 点云.

2021-03-01 09:29:47 1113 1

原创 ffmpeg进行视频格式转换.

综述使用ffmpeg完成格式转换代码例如将mov转为mp4ffmpeg -y -i input.mov -vcodec h264 -acodec aac -strict -2 out.mp4

2021-02-22 09:49:46 708

原创 读取txt到numpy array

备份读取txt 为标准shape的numpy array gt_data = [] f2 = open(gt_path,"r") lines = f2.readlines() for line3 in lines: print(line3) cur = line3.strip().split(" ") gt_data.append(cur) gt_data

2021-02-21 19:45:13 265

原创 error: command ‘clang‘ failed with exit status 1

Step1 设置路径:brew info opensslStep2: 运行export LDFLAGS="-L/opt/homebrew/opt/[email protected]/lib"export CPPFLAGS="-I/opt/homebrew/opt/[email protected]/include" 再运行你的安装步骤即可.

2021-02-06 22:53:45 1687

原创 git commit后如何删除/撤回

我在stackoverflow中回答了该问题:https://stackoverflow.com/a/66073093/12838403Here I just post one clear pipeline to do soStep1: Use git log to get the commit ID.git logStep2: Use git reset to go back to the former version:git reset --hard <your commit id

2021-02-06 10:46:41 229

原创 fatal error: cublas_v2.h

我在stackoverflow中回答了该问题:https://stackoverflow.com/a/66044636/12838403Here I put the final solution:Step1: Run findfind /usr/local/ -name cublas_v2.hAnd we find the path of the file:/usr/local/cuda-10.2/targets/x86_64-linux/include/cublas_v2.hStep

2021-02-04 19:35:39 2256 1

原创 报错 OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.

综述报错OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.解决export CUDA_HOME=/usr/local/cuda-X.X

2021-02-04 11:29:07 49737 19

原创 Mac无法写入硬盘

综述mac无法写入硬盘.下载:https://mounty.app/完成后,运行Mounty, 点击 “re mount”即可

2021-01-30 12:13:25 329

原创 最大流与最小割思想

昨天女朋友突然问起最大流最小割的关系:为什么最大流对应着最小割。这就需要用比较生动、简约、明确的语言概括一下思想:(严谨的逻辑证明参考课本)当我们看待最大流的问题时候,我们可以拿出其中一个流的分支来单独考察。这个分支流过不同的管道,每个管道都有着不同的capacity,容易知道,这个分支允许流过的最大值由这些管道中capacity最小的那个管道所决定。(类似于短板效应的思想)事实上我们寻找最小割的过程就是找到所有这样的管道。...

2021-01-29 08:37:43 280

原创 Ubuntu硬盘灰色区域缩小

按照设计,这是系统为root用户保留的5%的空间。可以通过命令设置缩小区域。这里我设置为1%sudo tune2fs -m 1 /dev/sda1tune2fs 1.42.13 (17-May-2015)Setting reserved blocks percentage to 1% (612935 blocks)

2021-01-26 17:40:18 210

routerpassview.zip

RouterPassView用来查看网络配置文件,进而解析文件。可见原链接: https://www.nirsoft.net/utils/router_password_recovery.html windows10

2020-02-24

计算机网络课后题答案

计算机网络参考答案、计算机网络课后题作业答案、计算机网络

2018-09-06

计算机网络实验/报告-SDU

计算机网络的配套实验报告、计算机网络实验、全面的计算机网络实验内容、使用wireshark完成计算机网络实验。

2018-09-06

计算机网络最全课后题答案

计算机网络最全课后题答案, 有中文也有英文。有需要的自取。

2018-07-11

算法导论第三版最全答案中英文

汇集最全算法导论答案资料。主要是英文的,但是也有中文部分。 很好的复习资料!大家加油!

2018-07-06

计算机网络第四版答案(中文)

计算机网络第四版答案(中文)作者:严伟、潘爱民、李晓明等,第一章、第二章、第三章、第四章、第五章、第六章、第七章、第八章答案。中文版答案,解析全面,作业答案。对照英文版。

2018-04-30

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除