当前位置:网站首页>Mmdetection custom fetch detection result script and image_ demo. Py parsing
Mmdetection custom fetch detection result script and image_ demo. Py parsing
2022-06-11 23:40:00 【@Flying caterpillar】
The reason to say image_demo.py, Because its sum video_demo.py、webcam_demo.py These three are big differences and small differences , And provide ideas for us to take out the test results for other interfaces .image_demo.py stay mmd\demo Under the folder . First , We give image_demo.py Parameter parser and main() Method comments , The whole process is relatively simple , Then the method by method analysis .
import asyncio
from argparse import ArgumentParser
from mmdet.apis import (async_inference_detector, inference_detector,init_detector, show_result_pyplot)
def parse_args():
parser = ArgumentParser() # Create a parameter parser
parser.add_argument('img', help='Image file') # Images to test
parser.add_argument('config', help='Config file') # The configuration file
parser.add_argument('checkpoint', help='Checkpoint file') # Weight file for model
parser.add_argument('--device', default='cuda:0', help='Device used for inference') # The equipment used
parser.add_argument('--score-thr', type=float, de边栏推荐
- Test case design method
- 2022 operation of simulation examination platform for safety officer C certificate
- (linear DP | monotone queue) acwing 895 Longest ascending subsequence
- 2022 safety officer-b certificate theoretical question bank and simulation test
- Stack (C language)
- (counting class +dp) acwing 900 Integer partition
- Simulated examination question bank and simulated examination of 2022 crane driver (limited to bridge crane)
- 我的创作纪念日
- 05 classification learning notes lihongyi's in-depth study 2021
- 删除收货地址【项目 商城】
猜你喜欢

VS code 编写汇编代码【微机原理】

Introduction to Solr Basics

Mysql5 and mysql8 are installed at the same time

二叉排序树

Test case design method

多路查找树

Jenkins basic configuration

一文读懂Logstash原理

Lake shore vnf series low temperature thermostat system - sample in flowing steam

Lake Shore - supertran continuous flow cryogenic thermostat system
随机推荐
Software installation and use, etc
Queue (C language)
Unity3d C # development of wechat games audio / sound playback problem solving process sharing
C collection of questions for project review
[C language] data type storage, original code, inverse code and complement code
2022年R1快开门式压力容器操作考题及在线模拟考试
(dp) acwing 902. Minimum editing distance
What is bom? And knowledge points
(simple statistics) acwing 3404 Who are your potential friends
CVPR 2022 | meta learning performance in image regression task
2022年高处安装、维护、拆除操作证考试题库模拟考试平台操作
CD流程
队列(C语言)
PHP mkdir(): Permission denied上传文件会把文件夹权限改为411权限
[day13-14 intensive literature reading] cross dimensional magnetic interactions arise from memory interference
Handwritten simple promise
How to completely modify the user name in win10 system and win11 system
swiper
C language Niuke net string space substitution
2022年起重机司机(限桥式起重机)考试题模拟考试题库及模拟考试