当前位置:网站首页>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
边栏推荐
- AutoCAD C# 多段线自相交检测
- The length of pytorch dataloader the difference between epoch and iteration
- Object对象转 List集合
- AutoCAD C # Polyline Small Sharp angle Detection
- Deep learning 19 loss functions
- API learning of OpenGL (2007) gltexcoordpointer
- YYGH-7-用户管理
- Qtcanpool knowledge 07:ribbon
- 6. graduation design temperature and humidity monitoring system (esp8266 + DHT11 +oled real-time upload temperature and humidity data to the public network server and display the real-time temperature
- ipvs 导致syn 重传问题
猜你喜欢

Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance

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

Deep learning 19 loss functions

Prime mover × Cloud primordial is making sound, reducing cost and increasing efficiency lecture hall

Example of MVVM framework based on kotlin+jetpack

YYGH-6-微信登录

death_satan/hyperf-validate

What are the advantages of e-mail marketing? Why do sellers of shopline independent station attach so much importance to it?

Data middle office: six questions data middle office

What is webrtc?
随机推荐
移动广告发展动向:撬动存量,精细营销
基本类型和包装类的区别
Introduction to openscap
JSP
Data midrange: implementation and summary of AI midrange
19 fonctions de perte d'apprentissage profond
ThreadLocal
Use of JDBC
安装 Ffmpefg
Syn retransmission caused by IPVS
Xcode13.3.1 error reported after pod install
阿里云短信服务(完整指南),短信发送功能实现。
重载,重写的区别,抽象类,接口的区别
Select trigger event from easyUI drop-down box
What is webrtc?
[MySQL] all query tables contain 20million data -- how to optimize SQL
EasyUI reset multi condition query
ES9023音频解码芯片的工作原理
【Paper Reading-3D Detection】Fully Convolutional One-Stage 3D Object Detection on LiDAR Range Images
Qtcanpool knowledge 07:ribbon