会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
gitLab
博客园
首页
新随笔
联系
订阅
管理
2023年10月18日
低水平特征(low-level)高水平特征(high-level),傅里叶光谱高频低频
摘要: 图像的频率:灰度值变化剧烈程度的指标,是灰度在平面空间上的梯度。 (1)什么是低频? 低频就是颜色缓慢地变化,也就是灰度缓慢地变化,就代表着那是连续渐变的一块区域,这部分就是低频. 对于一幅图像来说,也就是边缘以内的内容为低频,而边缘内的内容就是图像的大部分信息,即图像的大致概貌和轮廓,是图像的近似
阅读全文
posted @ 2023-10-18 10:25 oneDonkey
阅读(422)
评论(0)
推荐(0)
2023年10月10日
CrossEntropyLoss
摘要: import torch import numpy as np x = torch.randn((64,224,224)) y = torch.rand((64,224,224)) y = (y > 0.5).float() y = torch.tensor(y) fun = torch.nn.Cr
阅读全文
posted @ 2023-10-10 23:07 oneDonkey
阅读(23)
评论(0)
推荐(0)
2023年10月7日
BCEWithLogitsLoss报错RuntimeError: result type Float can't be cast to the desired output type Long
摘要: loss = F.binary_cross_entropy_with_logits(input, target) input错写成了Long类型,target错写成了Int类型 input与target需要的是float类型
阅读全文
posted @ 2023-10-07 22:41 oneDonkey
阅读(324)
评论(0)
推荐(0)
2023年9月26日
nn.crossentropyloss报错RuntimeError: expected scalar type Long but found Int
摘要: 1.数据是tensor 2.数据类型设为int64
阅读全文
posted @ 2023-09-26 22:46 oneDonkey
阅读(107)
评论(0)
推荐(0)
2023年5月13日
Jupyter Lab安装,中文设置,自动补全与代码提示
摘要: 1.安装 选择任意文件夹作为安装位置 官网安装步骤:Project Jupyter | Installing Jupyter 嫌慢可以加镜像: pip install jupyterlab -i https://pypi.tuna.tsinghua.edu.cn/simple 2.设置中文 下载中文
阅读全文
posted @ 2023-05-13 23:11 oneDonkey
阅读(7958)
评论(0)
推荐(0)
2023年5月11日
基于Pytorch的简单深度学习项目实战
摘要: 基于Pytorch的简单深度学习项目实战_pytorch深度学习项目实战_NPC_0001的博客-CSDN博客 基于以上补充: 所需数据阿里网盘分享: (暂不支持分享,后续补上) 代码: import torch.utils.data import torchvision from torch im
阅读全文
posted @ 2023-05-11 22:14 oneDonkey
阅读(188)
评论(0)
推荐(0)
2023年5月4日
无CUDA安装PyTorch
摘要: 1.官网选择 2.加国内镜像快速下载 pip3 install torch torchvision torchaudio -i https://pypi.tuna.tsinghua.edu.cn/simple 3.验证是否安装成功 import torch print(torch.__version
阅读全文
posted @ 2023-05-04 23:47 oneDonkey
阅读(295)
评论(0)
推荐(0)
2023年1月17日
ParseErrorException: Lexical error, Encountered: "=" (61), after :
摘要: this.$refs["form"].validate(valid => {}) 改成这样(换行) this.$refs["form"] .validate(valid => {})
阅读全文
posted @ 2023-01-17 21:42 oneDonkey
阅读(306)
评论(0)
推荐(0)
2023年1月13日
TypeError: Cannot read property ‘resetFields‘ of undefined
摘要: this.$refs.addForm.resetFields(); addForm指的是要重置表单的ref值 也可以试试这种重置方式 if(this.$refs.form!=undefined){ this.$nextTick(()=>{ this.$refs['form'].clearValida
阅读全文
posted @ 2023-01-13 22:12 oneDonkey
阅读(50)
评论(0)
推荐(0)
2023年1月10日
MySQL中大于,大于等于,小于,小于等于的转义写法
摘要: 原文链接:https://blog.csdn.net/weixin_44299027/article/details/109178767
阅读全文
posted @ 2023-01-10 13:33 oneDonkey
阅读(239)
评论(0)
推荐(0)
下一页
点击右上角即可分享