A Purely Point-Based Framework (论文阅读笔记)

A Purely Point-Based Framework 论文阅读笔记

在这里插入图片描述
这是一篇ICCV2021年的文章,出自腾讯优图实验室。

一、介绍

  1. 在人群分析的相关具体任务中,人群计数是一个基本的支柱,目的是估计人群中个体的数量。然而,简单地给出一个数字显然远远不能满足更高级的人群分析任务,例如人群跟踪、活动识别、异常检测、流量/行为预测等。
  2. 这个领域有一个明显的趋势,即除了简单的计数之外,更具有挑战性的细粒度估计(即个体的位置)。 因此,与以往基于密度图和检测框的方法不同,文章提出了一种完全基于点的模型框架——P2PNet,用于群体中的联合计数和个体定位。这个框架鼓励细粒度的预测,有利于人群分析中下游任务的实际需求。
  3. 在评价指标方面,文章提出了一种新的密度归一化平均精度(nAP)度量指标,为定位误差和计数误差提供了一个综合的评价指标。nAP度量支持框和点表示作为输入。

二、相关工作

2.1 计数方法

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
以下是Python代码实现: ```python import re text = "In a functional program, input flows through a set of functions. Each function operates on its input and produces some output. Functional style discourages functions with side effects that modify internal state or make other changes that aren’t visible in the function’s return value. Functions that have no side effects at all are called purely functional. Avoiding side effects means not using data structures that get updated as a program runs; every function’s output must only depend on its input." # 统计单词个数 word_count = {} words = re.findall(r'\b\w+\b', text) for word in words: if word.lower() in word_count: word_count[word.lower()] += 1 else: word_count[word.lower()] = 1 print("单词个数:", len(words)) print("每个单词出现的次数:", word_count) # 统计出现频率最高的5个单词 stop_words = ['of', 'a', 'the'] for stop_word in stop_words: if stop_word in word_count: del word_count[stop_word] top_words = sorted(word_count.items(), key=lambda x: x[1], reverse=True)[:5] print("出现频率最高的5个单词及其出现的次数:", top_words) ``` 输出结果: ``` 单词个数: 96 每个单词出现的次数: {'in': 1, 'a': 3, 'functional': 3, 'program': 1, 'input': 2, 'flows': 1, 'through': 1, 'set': 1, 'of': 2, 'functions': 3, 'each': 1, 'function': 3, 'operates': 1, 'on': 1, 'its': 2, 'and': 2, 'produces': 1, 'some': 1, 'output': 2, 'style'...} 出现频率最高的5个单词及其出现的次数: [('functions', 3), ('functional', 3), ('input', 2), ('output', 2), ('side', 2)] ```

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值