- 博客(181)
- 收藏
- 关注
原创 HJ16 购物单
python初始化数组如果用列表需要注意行的复制要用for i in range,如果直接用星号乘会是浅拷贝导致修改一个值所有行的对应位置都会改变。dp[i][j] i是遍历到第i个物件,j是当前可用预算,dp[i][j]为遍历到第i个物件有预算j时的最大满足值。
2023-10-26 14:44:40 220
原创 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 74
原创 ResolvePackageNotFound: - cudatoolkit=11.1 yaml
命令行:conda env create -f environment.yml。加上 - conda-forge。我用yaml文件下载环境,在 -nvidia 下面。
2023-06-26 11:28:15 1043 1
原创 vscode连远程服务器时无法写入
我修改了Temp文件的权限后不能解决,具体操作是修改Temp文件的所有用户的权限为完全控制。原因在于,它是对Temp文件下的某个sh文件没有写入权限,而我修改的是Temp文件的权限。权限问题,某个用户没有写入权限, 对Temp\xxxxxx.sh文件的写入权限。应该要使得Temp下的文件,递归地,所有子文件都有写入权限才行。勾选“使用可从次对象继承的权限项目替换所有子对象的权限项目”这样sh文件就有写入权限了。左点击Temp文件,
2023-06-25 11:42:32 1170
原创 PermissionError: [WinError 5] 拒绝访问。: ‘C:\\Users\\Administrator\\AppData\\Local\\Temp
修改Temp文件属性,权限对象设为"all user",控制权限设为“完全控制"
2023-06-21 19:05:26 1258
原创 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 115
原创 [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 531 1
原创 python环境里明明有那个库但是就no module named XXX
python环境里有某个库但是报错说no module named XXX
2023-02-09 11:10:58 1054
原创 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 6051
原创 PIL.Image 打开的图片用numpy和to_tensor获得的数据的shape的不同
PIL.Image 打开的图片用numpy 和to_tensor获得的数据的shape的不同
2023-02-03 16:34:14 293
原创 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 1153
原创 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 1028
原创 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 10808 2
原创 AttributeError: module ‘numpy‘ has no attribute ‘object‘
AttributeError: module 'numpy' has no attribute 'object' tensorboard
2023-01-31 17:42:10 31585
原创 PackagesNotFoundError: The following packages are not available from current channels:
packages are not available from current channels
2023-01-06 10:33:22 266
原创 mix_transformer demo 没有写原因只写了killed程序就停了
mix_transformer killed 降低输入大小解决问题
2023-01-04 11:42:53 245
原创 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 2651 2
原创 ModuleNotFoundError: No module named ‘setuptools.command.build‘
No module named 'setuptools.command.build'pip install -U pip setuptools 更新一下即可
2023-01-01 17:47:22 1215
原创 怎么推理还cuda out of memory
推理还cuda out of memory 是有问题的,要加上不计算梯度的with torch.no_grad()
2022-12-30 11:03:03 161
原创 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 1537
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人