detectron2及DensePose工程实现上的概括

安装detectron2

  1. pip install -U torch==1.5 torchvision==0.6 -f https://download.pytorch.org/whl/cu101/torch_stable.html

IUV到底是DensePose的哪一步的结果啊?

在这里插入图片描述

这是输入原图和由DensePose-RCNN回归出的correspondence

在这里插入图片描述

这幅图像左边是DensePose coco Dataset的annotation, 右边是body surface的分块和UV parametrization

Body surface的UV parametrization到底是对什么做的,怎么做的?

是对surface part做的,还是对已经映射到3D mesh上的每个图像像素做的,也就是每个part对应一个UV像素还是每个mesh上的像素对应一个UV像素。

最右边图的意思,是对surface进行分块和UV参数化

和DensePose-RCNN回归出的一致性(regressed correspondence)不一样

干了个啥事呢?

Dense human pose estimation aims at mapping all human pixels of an RGB image to the 3D surface of the human body. 把图像的像素mapping到3D human body的3D surface上面。

在他们的主页上,主要有两点贡献,

  • 在COCO数据集(50K images)的基础上,通过手工标注manually annotated引入一个DensePose-COCO数据集。这个数据集是:A large-scale ground-truth dataset with image-to-surface correspondences(具有image-to-surface的correspondences的ground-truth).
  • 提出了一个网络结构的变种,叫DensePose-RCNN, 是Mask-RCNN的变种。to densely regress part-specific UV coordinates within every human region at multiple frames per second.用来回归针对part的UV坐标(坐标在每个human region内这个应该是指回归出3D mesh的每个part的UV坐标,还是原来图像的 x x x, y y y坐标点对点的映射到 u u u, v v v坐标),可以同时每秒中处理多个frames.

DensePose-RCNN的实现借助了facebook的Detectron框架和Caffe2.

理论基础

工程配置过程

  • 安装caff2e和DensePose
    • 使用python2
    • 使用caffe2,很多其他的standard Python packages, 还有一个关于数据库的APIthe COCO API
    • 它这里这个Detectron的兼容性在CUDA 8.0cuDNN 6.0.21上验证过.

Detectron: FAIR’s research platform for object detection research, implementing popular algorithms like Mask R-CNN and RetinaNet.

# 我现在的环境里是:conda install pytorch-nightly -c pytorch
conda install pytorch-nightly -c pytorch
这个用的是:Caffe2 with CUDA 9 and CuDNN 7 support:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
为了在Windows上安装detectron2,您需要遵循以下步骤: 1. 安装Anaconda 或者Miniconda(建议使用Anaconda),并创建一个新的Conda环境。您可以在Anaconda官方网站上下载Anaconda,或者在Miniconda官方网站上下载Miniconda。 2. 在新的Conda环境中安装PyTorch。您可以在PyTorch官方网站上找到适合您的操作系统和CUDA版本的安装指南。例如,如果您的操作系统是Windows,您可以使用以下命令安装PyTorch: ``` conda install pytorch torchvision torchaudio cpuonly -c pytorch ``` 3. 安装CMake。您可以在CMake官方网站上下载适合您的操作系统的CMake安装程序。 4. 安装Visual Studio。您需要安装Visual Studio 2019或更高版本,并选择C++开发工作负载。您可以在Visual Studio官方网站上下载Visual Studio。 5. 安装detectron2。您可以使用以下命令在Conda环境中安装detectron2: ``` pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cpu/index.html ``` 注意:如果您使用的是GPU版本的PyTorch,您需要使用以下命令安装detectron2: ``` pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu111/index.html ``` 6. 测试安装。您可以使用以下命令测试detectron2是否正确安装: ``` python -m detectron2.utils.collect_env ``` 如果一切正常,您应该能够看到与您的系统和detectron2相关的信息。 现在,您已经成功地在Windows上安装了detectron2
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值