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: 'NoduleNet' object has no attribute 'rcnn_logits' #31

Open
nengwp opened this issue Nov 6, 2020 · 4 comments
Open

AttributeError: 'NoduleNet' object has no attribute 'rcnn_logits' #31

nengwp opened this issue Nov 6, 2020 · 4 comments

Comments

@nengwp
Copy link

nengwp commented Nov 6, 2020

An error occurred when I ran the python test.py eval command. The error seems to be caused by the network module. Can you try to explain it?

@dayan2020
Copy link

AttributeError: 'NoduleNet' object has no attribute 'rcnn_logits'
I have the same problem, did you solve that?

@dayan2020
Copy link

@nengwp

@nengwp
Copy link
Author

nengwp commented Mar 13, 2021

I'm glad you could tell me that you encountered a similar bug and I fixed the problem. The problem is caused by too few test results (0). Please make sure your input is wrong.

@QianLingjun
Copy link

QianLingjun commented Oct 11, 2022

the reason is rpn_proposals is none, you should do tab in eval model, example:

if self.use_rcnn:
    if len(self.rpn_proposals) > 0:
        rcnn_crops = self.rcnn_crop(feat_4, inputs, self.rpn_proposals)
        self.rcnn_logits, self.rcnn_deltas = data_parallel(self.rcnn_head, rcnn_crops)
        self.detections, self.keeps = rcnn_nms(self.cfg, self.mode, inputs, self.rpn_proposals, 
                                                                self.rcnn_logits, self.rcnn_deltas)
# add a table
        if self.mode in ['eval']:
            # Ensemble
            fpr_res = get_probability(self.cfg, self.mode, inputs, self.rpn_proposals,  self.rcnn_logits, self.rcnn_deltas)
            self.ensemble_proposals[:, 1] = (self.ensemble_proposals[:, 1] + fpr_res[:, 0]) / 2

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

3 participants