自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(24)
  • 问答 (8)
  • 收藏
  • 关注

原创 Bubbliiiing yolov训练模型踩坑记录

运行b站导师bubbliiiing的yolov7代码报错。出错原因就是上传到云服务器的图片损坏了,看下面。解决方法:把本地完好的图片上传到服务器就好了。

2023-09-07 20:19:17 302

原创 labelImg安装解决问题记录

执行命令labelImg ./image ./classes.txt后报错如上图所示。1.首先将名为labelImg的虚拟环境的python版本换为3.9。2.然后在名为labelImg的虚拟环境中安装labelImg。

2023-09-01 16:32:08 93

原创 VGG 安装踩坑

VGG参数由pretrained修改为weights。然后将之前下载的vgg文件删除(如果有的话)然后执行程序,一定要关闭外网vpn。

2023-08-30 10:47:15 99

原创 常见Anaconda Prompt操作总结(陆续更新)

1.conda activate pytorch(虚拟环境名)

2023-08-23 20:02:15 115

原创 Pycharm安装过程遇到的问题总结

Interpreter的路径应该与P1视频中conda create -n pytorch python-3.11创建的名为pytorch的虚拟环境路径一直,否则import torch报错。

2023-08-23 19:49:32 63

原创 pytorch安装过程遇到的问题及解决方案

学习b站博主小土堆PyTorch深度学习快速入门教程P1时遇到下面的报错:解决方法(参考):

2023-08-23 16:33:23 575

原创 利用overflow:auto 来清除浮动

https://my.oschina.net/leipeng/blog/221125

2016-10-13 10:04:48 834

原创 编写最小生成树代码遇到的小问题

#include#include#include#include#define max 0x3f3f3f3fusing namespace std;int map[200][200];int mark[200];int low[200];int n,m,a,b,c,sum,i,j;/*int prim(int pos){ int min; mark[pos]=

2016-08-18 20:14:53 296

原创 引用参数需要左值 比如下列代码中出现的问题

#include#include#includeint mark[10060];int zhan[10060];int di,ding;int k,m,bg,u,v;struct node{    int data;    struct node *firstarc;};struct tu{    struct node dingdian[2

2016-08-13 21:33:26 247

原创 引用参数&

http://blog.csdn.net/qianchenglenger/article/details/16949689

2016-08-13 20:58:42 347

原创 平衡二叉树理解

http://blog.csdn.net/guoqingshuang/article/details/50190119 原文地址#include#includestruct node{ int data; int d; struct node *lchild,*rchild;};int max(int x,int y){ return x>y?x:y;

2016-08-10 21:36:11 227

原创 pat 家谱处理

http://blog.csdn.net/xmzyjr123/article/details/52015445    源代码地址#include #include struct people { int num; char name[15]; char father[15];}t1[101];int main(){ int n, m,i; char na[71]; s

2016-08-10 10:40:02 470

原创 5-1 顺序存储的二叉树的最近的公共祖先问题 (25分)

#include#includeint a[1055];int father;int fatherzhi;void zhaobaba(int n1,int n2){ //printf("%d***%d\n",n1,a[n1]); int mark=1; while(mark) { if(n1>n2) n1=n1/2; e

2016-08-09 20:16:55 2973 1

原创 人活着系列之芳姐和她的猪

http://blog.csdn.net/lucky_vikey/article/details/38424353 原文地址#include#include#define max 10000000 //为什么改成#define max 0x7FFFFFFF 答案就会有错误?int dis[700][700];int juan[10050];

2016-08-05 21:10:28 235

原创 E-最小生成树

代码是看的别人的   排序必须要有选择性 不然会超时  算法必须用克鲁斯卡尔的 用到了并查集#include#include#include#includeusing namespace std;struct node{ int u,v,w;}bian[200010],t;int zhangmen[50010],n,m,ans;int cmp(const void *

2016-08-04 15:57:46 223

原创 出栈序列判定 网上一些代码虽然能AC但是有bug

比如输入51 2 3 4 514 5 3 2 1会输出 no 但应该输出yes 改善后的代码#include#includeint a[10050];int b[10050];int c[10050];int main(){ int n,i; scanf("%d",&n); for(i=0;i<=n-1;i++) {

2016-08-04 14:12:04 178

原创 对引用参数&的理解

#include#includestruct node{ int s; struct node *l; struct node *r;}*a;int sum=0;int n;void creat (int key) //改成struct node *a不对{ if(a==NULL) { a=(struct node *)

2016-07-30 19:27:17 397

原创 出栈序列判定

数据结构实验之栈七:出栈序列判定 Time Limit: 30MS Memory limit: 1000K 题目描述给一个初始的入栈序列,其次序即为元素的入栈次序,栈顶元素可以随时出栈,每个元素只能入栈依次。输入一个入栈序列,后面依次输入多个序列,请判断这些序列是否为所给入栈序列合法的出栈序列。例如序列1,2,3,4,5是某栈的压入顺序,序列4,5,3,2,1是该压栈序列对应的一个出栈

2016-07-27 20:18:31 435

原创 走迷宫

#include #include int n,m,sum=0;int a[100][100],mark[100][100];//设置标记数组b是为了保证每个点只走一次void dfs(int i,int j){ if(a[i][j] || mark[i][j]) { return ; } if(i==n && j==m) {

2016-07-27 15:46:01 253

原创 二维数组传递参数问题

#include#includeint mark[1001];int a[1001][1001];int sum=0;void dfs(int i,int bian)  //如果是形参是a[][]而实参是dfs(a,k,k)会出现bug{    int j;     mark[i]=1;    for(j=1;j    {        if(a[i][

2016-06-07 20:19:43 224

原创 并查集压缩路径

#includeint a[2444444];int findd(int p){ int r=p; while(a[r]!=r) { r=a[r]; } int i=p,j; while(i!=r) { j=a[i]; a[i]=r; i=j; } retu

2016-05-31 20:22:52 241

原创 循环输入问题

#includeint a[100];int main(){ int k,j,i=0; while(scanf("%d",&k)!=EOF&&k>=0) { if(k!=0) { a[i++]=k; } printf("%d\n",i); /* for(j=0;j<=i-1;

2016-05-31 19:35:35 227

原创 全局变量和局部变量以及&的问题

先输入一个字符串 然后求先中后序遍历http://paste.ubuntu.org.cn/4213378#include#includechar w[100];struct node{char data;struct node *l;struct node *r;};void creat(struct node *&T,char *w)  //这里去掉&

2016-05-10 20:46:15 258

原创 返回值的问题(oj2136)

#include#include#includechar *s;char ss[160];int sum1=0;int sum2=0;struct node{    int data;    struct node *l,*r;};void creat(struct node *&T){    int p;    if(*s=='\0')

2016-05-10 20:37:30 266

空空如也

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

TA关注的人

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