当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
Xcode13.3.1 项目执行pod install后报错
Openharmony gnawing paper growth plan -- json-rpc
Caused by: com. fasterxml. jackson. databind. Exc.invalidformatexception: exception resolution
pytorch dataloader的长度 epoch与iteration的区别
High quality domestic stereo codec cjc8988, pin to pin replaces wm8988
Main functions of 5ggnb and ng ENB
YYGH-BUG-03
Introduction to uicollectionviewdiffabledatasource and nsdiffabledatasourcesnapshot
Yygh-8-appointment registration
AutoCAD C# 多段线自相交检测
How to add live chat in your Shopify store?
基本类型和包装类的区别
Maskrcnn, fast RCNN, fast RCNN excellent video
Global country (and region) information JSON data
Small ball playing
Common basic functions of Oracle
Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
sql及list去重操作
MR-WordCount
Caused by: com. fasterxml. jackson. databind. exc.InvalidDefinitionException: Cannot construct instance








