Comments (9)
Hello, I also had this problem, have you solved it yet?
from mmyolo.
Hello, I also had this problem, have you solved it yet?
This problem still exists now.
I useyolov8_s_mask-refine_syncbn_fast_8xb16-500e_coco.py
to train a model on another dataset, based on existing experience:
- I checked my dataset format and it is compliant with coco format
- I also added metainfo to train_dataloader and val_dataloader, and corresponded to the dataset annotation
- I modified num_classes
- I modified the coco category in coco.py and class_name.py to be consistent with classes in metainfo
In addition, loss_bbox and loss_dfl are always 0. After about two epochs, the total loss is also 0.
from mmyolo.
Hello, I also had this problem, have you solved it yet?
Hello,I successfully ran the official tutorial 15 MINUTES TO GET STARTED WITH MMYOLO OBJECT DETECTION,I modified the relevant information based on yolov8_s_fast_1xb12-40e_cat.py
, and now I have trained for 30 epochs. It is normal now and there are no problems mentioned before.
from mmyolo.
Hello, I also had this problem, have you solved it yet?
Hello,I successfully ran the official tutorial 15 MINUTES TO GET STARTED WITH MMYOLO OBJECT DETECTION,I modified the relevant information based on
yolov8_s_fast_1xb12-40e_cat.py
, and now I have trained for 30 epochs. It is normal now and there are no problems mentioned before.
Hello, I also ran yolov5_s-v61_fast_1xb12-40e_cat.py and yolov8_s_fast_1xb12-40e_cat.py, and found that the cat.py can be successfully run, yolov5 voc model can be run the other coco model run will report an error, I do not know where the I don't know where the problem is. But then I can't see the AP of each category, if you have any progress after that, please reply me, thank you very much!
from mmyolo.
Hello, I also had this problem, have you solved it yet?
Hello,I successfully ran the official tutorial 15 MINUTES TO GET STARTED WITH MMYOLO OBJECT DETECTION,I modified the relevant information based on
yolov8_s_fast_1xb12-40e_cat.py
, and now I have trained for 30 epochs. It is normal now and there are no problems mentioned before.Hello, I also ran yolov5_s-v61_fast_1xb12-40e_cat.py and yolov8_s_fast_1xb12-40e_cat.py, and found that the cat.py can be successfully run, yolov5 voc model can be run the other coco model run will report an error, I do not know where the I don't know where the problem is. But then I can't see the AP of each category, if you have any progress after that, please reply me, thank you very much!
If you want to know the AP of every class, you can modify classwise
from False to True, you can find classwise
in mmdet.evaluation.metrics.coco_metric
, this parameter is in line 73 of coco_metric.py
from mmyolo.
Hello, I also had this problem, have you solved it yet?
Hello,I successfully ran the official tutorial 15 MINUTES TO GET STARTED WITH MMYOLO OBJECT DETECTION,I modified the relevant information based on
yolov8_s_fast_1xb12-40e_cat.py
, and now I have trained for 30 epochs. It is normal now and there are no problems mentioned before.Hello, I also ran yolov5_s-v61_fast_1xb12-40e_cat.py and yolov8_s_fast_1xb12-40e_cat.py, and found that the cat.py can be successfully run, yolov5 voc model can be run the other coco model run will report an error, I do not know where the I don't know where the problem is. But then I can't see the AP of each category, if you have any progress after that, please reply me, thank you very much!
If you want to know the AP of every class, you can modify
classwise
from False to True, you can findclasswise
inmmdet.evaluation.metrics.coco_metric
, this parameter is in line 73 of coco_metric.py
Hello, have made changes to coco_metric.py, but before and after the changes it is the first result, I want to show the second result.
1、 Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.459
Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.647
Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.521
Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.354
Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.551
Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.505
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.466
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.590
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.611
Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.450
Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.712
Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.670
01/17 20:23:02 - mmengine - INFO - bbox_mAP_copypaste: 0.459 0.647 0.521 0.354 0.551 0.505
2、+-------------+-----+------+--------+-------+
| class | gts | dets | recall | ap |
+-------------+-----+------+--------+-------+
| block | 12 | 255 | 1.000 | 0.967 |
| finger | 29 | 730 | 0.724 | 0.359 |
| dirt | 75 | 280 | 0.667 | 0.621 |
| corner | 24 | 855 | 1.000 | 0.850 |
| fragment | 25 | 227 | 0.680 | 0.614 |
| crack | 9 | 265 | 1.000 | 0.989 |
+-------------+-----+------+--------+-------+
| mAP | | | | 0.733 |
+-------------+-----+------+--------+-------+
from mmyolo.
Hello, I also had this problem, have you solved it yet?
Hello,I successfully ran the official tutorial 15 MINUTES TO GET STARTED WITH MMYOLO OBJECT DETECTION,I modified the relevant information based on
yolov8_s_fast_1xb12-40e_cat.py
, and now I have trained for 30 epochs. It is normal now and there are no problems mentioned before.Hello, I also ran yolov5_s-v61_fast_1xb12-40e_cat.py and yolov8_s_fast_1xb12-40e_cat.py, and found that the cat.py can be successfully run, yolov5 voc model can be run the other coco model run will report an error, I do not know where the I don't know where the problem is. But then I can't see the AP of each category, if you have any progress after that, please reply me, thank you very much!
If you want to know the AP of every class, you can modify
classwise
from False to True, you can findclasswise
inmmdet.evaluation.metrics.coco_metric
, this parameter is in line 73 of coco_metric.pyHello, have made changes to coco_metric.py, but before and after the changes it is the first result, I want to show the second result. 1、 Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.459 Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.647 Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.521 Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.354 Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.551 Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.505 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.466 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.590 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.611 Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.450 Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.712 Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.670 01/17 20:23:02 - mmengine - INFO - bbox_mAP_copypaste: 0.459 0.647 0.521 0.354 0.551 0.505 2、+-------------+-----+------+--------+-------+ | class | gts | dets | recall | ap | +-------------+-----+------+--------+-------+ | block | 12 | 255 | 1.000 | 0.967 | | finger | 29 | 730 | 0.724 | 0.359 | | dirt | 75 | 280 | 0.667 | 0.621 | | corner | 24 | 855 | 1.000 | 0.850 | | fragment | 25 | 227 | 0.680 | 0.614 | | crack | 9 | 265 | 1.000 | 0.989 | +-------------+-----+------+--------+-------+ | mAP | | | | 0.733 | +-------------+-----+------+--------+-------+
I have not seen the second output format. The output after I modified classwise is like this:
Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.148
Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.371
Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.089
Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.111
Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.392
Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.795
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.020
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.114
Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.225
Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.189
Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.501
Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.839
01/18 13:40:40 - mmengine - INFO -
+----------+-------+---------+---------+--------+--------+-------+
| category | mAP | mAP_50 | mAP_75 | mAP_s | mAP_m | mAP_l |
+----------+-------+---------+---------+--------+--------+-------+
| person | 0.148 | 0.371 | 0.089 | 0.111 | 0.392 | 0.795 |
+----------+-------+---------+---------+--------+--------+-------+
from mmyolo.
Hello, I also had this problem, have you solved it yet?
Hello,I successfully ran the official tutorial 15 MINUTES TO GET STARTED WITH MMYOLO OBJECT DETECTION,I modified the relevant information based on , and now I have trained for 30 epochs. It is normal now and there are no problems mentioned before.
yolov8_s_fast_1xb12-40e_cat.py
Hello, I also ran yolov5_s-v61_fast_1xb12-40e_cat.py and yolov8_s_fast_1xb12-40e_cat.py, and found that the cat.py can be successfully run, yolov5 voc model can be run the other coco model run will report an error, I do not know where the I don't know where the problem is. But then I can't see the AP of each category, if you have any progress after that, please reply me, thank you very much!
If you want to know the AP of every class, you can modify from False to True, you can find in , this parameter is in line 73 of coco_metric.py
classwise``classwise``mmdet.evaluation.metrics.coco_metric
Hello, have made changes to coco_metric.py, but before and after the changes it is the first result, I want to show the second result. 1、 Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.459 Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.647 Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.521 Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.354 Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.551 Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.505 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.466 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.590 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.611 Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.450 Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.712 Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.670 01/17 20:23:02 - mmengine - INFO - bbox_mAP_copypaste: 0.459 0.647 0.521 0.354 0.551 0.505 2、+-------------+-----+------+--------+-------+ | class | gts | dets | recall | ap | +-------------+-----+------+--------+-------+ | block | 12 | 255 | 1.000 | 0.967 | | finger | 29 | 730 | 0.724 | 0.359 | | dirt | 75 | 280 | 0.667 | 0.621 | | corner | 24 | 855 | 1.000 | 0.850 | | fragment | 25 | 227 | 0.680 | 0.614 | | crack | 9 | 265 | 1.000 | 0.989 | +-------------+-----+------+--------+-------+ | mAP | | | | 0.733 | +-------------+-----+------+--------+-------+
I have not seen the second output format. The output after I modified classwise is like this: Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.148 Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.371 Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.089 Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.111 Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.392 Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.795 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.020 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.114 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.225 Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.189 Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.501 Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.839 01/18 13:40:40 - mmengine - INFO - +----------+-------+---------+---------+--------+--------+-------+ | category | mAP | mAP_50 | mAP_75 | mAP_s | mAP_m | mAP_l | +----------+-------+---------+---------+--------+--------+-------+ | person | 0.148 | 0.371 | 0.089 | 0.111 | 0.392 | 0.795 | +----------+-------+---------+---------+--------+--------+-------+
Thanks, I added --cfg-options test_evaluator.classwise=True when running in the terminal and it printed out successfully! The second form is the output from my previous training with the VOC dataset.
from mmyolo.
- Make sure to add meta_info to both train_dataloader and val_dataloader.
- Ensure that model.bbox_head.head_module.num_classes is set correctly.
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
- The fps of yolov6_v3_n is very low HOT 5
- Cannot install with CUDA 12.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 1
- 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.