Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
codeman-24 opened this issue Apr 19, 2021 · 3 comments

Comments

@codeman-24
Copy link

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 codeman-24 changed the title Please read & provide the following AttributeError: 'CustomFastRCNNOutputs' object has no attribute '_log_accuracy' Apr 19, 2021
@LigZhong
Copy link

LigZhong commented Jun 8, 2021

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

@xingyizhou
Copy link
Owner

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.

@ahong007007
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants