pyramid

realsensed435跑通ORB_SLAMv2

▼魔方 西西 提交于 2020-04-10 14:48:32
获得相机内参矩阵 roscore roslaunch realsense2_camera rs_rgbd.launch rostopic echo /camera/color/camera_info 运行之后显示如图 K就是我们得到的内参矩阵写成了向量模式。 K = [fx 0 cx 0 fy cy 0 0 1 ] 然后就是baseline,根据官方 datasheet , D435 的baseline为50mm,bf的值为bf = baseline (in meters) * fx。 给出根据相机参数得到的新的yaml文件 %YAML: 1.0 # -- ------------------------------------------------------------------------------------------ # Camera Parameters. Adjust them! # -- ------------------------------------------------------------------------------------------ # Camera calibration and distortion parameters (OpenCV) Camera.fx: 613.5963134765625 Camera.fy:

目标检测 | RetinaNet:Focal Loss for Dense Object Detection

拜拜、爱过 提交于 2020-03-26 18:43:20
3 月,跳不动了?>>> > 论文分析了one-stage网络训练存在的类别不平衡问题,提出能根据loss大小自动调节权重的focal loss,使得模型的训练更专注于困难样本。同时,基于FPN设计了RetinaNet,在精度和速度上都有不俗的表现 论文:Focal Loss for Dense Object Detection 论文地址: https://arxiv.org/abs/1708.02002 论文代码: https://github.com/facebookresearch/Detectron Introduction   目前state-of-the-art的目标检测算法大都是two-stage、proposal-driven的网络,如R-CNN架构。而one-stage检测器一直以速度为特色,在精度上始终不及two-stage检测器。因此,论文希望研究出一个精度能与two-stage检测器媲美的one-stage检测器 通过分析, 论文认为阻碍one-stage精度主要障碍是类别不平衡问题(class imbalance) : 在R-CNN架构检测器中,通过two-stage级联和抽样探索法(sampling heuristics)来解决类别不平衡问题。proposal阶段能迅速地将bndbox的数量缩小到很小的范围(1-2k),过滤了大部分背景。而第二阶段

Rendering Multiple Files with pystache

风格不统一 提交于 2020-02-25 08:42:26
问题 How do you use partial layouts in pystache? I haven't been able to find any documentation for doing this. I'm looking for something along the lines of layout.html <html> <body> {{<body}} </body> </html> index.html <section> {{name}} </section> Edit: I've done this using node.js and am familiar with the templating syntax, but I'm not sure how to tell pystache to load both files. 回答1: Pystache is just a Python implementation of Mustache, so the Mustache documentation should apply to Pystache as

Translating %% with gettext and jinja2 and pyramid

混江龙づ霸主 提交于 2020-02-22 08:11:04
问题 Doing i18n work with Python using Jinja2 and Pyramid. Seems to have a problem knowing how it should translate %%. I'm beginning to suspect the bug is in Jinja2. So I've done some more investigation and it appears the problem is more with gettext than with jinja2 as illustrated with the repl >>>gettext.gettext("98%% off %s sale") % ('holiday') '98% off holiday sale' >>>gettext.gettext("98%% off sale") '98%% off sale' >>>gettext.gettext("98% off %s sale") % ('holiday') Traceback (most recent

Translating %% with gettext and jinja2 and pyramid

我是研究僧i 提交于 2020-02-22 08:07:54
问题 Doing i18n work with Python using Jinja2 and Pyramid. Seems to have a problem knowing how it should translate %%. I'm beginning to suspect the bug is in Jinja2. So I've done some more investigation and it appears the problem is more with gettext than with jinja2 as illustrated with the repl >>>gettext.gettext("98%% off %s sale") % ('holiday') '98% off holiday sale' >>>gettext.gettext("98%% off sale") '98%% off sale' >>>gettext.gettext("98% off %s sale") % ('holiday') Traceback (most recent

Translating %% with gettext and jinja2 and pyramid

蹲街弑〆低调 提交于 2020-02-22 08:04:33
问题 Doing i18n work with Python using Jinja2 and Pyramid. Seems to have a problem knowing how it should translate %%. I'm beginning to suspect the bug is in Jinja2. So I've done some more investigation and it appears the problem is more with gettext than with jinja2 as illustrated with the repl >>>gettext.gettext("98%% off %s sale") % ('holiday') '98% off holiday sale' >>>gettext.gettext("98%% off sale") '98%% off sale' >>>gettext.gettext("98% off %s sale") % ('holiday') Traceback (most recent

Mocking render to response with Pyramid

 ̄綄美尐妖づ 提交于 2020-01-24 22:07:55
问题 I have a decorator that looks like so: def validate_something(func): def validate_s(request): if request.property: render_to_response('template.jinja', 'error' return func(request) return validate_something I'm trying to test it like so. I load the local WSGI stack as an app. from webtest import TestApp def setUp(self): self.app = TestApp(target_app()) self.config = testing.setUp(request=testing.DummyRequest) def test_something(self): def test_func(request): return 1 request = testing

Mocking render to response with Pyramid

本小妞迷上赌 提交于 2020-01-24 22:06:15
问题 I have a decorator that looks like so: def validate_something(func): def validate_s(request): if request.property: render_to_response('template.jinja', 'error' return func(request) return validate_something I'm trying to test it like so. I load the local WSGI stack as an app. from webtest import TestApp def setUp(self): self.app = TestApp(target_app()) self.config = testing.setUp(request=testing.DummyRequest) def test_something(self): def test_func(request): return 1 request = testing

onupdate based on another field with sqlalchemy declarative base

浪尽此生 提交于 2020-01-24 13:34:32
问题 I use sqlalchemy with the pyramid framework, and i want to link a person to his geographical department using his postcode. So i try to use the onupdate argument when defining the department_id column define the department_id. see fallowing code: from datetime import date from emailing.models import Base, DBSession from sqlalchemy import Column, Integer, Unicode, Text, DateTime, Sequence, Boolean, Date, UnicodeText, UniqueConstraint, Table, ForeignKey from sqlalchemy.orm import scoped_session

onupdate based on another field with sqlalchemy declarative base

流过昼夜 提交于 2020-01-24 13:33:58
问题 I use sqlalchemy with the pyramid framework, and i want to link a person to his geographical department using his postcode. So i try to use the onupdate argument when defining the department_id column define the department_id. see fallowing code: from datetime import date from emailing.models import Base, DBSession from sqlalchemy import Column, Integer, Unicode, Text, DateTime, Sequence, Boolean, Date, UnicodeText, UniqueConstraint, Table, ForeignKey from sqlalchemy.orm import scoped_session