Open Penaplion opened 2 years ago
I have 1 class and found this error too.
I also found this error
@Penaplion Hi, We have updated the dev-3.x branch, can you please give it a try
When trying it returns the error:
File "dev-3.x/mmdetection/tools/analysis_tools/analyze_results.py", line 7, in <module> from mmengine.config import Config, DictAction ModuleNotFoundError: No module named 'mmengine'
Using the python script in main I get this error:
IFile "mmdetection/tools/analysis_tools/analyze_results.py", line 368, in <module> main() File "mmdetection/tools/analysis_tools/analyze_results.py", line 363, in main result_visualizer.evaluate_and_show( File "mmdetection/tools/analysis_tools/analyze_results.py", line 172, in evaluate_and_show good_samples, bad_samples = self.detection_evaluate( File "mmdetection/tools/analysis_tools/analyze_results.py", line 213, in detection_evaluate data_info = dataset.prepare_train_img(i) File "/mmdetection/mmdet/datasets/custom.py", line 243, in prepare_train_img return self.pipeline(results) File "/mmdetection/mmdet/datasets/pipelines/compose.py", line 41, in __call__ data = t(data) File "/mmdetection/mmdet/datasets/pipelines/loading.py", line 400, in __call__ results = self._load_semantic_seg(results) File "/mmdetection/mmdet/datasets/pipelines/loading.py", line 375, in _load_semantic_seg results['gt_semantic_seg'] = mmcv.imfrombytes( IndexError: too many indices for array: array is 2-dimensional, but 3 were indexed
I also still got similar error in the version 3.x. When I perform 2-class object detection task, a resulting confusion matrix is like below. However inferenced images look like perfect.
When I tried 30-class object detection, this problem doesnt occur. Is there any workaround to make correct confusion matrix for few class object detection?
@Penaplion Hi, We have updated the dev-3.x branch, can you please give it a try
I try the confusion_matrix.py at dev-3.x branch but it still get the same problem.
hello, i try to figure out what am i doing wrong. I would like to analyse some mask rcnn model predictions created by 'test.py' via 'analyse_results.py' script but i'm getting an error.
call of test.py:
!python tools/test.py configs/container/r50_x4split_fold1.py work_dirs/r50_x4split_fold1/latest.pth --out work_dirs/r50_x4split_fold1/results.pkl --eval bbox segm
output:call of analyze_results.py:
!python tools/analysis_tools/analyze_results.py /content/mmdetection/configs/container/r50_x4split_fold1.py work_dirs/r50_x4split_fold1/results.pkl /content/mmdetection/work_dirs/r50_x4split_fold1
output:further information: i'm running mmdetection in google colab on a custom dataset in coco format. The config used for training is as follows:
Scripts like 'analyze_logs.py' or 'eval_metric.py' work fine. The 'confusion_matrix.py' is also working but gives me a strange output (maybe its because i only have one class to detect?). Shouldn't there be any axis labeling?
I would be very grateful for any tips. I need to inspect/visualize the model predictions.