当前位置:网站首页>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
边栏推荐
- Jenkins continuous integration 1
- pytorch dataloader的长度 epoch与iteration的区别
- Taobao seo training video course [22 lectures]
- 深度學習19種損失函數
- Example of MVVM framework based on kotlin+jetpack
- windows上安装redis并永久修改密码,及ssm框架集成redis
- 从0配置redis
- What are the advantages of e-mail marketing? Why do sellers of shopline independent station attach so much importance to it?
- Relevant implementation records of CSI and local disk
- How the third-party libraries in cocoapod reference local header files
猜你喜欢
Xcode13.3.1 error reported after pod install
Socket. Io long Connection Push, version Control, Real - Time Active user volume Statistics
What is the e-commerce conversion rate so abstract?
RL practice (0) - and the platform xinchou winter season [rule based policy]
【Paper Reading-3D Detection】Fully Convolutional One-Stage 3D Object Detection on LiDAR Range Images
19 fonctions de perte d'apprentissage profond
Jenkins continuous integration 1
AutoCAD C# 多段线小锐角检测
Qtcanpool knowledge 07:ribbon
若依实现下拉框
随机推荐
基于Kotlin+JetPack实现的MVVM框架的示例
Jenkins continues integration 2
Yygh-8-appointment registration
No one can only use foreach to traverse arrays, right?
重载,重写的区别,抽象类,接口的区别
Official answers to the "network security" competition questions of the 2022 national vocational college skills competition
How popular are FB and WhatsApp mass messages in 2022?
mac下安装多个版本php并且进行管理
YYGH-7-用户管理
Development trend of mobile advertising: Leveraging stock and fine marketing
ES9023音频解码芯片的工作原理
death_ satan/hyperf-validate
5g network overall architecture
High quality domestic stereo codec cjc8988, pin to pin replaces wm8988
easyui下拉框选中触发事件
[untitled]
Ape pink ape power - Developer activity attack!
Filecoin hacker song developer competition
Differences between overloads, rewrites, abstract classes and interfaces
@The reason why the Autowired annotation is empty