- 博客(24)
- 问答 (8)
- 收藏
- 关注
原创 Bubbliiiing yolov训练模型踩坑记录
运行b站导师bubbliiiing的yolov7代码报错。出错原因就是上传到云服务器的图片损坏了,看下面。解决方法:把本地完好的图片上传到服务器就好了。
2023-09-07 20:19:17 430
原创 labelImg安装解决问题记录
执行命令labelImg ./image ./classes.txt后报错如上图所示。1.首先将名为labelImg的虚拟环境的python版本换为3.9。2.然后在名为labelImg的虚拟环境中安装labelImg。
2023-09-01 16:32:08 194
原创 VGG 安装踩坑
VGG参数由pretrained修改为weights。然后将之前下载的vgg文件删除(如果有的话)然后执行程序,一定要关闭外网vpn。
2023-08-30 10:47:15 131
原创 Pycharm安装过程遇到的问题总结
Interpreter的路径应该与P1视频中conda create -n pytorch python-3.11创建的名为pytorch的虚拟环境路径一直,否则import torch报错。
2023-08-23 19:49:32 87
原创 编写最小生成树代码遇到的小问题
#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 332
原创 引用参数需要左值 比如下列代码中出现的问题
#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 269
原创 平衡二叉树理解
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 245
原创 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 481
原创 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 3006 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 254
原创 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 251
原创 出栈序列判定 网上一些代码虽然能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 196
原创 对引用参数&的理解
#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 410
原创 出栈序列判定
数据结构实验之栈七:出栈序列判定 Time Limit: 30MS Memory limit: 1000K 题目描述给一个初始的入栈序列,其次序即为元素的入栈次序,栈顶元素可以随时出栈,每个元素只能入栈依次。输入一个入栈序列,后面依次输入多个序列,请判断这些序列是否为所给入栈序列合法的出栈序列。例如序列1,2,3,4,5是某栈的压入顺序,序列4,5,3,2,1是该压栈序列对应的一个出栈
2016-07-27 20:18:31 464
原创 走迷宫
#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 266
原创 二维数组传递参数问题
#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 233
原创 并查集压缩路径
#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 258
原创 循环输入问题
#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 239
原创 全局变量和局部变量以及&的问题
先输入一个字符串 然后求先中后序遍历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 278
原创 返回值的问题(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 279
空空如也
sdut oj上的题目总是越界 哪里有问题?
2016-06-20
这个环境配置要怎么改?
2016-06-04
知道二叉树的中序和后序建立二叉树的代码哪里有问题?为什么只能建立3个结点?
2016-05-14
知道二叉树的后序遍历和中序遍历求深度的代码那有错?
2016-05-14
关于二叉树的创建与遍历 请问哪里有问题我的代码
2016-05-09
金字塔问题 错在哪了 谢谢
2015-10-06
新手求助 画金字塔问题 错在哪 万分感激
2015-10-06
TA创建的收藏夹 TA关注的收藏夹
TA关注的人