- 博客(48)
- 资源 (1)
- 收藏
- 关注
原创 普通用户执行Linux服务器关机和重启命令
确保 /sbin/shutdown 和 /sbin/reboot 文件具有适当的权限。普通用户通常需要通过 sudo 来执行这些操作。授予普通用户关机和重启权限可能会带来安全风险。请确保仅授权信任的用户,并且在必要时进行监控。
2024-09-19 14:36:56
343
原创 将yolov8官方代码训练完成RTDETR之后的YOLO指标转换成COCO指标,也适用于YOLOv8
将yolov8官方代码训练完成RTDETR之后的YOLO指标转换成COCO指标,也适用于YOLOv8
2024-07-17 16:15:44
1500
12
原创 使用yolov8官方代码训练RTDETR的时候报错:NotImplementedError: WARNING ⚠️ ‘YOLO‘ model does not support ‘_new‘ mode
【代码】使用yolov8官方代码训练RTDETR的时候报错:NotImplementedError: WARNING ⚠️ 'YOLO' model does not support '_new' mode。
2024-07-05 21:48:13
2968
10
原创 复现centernet时,报错RuntimeError: CUDA error: out of memory
复现centernet时,进行测试时报错RuntimeError: CUDA error: out of memory
2024-07-04 23:37:09
251
原创 Unable to determine the device handle for GPU 0000:02:00.0: Unknown Error
Unable to determine the device handle for GPU 0000:02:00.0: Unknown Error。
2024-07-03 20:15:43
765
原创 在服务器上训练faster-rcnn模型(pycharm和Termius)
使用服务器在pycharm和Termius训练模型,以faster-rcnn为例
2024-03-22 22:40:45
1206
2
原创 AttributeError: module ‘distutils‘ has no attribute ‘version‘
或者可以通过修改torch版本和固定setuptools版本为59.5.0解决,但是我觉得前者有点麻烦,后者尝试无效,于是找到下图路径中的文件__init__.py进行修改。采用这种方法也可以顺利解决问题!
2024-02-19 03:40:25
489
原创 RuntimeError: CUDA error: no kernel image is available for execution on the device
RuntimeError: CUDA error: no kernel image is available for execution on the device
2023-09-18 16:08:12
247
原创 报错lxml.etree.XMLSyntaxError: Extra content at the end of the document, line 283, column 14
lxml.etree.XMLSyntaxError: Extra content at the end of the document, line 283, column 14
2023-09-18 15:55:00
578
原创 自己的数据集跑faster-rcnn、ssd报in coco_index iscrowd.append(int(obj[“difficult“])) KeyError: ‘difficult‘
in coco_index iscrowd.append(int(obj["difficult"]))KeyError: 'difficult'
2023-09-18 15:10:12
350
2
原创 使用脚本删除python文件夹中的“AppleDouble“文件或者“Dot underscore“文件(文件名以._开头)
使用脚本删除Mac系统上生成的以"._"开头的临时文件(这些文件通常是在网络共享或者外部存储设备上产生的)
2023-08-30 15:57:39
281
原创 colab使用指南(自用)
以上就完成了云盘之间数据互传,这种方法相比第一种确实快一点,比较适合大数据集,毕竟谷歌云盘需要科学上网,万一断开有可能数据上传就中断了,小数据集直接上传也挺快的,根据实际需要来选择吧。
2023-05-13 23:26:32
5291
1
转载 ERROR: Could not find a version that satisfies the requirement XXXXX (from versions: none)
报错:ERROR: Could not find a version that satisfies the requirement XXXXX (from versions: none)改错:pip install 库包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
2023-01-18 00:11:54
311
原创 RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory(自用笔记)
报错:RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory我出错的原因:文件损坏我在服务器上训练yolov3spp将权重文件yolov3spp-28.pt下载到本地,然后移动文件的时候损坏了文件(剪切文件失败)加油!
2023-01-17 23:28:27
1766
1
原创 使用colab训练faster-rcnn pytorch版(代码来源:霹雳吧啦Wz)
使用colab跑通霹雳吧啦Wz的faster-rcnn代码:链接: https://github.com/WZMIAOMIAO/deep-learning-for-image-processing.git上传之后的目录:下载预训练权重的链接也在老师的github上最关键的步骤就是下载预训练权重,以及修改对应代码中的路径(老师使用的是2012,我下载2012没有下载成功,所以使用的是2007);训练的一些参数设置都在train_res50_fpn.py中可以自己在代码中修改或者运行时指定,我
2022-11-09 12:49:10
1356
16
原创 数组前m个降序排列,后n-m个升序排列,编写算法使整个数组降序排列(Java代码)
问题:给定一个长度为n的数组A,已知前m(m<n)个元素按升序有序,后n-m个元素按降序有序,请编写算法在O(n)时间内对数组A的元素排列有序(降序升序)算法思路:归并排序的思想Java代码:package WangJacky;/*1.升序排列 */public class Array_sort{ public static int [] Sort(int []A,int m){ int i=0,j=A.length-1,k=0;//i表示数组第一个元素的下标;j
2021-08-21 19:44:46
630
原创 整数数组中所有偶数放到所有奇数之前(C语言实现)
设计一个算法,将整数数组S[1…n]中所有偶数都放到奇数之前,要求算法时间复杂性为O(n)。算法思想:利用快排交换C语言代码#include<stdio.h>/*算法思想:1.从表头开始从前向后遍历,寻找奇数元素S[i] 2.从表尾开始从后向前遍历,寻找偶数元素S[j] 3.交换二者 4.重复上述过程,直至i>j*/int* Sort_1(int *S, int n) { int i = 0;//i表示左端元素的下标 int j = n - 1;//j表示右
2021-08-21 00:17:18
3563
原创 数据结构笔记——快速排序(C语言代码)
采用双指针的方法进行快排代码一:void quick_sort(int arr[], int low, int high) { if (low > high) { return; } int i = low; int j = high + 1; int pivot = arr[low]; while (i < j) { i++; while (arr[i] < pivot) i++; j--; while (arr[j] > pivot)
2021-08-19 11:36:19
336
原创 堆排序(C语言代码)B站正月点灯笼
堆排序(C语言实现)#include<stdio.h>void swap(int arr[], int i, int j) {//交换数组中的第i个数和第j个数 int temp = arr[i]; arr[i] = arr[j]; arr[j] = temp;}//自上而下调整堆void heapify(int tree[], int n, int i) {//用tree[]数组表示一棵树;n:树的结点数;i: 对第i结点做heapify操作 if (i >= n
2021-08-12 20:04:01
212
原创 平衡二叉树(AVL)的插入与调整
平衡二叉树(AVL)的插入与调整平衡二叉树:定义:一种特殊的二叉查找树,树上任一结点的左子树和右子树的深度之差不超过1(平衡因子:左右子树深度之差,只要有仁义结点的平衡因子绝对值大于1,就不是平衡二叉树)。平衡二叉树的插入在一个平衡二叉树中插入一个结点时,又可能会出现失衡,即出现平衡因子绝对值大于1的结点,如:2,-2.比如下面这个例子:接下来就必须要重新调整树的结构,恢复平衡。每次调整的对象称为最小不平衡树。平衡调整的四种类型4中类型如下图:平衡调整之前学习的大部分方法都是左旋调整
2021-08-12 01:52:16
1776
1
原创 求1!+2!+3!....+20!(java代码)
求1!+2!+3!…+20!1.暴力法public static long FunctionOne(int n){ long S=0; for(int i=1;i<=n;i++){ long sum=1; for(int j=1;j<=i;j++){ sum=sum*j; } S+=sum; } ret
2021-06-21 12:21:42
382
1
原创 求出2/1+3/2+5/3+8/5+13/8...序列的前20项之和(Java代码)
求出2/1+3/2+5/3+8/5+13/8…序列的前20项之和Java代码public class FenShuXuLie { public static double f(int n){ double sum=0; double temp=0; double i=2; double j=1; for(int count=0;count<n;count++){ sum+=i/j;
2021-06-21 11:50:18
875
1
原创 利用随机函数生成一个包含2位正整数的5*5矩阵,找出其中的最大数,最小数及位置(java代码)
随机函数生成一个包含2位正整数的5*5矩阵,找出其中的最大数,最小数及位置public class FiveMatrix { public static void Print(int[][]Matrix){ for(int i=0;i<Matrix.length;i++){ for(int j=0;j<Matrix[0].length;j++){ System.out.print(Matrix[i][j]+"\t
2021-06-21 08:15:55
2093
1
原创 随机产生20个[0,100]之间的整数,按升序存入一个新数组中(java代码)
随机产生20个[0,100]之间的整数,按升序存入一个新数组中public class RandomAndSort { public static void BSort(int []arr) { for(int i=0;i<arr.length-1;i++){ for(int j=0;j<arr.length-1-i;j++){ if(arr[j]>arr[j+1]){
2021-06-21 08:10:03
1994
原创 LeetCode 64最小路径和(Java实现)
题目:https://leetcode-cn.com/problems/minimum-path-sum/2.Java实现2.1代码1(申请数组)public static int MinPathSum(int [][]a) { int [][]dp=new int [a.length][a[0].length];//java中多维数组 dp[0][0]=a[0][0]; for(int i=1;i<a.length;i++) {
2021-06-20 10:16:54
176
原创 动态规划之Unique Paths(java实现)
1.问题描述:A robot is located at the top-left corner of m X n grid.The robot can only move either down or right an any point in time.The robot is try to reach the bottom-right corner of the grid.How many possible unique paths are there?2.java实现package dy
2021-06-20 08:46:22
265
原创 Two Sum(Java实现)
Two Sum(Java实现)问题:Given an array of integers nums and an integer target,return indices of the two numbers such that they add up to target.You may assume that each input would have exactly one solution,and you may not use the same element twice.You can r
2021-06-17 15:35:24
225
原创 随机生成一个n*n的矩阵,并求出主、副对角元素之和,矩阵中的最大最小值(java实现)
随机生成一个n*n的矩阵,并求出主、副对角元素之和,矩阵中的最大最小值1.随机生成一个矩阵:public static int[][] CreateSixMatrix(int n) { int [][]matrix = new int[n][n]; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { matrix[i][j] = (in
2021-06-11 16:12:27
4031
原创 数据结构之插入排序(java代码实现)
数据结构之插入排序java代码public class ISort { //直接插入排序 public static void InsertSort(int [] arr) { int i,j,temp; for(i=1;i<arr.length;i++) if(arr[i]<arr[i-1]) { temp=arr[i];
2021-06-10 21:49:48
111
原创 动态规划之编辑距离(java实现)
动态规划编辑距离package Dynamic;public class EditDistance { private static int minimum(int a,int b,int c) { return Math.min(Math.min(a,b),c); } public static int computeLevenshteinDistance(CharSequence src,CharSequence dst) {
2021-06-08 19:20:01
291
使用pytorch搭建卷积网络分类MINST数据集,通过改变网络层数和卷积核大小观察对最终分类准确性的影响,并可视化实验结果
2023-01-18
TA创建的收藏夹 TA关注的收藏夹
TA关注的人