Giter VIP home page Giter VIP logo

Comments (9)

928928LN avatar 928928LN commented on May 27, 2024

Hello, I also had this problem, have you solved it yet?

from mmyolo.

lkh2022 avatar lkh2022 commented on May 27, 2024

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.pyto train a model on another dataset, based on existing experience:

  1. I checked my dataset format and it is compliant with coco format
  2. I also added metainfo to train_dataloader and val_dataloader, and corresponded to the dataset annotation
  3. I modified num_classes
  4. 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.

lkh2022 avatar lkh2022 commented on May 27, 2024

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.

928928LN avatar 928928LN commented on May 27, 2024

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.

lkh2022 avatar lkh2022 commented on May 27, 2024

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.

928928LN avatar 928928LN commented on May 27, 2024

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

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.

lkh2022 avatar lkh2022 commented on May 27, 2024

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

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 |
+----------+-------+---------+---------+--------+--------+-------+

from mmyolo.

928928LN avatar 928928LN commented on May 27, 2024

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.pyclasswise``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.

Le0v1n avatar Le0v1n commented on May 27, 2024
  1. Make sure to add meta_info to both train_dataloader and val_dataloader.
  2. Ensure that model.bbox_head.head_module.num_classes is set correctly.

from mmyolo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.