自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 cp: cannot stat ‘pth/to/folder‘: Permission denied

cp: cannot stat 'pth/to/folder': Permission denied。

2023-01-10 02:49:04 1057

原创 freezing model parameters in pytorch;pytorch中固定模型参数的方法

freezing model parameters in pytorch;pytorch中固定模型参数的方法

2022-08-06 10:41:11 805

原创 RuntimeError: The server socket has failed to listen on any local network address. The server socket

pytorch; torch.distributed.launch;

2022-08-05 22:09:06 13294 4

原创 [Recommended material] self attention in Transformer, clearly explained

Transformer; self-attention, explained

2022-06-10 12:33:22 133

原创 unbuntu: no network selected for sharing

解决方法然后sudo reboot即可解决

2022-02-28 16:33:20 1061 2

原创 VNC viewer timeout; 远程连接ubuntu系统超时

root 用户下,输入:iptables -I INPUT -p tcp --dport 5901:5903 -j ACCEPT即可解决

2022-02-28 14:26:14 1988

原创 package ‘gdm‘ has no installation candidate

ubuntu安装软件;登陆管理器

2022-02-28 12:49:26 1987

原创 cloudreve使用nginx反向代理时上传卡死或速度慢的解决办法

nginx;反向代理;cloudreve慢;cloudreve卡死;宝塔

2022-02-26 02:49:11 4664

原创 Downloading C/C++ language components (Linux / x86_64)

ProblemThe report from vscode (as shown in the title) cannot be canceled and keep showing there. This happens when I am trying to build a c++ environment on the server via vscode.SolutionDownload cpptools-linux.vsix (click todownload) from vscode-cpp

2021-09-06 21:25:22 309

原创 汉诺塔Hanoi的python非递归实现

请先点击阅读文字部分个人认为该文章比较详细地总结出了汉诺塔的移动规律。(详见链接文字部分)总体思路:确定要移动的盘子的序号,如1号,2号,…,k号确定该盘子移动的方向。根据文章所述,确定方式如下:N 为盘子总数,k为盘子的序号数。若 N+k 是偶数,则盘子移动方向为从右向左;若 N+k为奇数,则则盘子移动方向为从左向右。例如,N=5,k=1,则 N+k=6 为偶数。那么1号盘的...

2021-08-22 22:03:13 1788

原创 AttributeError: ‘int‘ object has no attribute ‘numel‘

ProblemI was trying to enumerate through a torch.utils.data.DataLoaderobject, where it takes self-defined dataset_ as a parameter. The dataset looks like this: dataset_.append((img, label, label, is_backdoor, acc, conf)).Printing print(type(img),type(raw

2021-08-22 21:49:00 2231

原创 Cannot run the remote Python interpreter: Can‘t get remote credentials for deployment server

reference: Here

2021-08-22 09:51:36 1320

原创 ssh: Could not resolve hostname e: Temporary failure in name resolution

I was using scp command to download files and folders to local environment. This was my command:scp -r xxx@10.26.9.90:/data/xxx/folder/ e:/data/xxx/But the following error raised:ssh: Could not resolve hostname e: Temporary failure in name resolution

2021-08-21 20:59:27 2075

原创 Install terminal quit with output: bash: powershell: command not found; 试图写入管道不存在

I need to connect to server for running experiments. This is what I get when trying to connect to server with ssh-remote 0.50.0 and vscode 1.58.3e276df8ca7e: runningAcquiring lock on /home/chenguiming/.vscode-server/bin/c3f126316369cd610563c75b1b1725e067

2021-07-19 22:55:51 5879 2

原创 利用functiontools规避带参数函数

原创文章,谢绝转载!在写程序时,我们有时需要使用函数A捆绑函数B,而函数A规定,它所捆绑的函数不能带有参数,而函数B恰恰带有参数。这种情况下,我们可以使用functiontools 中的partial 和updated_wrapper解决这一问题。## from: http://louistiao.me/posts/adding-__name__-and-__doc__-attributes-...

2020-04-18 03:42:35 518 1

原创 利用turtle库实现我的第一个算法

import turtle tt = turtle.Turtle()ts = turtle.Screen()'''约省略100行代码'''def MonsterAim(d=20): a = tt.position() b = mons.position() x = (a-b)[0] y = (a-b)[1] # print(x,y) #...

2020-04-17 02:14:59 259

原创 sample

hc0112的第一条博客千万不要手动删除任何软件!一定要用杀毒软件进行彻底删除!4/14/2020

2020-04-14 01:50:33 167

空空如也

空空如也

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

TA关注的人

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