- 博客(429)
- 资源 (6)
- 收藏
- 关注
原创 mount: wrong fs type, bad option, bad superblock报错 ubuntu
Ubuntu无法挂载磁盘。
2023-07-28 20:21:21
4392
1
原创 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
5869
1
原创 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
2065
2
原创 Unity3D 设置透明材质
描述本文介绍设置Unity3D中物理的透明材质.的步骤.操作对于你创建的基本体. 请注意Mesh Renderer 下Materials部分Element 0.有些初学者会发现你无法编译这个默认的Materials, 这是因为我们需先自定义Materials然后指定到这里,在项目Project中Asset/Materials中创建材料. 设置性质如下:创建完完毕后 拖给刚才的object就好....
2022-04-10 20:15:46
10641
原创 Unity3D WASD和方向键控制多个角色
描述控制两个或者更多角色. 当想要控制多个角色时, 可以直接使用Unity3D提供的input信号来进行控制.只需要在Project settings中进行相应的配置即可.步骤代码: var newMovementVector = new Vector2( Input.GetAxis("Horizontal_user1"), Input.GetAxis("Vertical_user1") );Unity3D中 找到Edit->
2022-04-08 20:59:15
3592
原创 已知深度与内参从相机平面到物理坐标的转换.
已知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
555
原创 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
1555
原创 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
2571
原创 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
2087
1
原创 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
1398
原创 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
784
原创 (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
790
原创 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
1293
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
919
原创 Cmake OPENCV_NOT_FOUND
问题描述Cmake OPENCV_NOT_FOUND解决根据你的build路径在cmake gui中设置变量:继续编译即可。
2021-05-25 19:20:32
1051
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
3762
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
5414
原创 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
2023
4
原创 什么是2.5D 点云?
综述什么是2.5D点云?粗浅理解:left/right, front/back, up/down 看作三维.很多捕捉设备只能捕捉到: left/right, front, up/down -> 能够捕捉到前面,但是捕捉不到后面. 所以是2.5D 点云.
2021-03-01 09:29:47
1308
1
原创 ffmpeg进行视频格式转换.
综述使用ffmpeg完成格式转换代码例如将mov转为mp4ffmpeg -y -i input.mov -vcodec h264 -acodec aac -strict -2 out.mp4
2021-02-22 09:49:46
967
原创 读取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
321
原创 error: command ‘clang‘ failed with exit status 1
Step1 设置路径:brew info opensslStep2: 运行export LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib"export CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include" 再运行你的安装步骤即可.
2021-02-06 22:53:45
1847
原创 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
265
原创 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
2511
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
56750
19
原创 Mac无法写入硬盘
综述mac无法写入硬盘.下载:https://mounty.app/完成后,运行Mounty, 点击 “re mount”即可
2021-01-30 12:13:25
387
原创 最大流与最小割思想
昨天女朋友突然问起最大流最小割的关系:为什么最大流对应着最小割。这就需要用比较生动、简约、明确的语言概括一下思想:(严谨的逻辑证明参考课本)当我们看待最大流的问题时候,我们可以拿出其中一个流的分支来单独考察。这个分支流过不同的管道,每个管道都有着不同的capacity,容易知道,这个分支允许流过的最大值由这些管道中capacity最小的那个管道所决定。(类似于短板效应的思想)事实上我们寻找最小割的过程就是找到所有这样的管道。...
2021-01-29 08:37:43
330
原创 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
265
routerpassview.zip
2020-02-24
计算机网络第四版答案(中文)
2018-04-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人