<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Ubuntu16.04從源碼安裝DensePose

      Installing DensePose

      DensePose官網(wǎng) http://densepose.org/

      DensePose代碼 https://github.com/facebookresearch/Densepose

      DensePose安裝系統(tǒng)要求:有NVIDIA GPU的Linux系統(tǒng),滿足這一條件便可按照下面的步驟安裝。

      安裝Anaconda

      官網(wǎng)下載Linux版的Anaconda3,運(yùn)行bash Anaconda3-5.2.0-Linux-x86_64.sh

      安裝caffe2(pytorch)

      創(chuàng)建caffe2的conda環(huán)境

      conda create -n densepose python=2.7
      

      進(jìn)入新創(chuàng)建的環(huán)境

      source activate densepose 
      

      安裝一些需要的庫(kù)

      (densepose)$ conda install -y future gflags leveldb mkl mkl-include numpy opencv protobuf
      (densepose)$ conda install flask graphviz hypothesis jupyter matplotlib pydot pyyaml requests scikit-image scipy setuptools tornado
      

      下載pytorch及其依賴的第三方庫(kù)

      # git clone --recursive https://github.com/pytorch/pytorch.git 
      (densepose)$ git clone -b v0.4.1 --recursive https://github.com/pytorch/pytorch.git # 下載v0.4.1分支代碼
      (densepose)$ cd pytorch
      (densepose)$ git submodule update --init
      

      編譯并安裝

      (densepose)$ rm -rf build && mkdir build && cd build
      
      (densepose)$ cmake -DCMAKE_PREFIX_PATH=~/anaconda3/envs/densepose -DCMAKE_INSTALL_PREFIX=~/anaconda3/envs/densepose -DUSE_NATIVE_ARCH=ON ..
      
      (densepose)$ make -j32 install
      

      測(cè)試是否安裝成功

      # To check if Caffe2 build was successful
      (densepose)$ python2 -c 'from caffe2.python import core' 2>/dev/null && echo "Success" || echo "Failure"
      # 輸出Success即安裝成功,否則失敗
      
      # To check if Caffe2 GPU build was successful
      (densepose)$ python2 -c 'from caffe2.python import workspace; print(workspace.NumCudaDevices())'
      # 輸出8或者其他,表示顯卡個(gè)數(shù)
      

      安裝cocoapi

      # COCOAPI=/path/to/clone/cocoapi
      (densepose)$ git clone https://github.com/cocodataset/cocoapi.git $COCOAPI
      (densepose)$ cd $COCOAPI/PythonAPI
      # Install into global site-packages
      (densepose)$ make install
      # Alternatively, if you do not have permissions or prefer
      # not to install the COCO API into global site-packages
      (densepose)$ python2 setup.py install --user
      

      安裝densepose

      安裝densepose

      (densepose)$ mkdir $DENSEPOSE_DIR && cd $DENSEPOSE_DIR
      (densepose)$ git clone https://github.com/facebookresearch/densepose
      (densepose)$ cd densepose
      (densepose)$ pip install -r requirements.txt  # install Python dependencies
      
      (densepose)$ make  # set up python modules
      (densepose)$ python2 detectron/tests/test_spatial_narrow_as_op.py  # check that Detectron tests pass
      
      (densepose)$ make ops  # Build the custom operators library
      (densepose)$ python2 detectron/tests/test_zero_even_op.py  # check that the custom operator tests pass
      

      下載densepose數(shù)據(jù):

      (densepose)$ cd DensePoseData
      (densepose)$ bash get_densepose_uv.sh
      

      如果需要訓(xùn)練,下載DensePose-COCO數(shù)據(jù)集:

      (densepose)$ bash get_DensePose_COCO.sh
      

      如果評(píng)價(jià)(evaluation),還需下載其他需要的文件:

      (densepose)$ bash get_eval_data.sh
      

      Inference with Pretrained Models

      首先從這里下載與DensePose_ResNet101_FPN_s1x-e2e.yaml相匹配的訓(xùn)練好的模型,并放在weights文件夾下,然后執(zhí)行下面命令:

      (densepose)$ python2 tools/infer_simple.py \
          --cfg configs/DensePose_ResNet101_FPN_s1x-e2e.yaml \
          --output-dir DensePoseData/infer_out/ \
          --image-ext jpg \
          --wts  weights/DensePose_ResNet101_FPN_s1x-e2e.pkl \
          DensePoseData/demo_data/demo_im.jpg
      

      Ref

      posted @ 2021-01-31 17:59  VVingerfly  閱讀(476)  評(píng)論(0)    收藏  舉報(bào)
      主站蜘蛛池模板: 在线亚洲午夜理论av大片| 色偷偷天堂av狠狠狠在| 午夜性爽视频男人的天堂| 伊人久久大香线焦av综合影院| 麻豆国产AV剧情偷闻女邻居内裤 | 塘沽区| 在线观看亚洲欧美日本| 亚洲爆乳少妇无码激情| 国产肉丝袜在线观看| 国产呻吟久久久久久久92| 久久综合伊人| 国产美女高潮流白浆视频| 精品无码久久久久国产电影| 国产欧美精品一区aⅴ影院| 激情综合五月丁香亚洲| 欧美啪啪网| 亚洲欧美自偷自拍视频图片| 亚洲综合伊人五月天中文| 国产卡一卡二卡三免费入口| 久久99久国产精品66| 国产人妻精品午夜福利免费| 国产精品精品一区二区三| 人妻夜夜爽天天爽三区丁香花| 精品人妻av区乱码| 久热这里只有精品视频3| 成人做受视频试看60秒| 欧美激情在线播放| 日韩欧激情一区二区三区| 国产精品大片中文字幕| 久久婷婷五月综合色精品| 国内精品人妻无码久久久影院导航| 极品尤物被啪到呻吟喷水| 色噜噜亚洲精品中文字幕| 激情综合色综合久久综合| 国产一区精品在线免费看| 一区二区三区AV波多野结衣| 人妻伦理在线一二三区| 一区二区三区自拍偷拍视频| 91精品91久久久久久| 国产综合视频一区二区三区| 久久精品一区二区日韩av|