UniDet icon indicating copy to clipboard operation
UniDet copied to clipboard

AttributeError: 'CustomFastRCNNOutputs' object has no attribute '_log_accuracy'

Open codeman-24 opened this issue 3 years ago • 3 comments

AttributeError: 'CustomFastRCNNOutputs' object has no attribute '_log_accuracy' when i run train "python projects/UniDet/train_net.py --config-fil│ e projects/UniDet/configs/Base-CRCNN-COCO.yaml --num-gpus 8"

codeman-24 avatar Apr 19 '21 11:04 codeman-24

I switched to Detectron 2.0.2 as I remember, which resolved this problem.

LigZhong avatar Jun 08 '21 12:06 LigZhong

Hi, Sorry for the inconvenient, this is a detectron2 version mismatch, you can change the line with self._log_accuracy to _log_classification_stats. After from detectron2.modeling.roi_heads.fast_rcnn import _log_classification_stats.

xingyizhou avatar Jun 24 '21 21:06 xingyizhou

sorry, I have a problem .

image

_log_classification_stats is a function, what parameters need to be passed in? How to calculate the accuracy and recall rate without parameters? Thank you very much for your reply and I wish you a happy work.

ahong007007 avatar Sep 16 '21 15:09 ahong007007