当前位置:网站首页>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
边栏推荐
- How to play the guiding role of testing strategy
- Problem brushing plan -- dynamic programming (III)
- pytorch 1.7. The model saved by X training cannot be loaded in version 1.4 or earlier
- Amazon and epic will be settled, and the Microsoft application mall will be opened to third parties
- 中创存储|想要一个好用的分布式存储云盘,到底该怎么选
- laravel 发送邮件
- IOT design and development
- Awk print special characters
- 韩国或将禁止苹果和谷歌向开发者抽佣 创全球首例
- Awk example skills
猜你喜欢
Addition, deletion, modification and query of MySQL advanced table
Addition, deletion, modification and query of advanced MySQL data (DML)
The more you use the computer, the slower it will be? Recovery method of file accidental deletion
MySQL基础合集
[matlab 2016 use mex command to find editor visual studio 2019]
CUDA, NVIDIA driver, cudnn download address and version correspondence
Write table of MySQL Foundation (create table)
Matlab matrix index problem
亚马逊和Epic将入驻,微软应用商城向第三方开放
41. The first missing positive number
随机推荐
MySQL进阶之表的增删改查
An error occurs when the addressable assets system project is packaged. Runtimedata is null
unity 功能扩展
2.整理华子面经--2
airbase 初步分析
MySQL进阶之常用函数
Some thoughts on super in pytorch, combined with code
Graph traversal - BFS, DFS
[SDU chart team - core] enumeration of SVG attribute class design
Assertionerror: invalid device ID and runtimeerror: CUDA error: invalid device ordinal
Question brushing plan - depth first search DFS (I)
MySQL基础合集
1.整理华子面经--1
Fastdfs思维导图
pikachuxss如何获取cookie靶场,返回首页总是失败
如何发挥测试策略的指导性作用
Minecraft 1.12.2模组开发(四十三) 自定义盾牌(Shield)
ros功能包内自定义消息引用失败
UKFslam
41. 缺失的第一个正数