当前位置:网站首页>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
边栏推荐
- Rust更适合经验较少的程序员?
- [matlab 2016 use mex command to find editor visual studio 2019]
- Factory mode
- C#,打印漂亮的贝尔三角形(Bell Triangle)的源程序
- Question brushing plan -- backtracking method (I)
- Identifier CV is not defined in opencv4_ CAP_ PROP_ FPS; CV_ CAP_ PROP_ FRAME_ COUNT; CV_ CAP_ PROP_ POS_ Frames problem
- Pikachuxss how to get cookie shooting range, always fail to return to the home page
- PHP的Laravel与Composer部署项目时常见问题
- MySQL基础之写表(创建表)
- Prim、Kruskal
猜你喜欢

MySQL基础之写表(创建表)

PHP的Laravel与Composer部署项目时常见问题

41. The first missing positive number

2. Finishing huazi Mianjing -- 2

Preliminary analysis of Airbase

Graph traversal - BFS, DFS

1. Finishing huazi Mianjing -- 1

Deno 1.13.2 发布

DeNO 1.13.2 release

Cmake project under vs2019: calculating binocular parallax using elas method
随机推荐
Unity ECS dots notes
如何发挥测试策略的指导性作用
go slice
laravel 发送邮件
Write table of MySQL Foundation (create table)
How to play the guiding role of testing strategy
Awk print special characters
Express ③ (use express to write interface and cross domain related issues)
Valueerror: invalid literal for int() with base 10 conversion error related to data type
Prim、Kruskal
Amazon and epic will be settled, and the Microsoft application mall will be opened to third parties
亚马逊和Epic将入驻,微软应用商城向第三方开放
Problem brushing plan -- dynamic programming (III)
Is qiniu school useful and is the recommended securities account safe
Question brushing plan -- backtracking method (I)
Cmake project under vs2019: calculating binocular parallax using elas method
MySQL进阶之表的增删改查
Some thoughts on super in pytorch, combined with code
一些接地气的话儿
Realrange, reduce, repeat and einops in einops package layers. Rearrange and reduce in torch. Processing methods of high-dimensional data