自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 windows环境下anaconda/miniconda 在gitbash的zsh中使用conda activate

这个问题折磨了一天 防止以后再出现此问题忘记解决方法 记录一下。

2024-05-16 11:20:56 195

原创 分类模型微调以及在Jetson平台上进行测速

本项目使用mmpretrain对预训练的分类模型在垃圾分类数据集上进行微调,同时对微调后模型进行测试、部署、测速。本项目在Geforce RTX2060进行训练微调,所使用模型为同时我们选择官方所提供的预训练模型作为base模型在其基础上进行微调。

2023-08-09 23:10:00 185

原创 OpenMMLab AI 实战营day6语义分割基础

1

2023-02-10 14:28:44 106

原创 OpenMMLab AI 实战营day5 目标检测实战

day5

2023-02-08 13:47:16 99

原创 OpenMMLab AI 实战营day4 目标检测理论

狠狠的补充了一下目标检测的相关基础,以前基础不太牢。

2023-02-07 16:55:36 99

原创 OpenMMLab AI 实战营 Day 3

openmmlab day3

2023-02-04 16:26:33 69

原创 OpenMMLab AI训练营

自2012年Alexnet开始,计算机视觉已全面进入深度学习时代。从手工特征到机器自主学习特征表达。关于这些任务,openmmlab均有其相关的成熟算法库,mmcls、mmdet、mmseg等等。计算机视觉相关任务:分类、分割、目标检测、风格迁移、虚拟人像、内容理解等。

2023-02-02 10:21:13 62

原创 0789逃脱阻碍者

逃脱阻碍者问题描述:class Solution(object): def escapeGhosts(self, ghosts, target): """ :type ghosts: List[List[int]] :type target: List[int] :rtype: bool """ mins = float('inf') for i in ghosts:

2021-08-22 16:25:17 76

原创 0042接雨水

接雨水暴力法:class Solution(object): def trap(self, height): """ :type height: List[int] :rtype: int """ len_height = len(height) i = 1 sum = 0 while i < len_height - 1: j = i

2021-08-20 17:48:17 48

原创 0139单词拆分

单词拆分问题描述class Solution(object): def wordBreak(self, s, wordDict): """ :type s: str :type wordDict: List[str] :rtype: bool """ len_s = len(s) dp = [False for _ in range(len_s+1)] # dp[i]表示s的前i项

2021-08-20 15:51:25 60

原创 0714买卖股票的最佳时机含手续费

买卖股票的最佳时机含手续费问题描述:class Solution(object): def maxProfit(self, prices, fee): """ :type prices: List[int] :type fee: int :rtype: int """ dp_sell = 0 # 在该天卖出股票所能得到的最大利润 dp_buy = -prices[0]-fee #

2021-08-19 16:46:59 51

原创 0309最佳买卖股票时机含冷冻期

最佳买卖股票时机含冷冻期问题描述:最终版本代码(不懂可以看未优化版本代码以及下方解释)class Solution(object): def maxProfit(self, prices): """ :type prices: List[int] :rtype: int """ len_price = len(prices) # 不同的dp表示我们在这一天所要进行的不同操作 dp_

2021-08-19 16:16:04 73

原创 0552学生出勤记录II

学生出勤记录II问题描述class Solution(object): def checkRecord(self, n): """ :type n: int :rtype: int """ MOD = 10 ** 9 + 7 dp = [[0, 0, 0, 0, 0, 0] for _ in range(n)] # 结尾为p不含a 序列含a且结尾不为l 结尾为一个l不含a

2021-08-19 15:35:38 81

原创 0010正则表达式匹配

正则表达式匹配描述:class Solution(object): def isMatch(self, s, p): m = len(s) + 1 # 二维数组的列号为0~len(s) n = len(p) + 1 # 二维数组的行号为0~len(p) dp = [[False for _ in range(n)] for _ in range(m)] # dp[i][j]代表长度为i的p是否可以匹配长度为j的s dp[0]

2021-08-18 17:46:03 66

原创 0009回文数

回文数描述:class Solution(object): def isPalindrome(self, x): """ :type x: int :rtype: bool """ if x<0: return False temp = x num = 0 while temp>0: num = num*10

2021-08-18 17:23:43 43

原创 0008字符串转换整数

字符串转换整数描述:class Solution(object): def myAtoi(self, s): """ :type s: str :rtype: int """ T = True # 判断正负 num = 0 i = 0 if len(s)==0: return num while s[i] == ' ':

2021-08-18 17:19:18 96

原创 0007整数反转

整数反转描述:class Solution(object): def reverse(self, x): """ :type x: int :rtype: int """ y = 0 T = True if x < 0: T = False x = -x while x > 0: a

2021-08-18 17:16:38 45

原创 0006Z字形变换

Z字形变换描述class Solution(object): def convert(self, s, numRows): if numRows == 1: return s restr = "" line = min(len(s), numRows) chars = ["" for i in range(line)] change = False j = 0 # 控制li

2021-08-18 17:03:23 53

原创 0005最长回文子串

最长回文子串描述class Solution(object): def longestPalindrome(self, s): if len(s) == 1 or (len(s) == 2 and self.isPalindrome(s)): return s max_sub = "" # for i in range(len(s)): # for j in range(i + 1, len(s)

2021-08-18 17:01:44 50

原创 0004寻找两个正序数组的中位数

寻找两个正序数组的中位数描述:class Solution: def findMedianSortedArrays(self, nums1, nums2): var_nums = list() ia = 0 ib = 0 while ia < len(nums1) and ib < len(nums2): if nums1[ia] > nums2[ib]:

2021-08-18 16:58:48 59

原创 0003无重复字符最长子串

无重复字符最长子串题目描述class Solution(object): def lengthOfLongestSubstring(self, s): """ :type s: str :rtype: int """ sub = set() left = 0 length = 0 for i in s: while i in sub:

2021-08-18 16:50:32 164

原创 0002两数相加

两数相加题目描述:class Solution(object): def addTwoNumbers(self, l1, l2): """ :type l1: ListNode :type l2: ListNode :rtype: ListNode """ num1 = 0 num2 = 0 len1 = self.getlen(l1) len2 =

2021-08-18 16:42:00 53

原创 0001两数之和

两数之和1.题目描述class Solution: def twoSum(self, nums, target): length = len(nums) for i in range(length): for j in range(i + 1, length): if nums[i] + nums[j] == target: return [i, j]思路:暴力求

2021-08-18 16:23:24 69

原创 L1-027 出租 (20 分)

L1-027 出租 (20 分)下面是新浪微博上曾经很火的一张图:一时间网上一片求救声,急问这个怎么破。其实这段代码很简单,index数组就是arr数组的下标,index[0]=2 对应 arr[2]=1,index[1]=0 对应 arr[0]=8,index[2]=3 对应 arr[3]=0,以此类推…… 很容易得到电话号码是18013820100。本题要求你编写一个程序,为任何一个电...

2019-03-20 02:04:00 411

原创 结构体排序

#include<iostream>#include<vector>#include<algorithm>using namespace std;struct node{ int u,v,w,sum; node(int u,int v,int m,int sum):u(u),v(v),w(m),sum(sum){}};bool cmp(no...

2019-03-20 00:39:37 438

原创 STL库的初次使用

皮卡丘的兄弟姐妹(C++解题初尝试)皮卡丘的兄弟姐妹(15 分)小智开到了皮卡丘的故乡——皮之城,城里面的所有皮卡丘都是皮卡丘的兄弟姐妹。由于原管理者即将跟随皮卡丘一起踏上征途,管理者便委托小智帮他的继任者想一个好的办法能将城中的皮卡丘都区分开来。小智一拍脑袋,给每个人一个身份证号不就好了!但是,由于小智的粗心,有 M 个皮卡丘的身份证号码登记错了,小智便只能规定每天都有 K 个皮卡丘过...

2019-03-18 22:21:27 470 1

空空如也

空空如也

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

TA关注的人

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