自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 BUG解决:ImportError: cannot import name ‘_LinearWithBias‘ from ‘torch.nn.modules.linear‘

BUG解决:ImportError: cannot import name '_LinearWithBias' from 'torch.nn.modules.linear'

2024-06-05 11:26:45 187

原创 代码:图像生成任务的平均ssim,psnr,lpips的计算

图像生成任务的平均ssim,psnr,lpips的计算

2024-05-31 15:51:54 279

原创 BUG:self._fh.write(image, **kwargs) TypeError: write() got an unexpected keyword argument ‘fps‘

解决TypeError: write() got an unexpected keyword argument 'fps'的BUG

2024-05-29 09:02:25 238

原创 用命令行统计一个文件夹里的所有文件数量(可能有文件位于子文件夹)linux

用命令行统计一个文件夹里的所有文件数量(可能有文件位于子文件夹)linux

2024-05-18 15:35:39 217

原创 BUG解决:Couldn‘t install vscode server on remote server, install script returned non-zero exit status

BUG解决:Couldn't install vscode server on remote server, install script returned non-zero exit status

2024-05-09 16:07:29 178

原创 BUG:conda: command not found解决方法

conda: command not found解决方法

2024-05-09 15:53:13 266

原创 把一个文件夹里的图片按照比例切分成train和test数据,分别放入两个文件夹

把一个文件夹里的图片按照比例切分成train和test数据,分别放入两个文件夹

2024-04-29 12:21:43 152 1

原创 diffusion-Med生成所需环境配置记录

diffusion-Med容易出问题的是pytorch-lightning等的包的配置。

2024-04-22 11:10:09 129

原创 数据构建-把所有文件夹切分成train,val,test

训练数据是文件夹数据(比如3DMRI医学图像),一个文件夹视为一个训练数据,需要把所有文件夹(而非文件)切分成train,val,test

2024-04-22 11:01:14 319

原创 vscode在python-Debug种使用conda虚拟环境的解释器,以及args的配置。

Vscode在python-Debug种使用conda虚拟环境的解释器,以及args的配置。

2024-03-26 15:37:47 554

原创 使用hfd工具快速下载huggingface模型权重-应该是目前最快的

之前的文章讲过,因为某些原因下载huggingface模型权重太慢。之前提到过三种方法,这里介绍第四种。

2024-03-26 15:28:28 1043 2

原创 torch.distributed.DistNetworkError: The server socket has failed to listen on any local network...

pytorch-lightning DDP端口报错。

2024-03-26 15:09:34 1138

原创 大模型下载报错:aria2c/git-lfs is not installed, Please install it first.

大模型下载报错:aria2c/git-lfs is not installed, Please install it first.

2024-03-19 11:15:38 1487

原创 使用tar命令将.tar文件和.tar.gz文件解压到指定的文件夹

使用tar命令将tar和tar.gz文件解压到指定的文件夹。

2024-03-19 10:29:16 2707

原创 numpy实现Conv2d卷积

用numpy实现一个2d卷积,不允许调用其他库函数。

2024-03-18 17:26:43 480

原创 tmux最基础的一点应用-不用一直挂着ssh,可以干点别的事情

跑程序要很久,需要干别的事情,电脑不能一直开,可以使用tmux来管理。

2024-03-18 16:48:11 391

原创 服务器SSH连不上并报错:Error connecting to agent: No such file or directory

服务器SSH连不上并报错:Error connecting to agent: No such file or directory

2024-03-13 17:56:04 567

原创 python保存和读取列表的一种方法

python如何保存和读取列表

2024-02-13 08:23:15 455

原创 取消默认进入conda的base环境

取消默认进入conda的base环境

2024-01-23 23:58:09 691

原创 命令行终端查看当前目录下子文件和子文件夹数量

命令行查看当前目录下子文件和子文件夹数量

2023-12-29 13:41:29 519

原创 解决BUG:return yaml.load(stream) TypeError: load() missing 1 required positional argument: ‘Loader‘

解决了yaml的一个BUG:yaml.load(stream)TypeError: load() missing 1 required positional argument: 'Loader'

2023-12-16 20:52:58 165

原创 解决BUG:ModuleNotFoundError: No module named ‘hydra.utils‘; ‘hydra‘ is not a package

解决BUG:ModuleNotFoundError: No module named 'hydra.utils'; 'hydra' is not a package

2023-12-16 20:33:09 804

原创 linux系统解决huggingface下载缓存不够的问题

在linux系统解决huggingface下载缓存不够的问题

2023-12-16 20:06:33 449

原创 解决huggingface模型权重无法下载的问题

解决下载huggingface模型权重无法下载的问题

2023-12-15 22:19:25 2103 1

原创 解决windows11下SSH不能连接远端服务器-Permission denied (publickey)-Permissions for ‘xxx‘ are too open-管道不存在等问题

使用VScode时,解决windows11下SSH不能连接远端服务器-Permission denied (publickey)-Permissions for 'xxx' are too open-管道不存在等问题。

2023-10-18 13:08:22 2796

原创 PiCO调BUG记录:偏标记学习-PiCO: Contrastive Label Disambiguation for Partial Label Learning

PiCO调BUG记录,文章为偏标记学习领域(PiCO: Contrastive Label Disambiguation for Partial Label Learning)

2023-10-16 10:32:55 167

原创 PyG-GAT-Cora(在Cora数据集上应用GAT做节点分类)

用PyG框架,在Cora数据集上应用GAT做节点分类任务。

2023-09-19 22:07:43 437

原创 PyG-GCN-Cora(在Cora数据集上应用GCN做节点分类)

用PyG框架,在Cora数据集上应用GCN做节点分类任务。

2023-09-19 21:59:06 359

原创 Pytorch-CNN-CIFAR10

用Pytorch实现了CNN对CIFAR10的分类。

2023-09-18 22:24:17 182

原创 Pytorch-MLP-CIFAR10

用pytorch框架,MLP写了一个CIFAR10的分类器,附加注意事项和运行截图。

2023-09-18 22:02:37 661

原创 Pytorch-CNN-Mnist

Pytorch框架,用CNN实现了对Mnist数据集的分类。

2023-09-17 21:40:05 342

原创 Pytorch-MLP-Mnist

用pytorch框架,MLP写了一个mnist分类器,附加注意事项和运行截图。

2023-09-17 20:59:40 427 1

原创 报错解决:RuntimeError: expected scalar type Long but found Float

报错解决:RuntimeError: expected scalar type Long but found Float.发现是数据类型不匹配导致的。

2023-09-07 21:42:55 414

原创 matlab几种求解器的选择fsolve-sole-vpasolve

关于matlab求解器的选择-fsolve等。发现求数值解方面fsolve似乎更好。

2023-09-07 21:33:37 1076

原创 matlab求解方程组-求解过程中限制解的取值范围

求解方程组的时候,对某些未知数的求解结果的取值范围有要求。对一些待求解量有限制条件。

2023-09-07 09:37:41 1499

原创 给定三个点的坐标求夹角

给定三个点的x,y坐标,现在要求三角形任意两边之间的夹角

2023-09-07 09:22:38 1084

原创 ROC曲线绘制注意事项和小技巧

ROC曲线绘制参数修改

2023-09-07 08:41:58 94

原创 BFGS算法python实现

【代码】BFGS算法python实现。

2023-09-07 08:40:10 396

原创 简易版剪辑视频程序(python-VideoFileClip)

使用VideoFileClip实现了一个简单的剪辑软件程序

2023-09-02 10:54:32 645

原创 BUG解决:ValueError: ffplay from ffmpeg not found, necessary to play audio.

解决了ffmpeg找不到或无法安装的bug

2023-07-21 17:16:58 237

空空如也

空空如也

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

TA关注的人

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