当前位置:网站首页>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
边栏推荐
- 深入探究ASP.NET Core读取Request.Body的正确方式
- MySQL基础之写表(创建表)
- ros功能包内自定义消息引用失败
- Common problems in deploying projects with laravel and composer for PHP
- Some thoughts on super in pytorch, combined with code
- unity 功能扩展
- Question brushing plan -- backtracking method (I)
- Deep analysis of C language pointer (Part I)
- Norm normalization in tensorflow and pytorch of records
- Common commands of MySQL in Linux
猜你喜欢

MySQL基础之写表(创建表)

Addition, deletion, modification and query of MySQL advanced table

go slice

Another data analysis artifact: Polaris is really powerful

41. 缺失的第一个正数


CUDA, NVIDIA driver, cudnn download address and version correspondence

Win 11K in 100 days, super complete learning guide for job transfer test

Chrome 94 引入具有争议的 Idle Detection API,苹果和Mozilla反对

MySQL数据库常识之储存引擎
随机推荐
Explore ASP Net core read request The correct way of body
How to play the guiding role of testing strategy
Lunch on the 23rd day at home
3-5 obtaining cookies through XSS and the use of XSS background management system
Leetcode-279-complete square number
Deep analysis of C language pointer (Part I)
Thinking after learning to type
Crisis is opportunity. Why will the efficiency of telecommuting improve?
启牛学堂有用吗,推荐的证券账户是否安全
危机即机遇,远程办公效率为何会提升?
Communication between RING3 and ring0
Ubutnu20 installer centernet
居家第二十三天的午饭
Awk example skills
Assertionerror: invalid device ID and runtimeerror: CUDA error: invalid device ordinal
wait、waitpid
Ubuntu 20 installing centernet
Automatic heap dump using MBean
MySQL进阶之表的增删改查
GSI-ECM工程建设管理数字化平台