Comments (5)
--task inference
from mmyolo.
(py39torch2) wsy@ubuntu:~/paper2/mmyolo$ python tools/analysis_tools/benchmark_old.py configs/yolov6/yolov6_v3_n_syncbn_fast_2xb32-300e_coco_SGD.py work_dirs/yolov6_v3_n_syncbn_fast_2xb32-300e_coco_SGD/best_coco_bbox_mAP_epoch_300.pth --fuse-conv-bn --max-iter 20 --repeat-num 3 --task inference
usage: benchmark_old.py [-h] [--repeat-num REPEAT_NUM] [--max-iter MAX_ITER] [--log-interval LOG_INTERVAL] [--work-dir WORK_DIR] [--fuse-conv-bn]
[--cfg-options CFG_OPTIONS [CFG_OPTIONS ...]] [--launcher {none,pytorch,slurm,mpi}] [--local_rank LOCAL_RANK]
config checkpoint
benchmark_old.py: error: unrecognized arguments: --task inference
from mmyolo.
@slantingsun Hello, mmyolo does not have task arguments. In addition, I tested other models, including yolox and yolov7, and their fps is normal, only yolov6_v3 is abnormal.
from mmyolo.
i use the code
mim run mmdet benchmark config_myself/yolov5_s-v61_syncbn_8xb16-300e_coco.py --checkpoint work_dirs/yolov5_s-v61_syncbn_8xb16-300e_coco/best_coco_bbox_mAP_epoch_300.pth --task inference
from mmyolo.
@slantingsun, your test is yolov5, I use the following command, yolov6_v3_n_syncbn_fast results are still abnormal, have you tested yolov6?
(py39torch2) wsy@ubuntu:~/paper2/mmyolo$ mim run mmdet benchmark configs/yolov6/yolov6_v3_n_syncbn_fast_2xb32-300e_coco_SGD.py --checkpoint work_dirs/yolov6_v3_n_syncbn_fast_2xb32-300e_coco_SGD/best_coco_bbox_mAP_epoch_300.pth --fuse-conv-bn --max-iter 20 --repeat-num 3 --task inference
Use the script /home/wsy/anaconda3/envs/py39torch2/lib/python3.9/site-packages/mmdet/.mim/tools/analysis_tools/benchmark.py for command benchmark.
The command to call is /home/wsy/anaconda3/envs/py39torch2/bin/python /home/wsy/anaconda3/envs/py39torch2/lib/python3.9/site-packages/mmdet/.mim/tools/analysis_tools/benchmark.py configs/yolov6/yolov6_v3_n_syncbn_fast_2xb32-300e_coco_SGD.py --checkpoint work_dirs/yolov6_v3_n_syncbn_fast_2xb32-300e_coco_SGD/best_coco_bbox_mAP_epoch_300.pth --fuse-conv-bn --max-iter 20 --repeat-num 3 --task inference.
03/26 22:53:42 - mmengine - INFO - before build:
03/26 22:53:42 - mmengine - INFO - (GB) mem_used: 7.34 | uss: 0.40 | pss: 0.41 | total_proc: 1
Loads checkpoint by local backend from path: work_dirs/yolov6_v3_n_syncbn_fast_2xb32-300e_coco_SGD/best_coco_bbox_mAP_epoch_300.pth
loading annotations into memory...
Done (t=0.63s)
creating index...
index created!
03/26 22:53:46 - mmengine - INFO - after build:
03/26 22:53:46 - mmengine - INFO - (GB) mem_used: 8.77 | uss: 2.10 | pss: 2.11 | total_proc: 1
/home/wsy/anaconda3/envs/py39torch2/lib/python3.9/site-packages/torch/functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:3483.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
03/26 22:53:52 - mmengine - INFO - ============== Done ==================
03/26 22:53:52 - mmengine - INFO - Overall fps: [9.2, 19.7, 21.0][16.6] img/s, times per image: [109.2, 50.9, 47.6][69.2] ms/img
03/26 22:53:52 - mmengine - INFO - cuda memory: 574 MB
03/26 22:53:52 - mmengine - INFO - (GB) mem_used: 10.17 | uss: 3.83 | pss: 3.84 | total_proc: 1
The script finished successfully.
from mmyolo.
Related Issues (20)
- 为什么使用cbam训练后,显示map有提升,但是推理时出现了预测图片没有效果(整张图片没有预测框)的问题
- Please upgrade the python version of this project
- support mmcv2.1.0+
- When will the YOLOv9 algorithm go live in the MMYOLO project? HOT 5
- Issue with PPYOLOE+ model output on custom YOLO5CocoDataset with custom classes
- Can't build after following instructions, "#error C++17 or later compatible compiler is required to use ATen." HOT 3
- Integrate with CVAT and Fiftyone for Semi-automatic and Automatic Annotation
- RTMDet annotations incorrectly loaded in test pipeline
- About FPS
- Cannot install with CUDA 12.1 HOT 1
- KeyError: 'YOLOv5CocoDataset is not in the mmengine::dataset registry
- testing with the trained model
- fix bug onnx export with nms. Onnx operator WHERE requires inputs of same type
- delete
- 模型测试问题
- parameters from config are not updated in module
- ERROR: Could not build wheels for mmcv, which is required to install pyproject.toml-based projects HOT 2
- Typo/wrong equation of calculating alignment metric in YOLOv8 documentation
- tensorrt test is wrong
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmyolo.