当前位置:网站首页>Yolact++ pytoch environment
Yolact++ pytoch environment
2022-06-28 06:04:00 【Gone_ float】
Anaconda3 Installation can refer to Deeplabv3+ Environment configuration -Anaconda3 + Pytorch1.8 + Cuda10.1 + opencv3.2.0
Environment configuration
- First of all to pytorch Create a anaconda A virtual environment , The name of the environment can be determined by yourself , Use here yolact++ As an environment name :
$ conda create -n yolact++ python==3.8
- Activate after successful installation yolact++ Environmental Science
$ source activate
$ conda activate yolact++
- Install... In the created environment pytorch, View this machine cuda edition
$ conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch
$ conda install cudnn=7.6.5
Be careful :10.2 Place should be cuda Installation version number of
edit ~./bashrc file , Set to use yolact++ In the environment python3.8
alias python='~/anaconda3/envs/yolact++/bin/python3.8'
- Update environment variables
$ source ~/.bashrc
- Activate again yolact++
conda activate yolact++
- test
python
import torch
torch.cuda.is_available()
torch.cuda.device_count()
torch.cuda.current_device()
Yolact++ Project clone installation
- Clone and install Yolact++
$ git clone https://github.com/dbolya/yolact.git
- Install the required libraries
stay yolact++ Environment , route yolact perform
$ pip install cython
$ pip install opencv-python pillow pycocotools matplotlib
- install DCN
$ git clone https://github.com/jinfagang/DCNv2_latest.git
- stay yolact++ Environment , route DCNv2_latest perform
$ cd DCNv2_latest
$ python setup.py build develop
$ python testcuda.py # run examples and gradient check on gpu
The test image
Download test pictures to testfile
Next , Weight file to weights Next
Use yolact_plus_base Model
python eval.py --trained_model=weights/yolact_plus_base_54_800000.pth --score_threshold=0.15 --top_k=15 --image=testfiles/elephant.jpg:testfiles/elephant_seg.jpg
Use yolact_plus_resnet50 Model
python eval.py --trained_model=weights/yolact_plus_resnet50_54_800000.pth --score_threshold=0.15 --top_k=15 --image=testfiles/elephant.jpg:testfiles/elephant_seg2.jpg
Test video
python eval.py --trained_model=weights/yolact_plus_resnet50_54_800000.pth --score_threshold=0.15 --top_k=15 --video_multiframe=4 --video=testfiles/drive.mp4:testfiles/drive1.mp4
边栏推荐
- What is webrtc?
- Maskrcnn,fast rcnn, faster rcnn优秀视频
- Working principle of es9023 audio decoding chip
- API learning of OpenGL (2007) gltexcoordpointer
- 全球国家(和地区)信息JSON数据
- Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance
- death_ satan/hyperf-validate
- Install fmpefg
- YYGH-BUG-03
- Caused by: com. fasterxml. jackson. databind. exc.InvalidDefinitionException: Cannot construct instance
猜你喜欢

death_satan/hyperf-validate

Slow content advertising: the long-term principle of brand growth

Jenkins持续集成1

借助nz-pagination中的let-total解析ng-template

Filecoin hacker song developer competition

Example of MVVM framework based on kotlin+jetpack

socke.io长连接实现推送、版本控制、实时活跃用户量统计

Sharing tips for efficient scripting

函数栈帧的创建和销毁

What is webrtc?
随机推荐
Differences between overloads, rewrites, abstract classes and interfaces
How popular are FB and WhatsApp mass messages in 2022?
Capacity scheduling absolute value configuration queue usage and pit avoidance
Sharing tips for efficient scripting
Pre training model parameter mismatch
Jenkins continuous integration 1
Drop down box for implementation
ipvs 导致syn 重传问题
报错--解决core-js/modules/es.error.cause.js报错
19 fonctions de perte d'apprentissage profond
Important basis for ERP software company selection
Configure multiple database connections using the SSM framework
Working principle of es9023 audio decoding chip
Data center: Seven Swords of data governance
Scripting and programming languages
High quality domestic stereo codec cjc8988, pin to pin replaces wm8988
阿里云短信服务(完整指南),短信发送功能实现。
lombok @EqualsAndHashCode 注解如何让对象.equals()方法只比较部分属性
death_ satan/hyperf-validate
Alibaba cloud SMS service (Complete Guide), SMS sending function implementation.