自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(181)
  • 收藏
  • 关注

原创 HJ18 识别有效的IP地址和掩码并进行分类统计

先将十进制带点的ip地址转成二进制序列(没有点),再直接比较。rjust右对齐,左边补充0.

2023-10-27 16:14:49 182

原创 HJ17坐标移动

字符串处理

2023-10-26 23:38:31 222

原创 HJ16 购物单

python初始化数组如果用列表需要注意行的复制要用for i in range,如果直接用星号乘会是浅拷贝导致修改一个值所有行的对应位置都会改变。dp[i][j] i是遍历到第i个物件,j是当前可用预算,dp[i][j]为遍历到第i个物件有预算j时的最大满足值。

2023-10-26 14:44:40 172

原创 python统计秒数

python 统计秒数

2023-09-20 17:16:58 543

原创 python zip unzip file

python zip unzip file

2023-09-20 17:14:48 119

原创 windows下激活conda环境

【代码】windows下激活conda环境。

2023-08-08 14:40:54 153

原创 ubuntu cmake 升级

执行 cmake --version,出现版本号即安装成功。

2023-07-25 17:19:19 916

原创 linux安装boost

【代码】linux安装boost。

2023-07-25 11:28:54 120

原创 Couldn‘t create temporary file /tmp/apt.conf.74g9aU for passing config to apt-key

Couldn’t create temporary file /tmp/apt.conf.74g9aU for passing config to apt-keychmod 777 /tmp

2023-07-25 11:26:58 50

原创 ResolvePackageNotFound: - cudatoolkit=11.1 yaml

命令行:conda env create -f environment.yml。加上 - conda-forge。我用yaml文件下载环境,在 -nvidia 下面。

2023-06-26 11:28:15 831 1

原创 vscode连远程服务器时无法写入

我修改了Temp文件的权限后不能解决,具体操作是修改Temp文件的所有用户的权限为完全控制。原因在于,它是对Temp文件下的某个sh文件没有写入权限,而我修改的是Temp文件的权限。权限问题,某个用户没有写入权限, 对Temp\xxxxxx.sh文件的写入权限。应该要使得Temp下的文件,递归地,所有子文件都有写入权限才行。勾选“使用可从次对象继承的权限项目替换所有子对象的权限项目”这样sh文件就有写入权限了。左点击Temp文件,

2023-06-25 11:42:32 889

原创 PermissionError: [WinError 5] 拒绝访问。: ‘C:\\Users\\Administrator\\AppData\\Local\\Temp

修改Temp文件属性,权限对象设为"all user",控制权限设为“完全控制"

2023-06-21 19:05:26 965

原创 ERROR: 404 Client Error: Not Found for url

pip install not found for url

2023-06-02 14:59:03 141

原创 CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘.

conda activate your shell has not been properly configured to use 'conda activate'

2023-06-02 12:12:30 89

原创 anaconda permission denied

conda permission denied

2023-04-06 11:23:06 605 1

原创 页面文件太小无法完成操作

pytorch 本地跑程序 页面太小,无法完成操作。

2023-03-30 18:47:00 190

原创 从视频流里获取第一帧图片

从视频流里获取第一帧图片

2023-03-24 11:10:56 236

原创 windows下路径问题

windows 路径双反斜杠可以

2023-03-10 18:37:53 95

原创 训练了两回

训练了两回因为类的init函数已经调用了train函数

2023-02-22 11:09:15 105

原创 [W pthreadpool-cpp.cc:90] Warning: Leaking Caffe2 thread-pool after fork. (function pthreadpool)

keaking caffe2 thread-pool after fork

2023-02-20 11:18:34 503 1

原创 python环境里明明有那个库但是就no module named XXX

python环境里有某个库但是报错说no module named XXX

2023-02-09 11:10:58 1003

原创 Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding

python3 failed to get the Python codec of the filesystem encoding

2023-02-08 16:34:20 4433

原创 pytorch生成绿色背景图片

pytorch生成绿色背景图片

2023-02-07 15:56:41 212

原创 ImportError: No module named site

No module named site

2023-02-06 17:37:26 3079

原创 PIL.Image 打开的图片用numpy和to_tensor获得的数据的shape的不同

PIL.Image 打开的图片用numpy 和to_tensor获得的数据的shape的不同

2023-02-03 16:34:14 260

原创 获取PIL.Image格式的图片的shape

获取PIL.Image格式的图片的shape

2023-02-03 14:12:41 1431

原创 mix_transformer_demo

mix_transformer_demo

2023-02-01 18:58:38 430

原创 RuntimeError: Default process group has not been initialized, please make sure to call init_process_

default porcess group has not been initialized, please make sure to call init_process_syncbatchnorm 只能多GPU训练

2023-02-01 18:41:54 1113

原创 ERROR: Could not install packages due to an EnvironmentError: [Errno 28] No space left on device

pip install no space left on device

2023-02-01 18:03:29 943

原创 ImportError: libtorch_cuda_cu.so: cannot open shared object file: No such file or directory

libtorch_cuda_cu.so:cannot open shared object file: No such file or directory

2023-02-01 10:57:27 8198 2

原创 AttributeError: module ‘numpy‘ has no attribute ‘object‘

AttributeError: module 'numpy' has no attribute 'object' tensorboard

2023-01-31 17:42:10 31008

原创 PackagesNotFoundError: The following packages are not available from current channels:

packages are not available from current channels

2023-01-06 10:33:22 257

原创 mix_transformer demo 没有写原因只写了killed程序就停了

mix_transformer killed 降低输入大小解决问题

2023-01-04 11:42:53 212

原创 ERROR: No matching distribution found for torch===1.7.0+cu110

no matching distribution found for torch==1.7.0+cu110-f https://download.pytorch.org/whl/torch_stable.html

2023-01-02 15:37:04 2353 2

原创 ERROR: No matching distribution found for venv

venv python 自带,无需自己额外安装

2023-01-01 17:58:10 493

原创 ModuleNotFoundError: No module named ‘setuptools.command.build‘

No module named 'setuptools.command.build'pip install -U pip setuptools 更新一下即可

2023-01-01 17:47:22 854

原创 怎么推理还cuda out of memory

推理还cuda out of memory 是有问题的,要加上不计算梯度的with torch.no_grad()

2022-12-30 11:03:03 126

原创 background matting v3 inference webcam

opencv webcam read show

2022-12-29 19:05:24 182

原创 vscode import torch 这些代码没有颜色

vscode 代码颜色问题

2022-12-22 14:40:49 796

原创 The pylance server crashed 5 times in the last 3 minutes

The pylance server crashed 5 times in the last 3 minutes

2022-12-22 14:34:12 1095

空空如也

空空如也

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

TA关注的人

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