当前位置:网站首页>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
边栏推荐
- Differences between basic types and packaging classes
- Yygh-8-appointment registration
- YYGH-BUG-02
- 简单手写debounce函数
- Qtcanpool knowledge 07:ribbon
- Relevant implementation records of CSI and local disk
- pytorch dataloader的长度 epoch与iteration的区别
- 5g network overall architecture
- Example of MVVM framework based on kotlin+jetpack
- Failed to start component [StandardEngine[Catalina]. StandardHost[localhost]]
猜你喜欢
![RL practice (0) - and the platform xinchou winter season [rule based policy]](/img/dc/10d615c64123475fea180e035095ff.png)
RL practice (0) - and the platform xinchou winter season [rule based policy]

Yygh-6-wechat login

Working principle of es9023 audio decoding chip

High quality domestic stereo codec cjc8988, pin to pin replaces wm8988

Where is the era bonus for developers?

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

AutoCAD C# 多段线自相交检测

容量调度绝对值配置队列使用与避坑

Jenkins continuous integration 1

YYGH-BUG-02
随机推荐
CAD二次开发+NetTopologySuite+PGIS 引用多版本DLL问题
若依实现下拉框
Relevant implementation records of CSI and local disk
容量调度绝对值配置队列使用与避坑
基本类型和包装类的区别
Main functions of 5ggnb and ng ENB
death_ satan/hyperf-validate
API learning of OpenGL (2006) glclientactivetexture
At first glance, I can see several methods used by motionlayout
Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException:异常解决
Official answers to the "network security" competition questions of the 2022 national vocational college skills competition
AutoCAD C# 多段线自相交检测
Ethereum Classic的难度计算|猿创征文
The custom cube UI pop-up dialog supports multiple and multiple types of input boxes
Jenkins continuous integration 1
Enum
RL practice (0) - and the platform xinchou winter season [rule based policy]
Oracle fundamentals summary
Install and manage multiple versions of PHP under mac
Global country (and region) information JSON data