当前位置:网站首页>Getting started with detectron2
Getting started with detectron2
2022-04-23 21:01:00 【Top of the program】
This article briefly introduces detectron2 Use of built-in command line tools in
Reasoning demonstration of pre training model
from Model Zoon Select a model and configuration file , for example mask_rcnn_R_50_FPN_3x.yaml
Run this command
python demo.py --config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml --input jiejin.jpg --opts MODEL.WEIGHTS detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl
ModelZoon The configuration in is for training
Training and evaluation in the command line
tools/plain_train_net.py and tools/train_net.py, have access to ModelZoon Different configurations in , Model training . You can use it as a reference for writing your own training script . If you want to use these two scripts to train , May refer to datasets/README.md Build your own dataset , Then use the command :
./train_net.py \
--config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml \
--num-gpus 1 SOLVER.IMS_PER_BATCH 2 SOLVER.BASE_LR 0.0025
If you want to evaluate the model :
./train_net.py \
--config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml \
--eval-only MODEL.WEIGHTS /path/to/checkpoint_file
版权声明
本文为[Top of the program]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/111/202204210545090270.html
边栏推荐
猜你喜欢
Win 11K in 100 days, super complete learning guide for job transfer test
Addition, deletion, modification and query of MySQL advanced table
Google tries to use rust in Chrome
浅谈数据库设计之三大范式
Opencv application -- jigsaw puzzle
Flomo software recommendation
On IRP from the perspective of source code
2.整理华子面经--2
Deep analysis of C language function
1.整理华子面经--1
随机推荐
Go limit depth traversal of files in directory
Queue template code
Thinkphp5 + data large screen display effect
Problem brushing plan -- dynamic programming (III)
go defer
Question brushing plan - depth first search (II)
go map
Ubutnu20 installer centernet
ubutnu20安裝CenterNet
Minecraft 1.12.2模组开发(四十三) 自定义盾牌(Shield)
Tensorflow realizes gradient accumulation, and then returns
Ubuntu 20 installing centernet
危机即机遇,远程办公效率为何会提升?
Linux中,MySQL的常用命令
中创存储|想要一个好用的分布式存储云盘,到底该怎么选
On the three paradigms of database design
MySQL进阶之表的增删改查
How to play the guiding role of testing strategy
mmap、munmap
Create vs project with MATLAB