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

Get error in proposal layer #12

Closed
SingL3 opened this issue May 22, 2018 · 1 comment
Closed

Get error in proposal layer #12

SingL3 opened this issue May 22, 2018 · 1 comment

Comments

@SingL3
Copy link

SingL3 commented May 22, 2018

Greeting!
I am trying to use this code in FPN, replacing ROI Pooling with this ROI Align. However, after I do that, I will encounter this error:
`Solving...
keep:2000

keep:2000
I0522 10:25:30.679405 23051 solver.cpp:229] Iteration 0, loss = 1.77196
I0522 10:25:30.679448 23051 solver.cpp:245] Train net output #0: FPNClsLoss = 0.693561 (* 1 = 0.693561 loss)
I0522 10:25:30.679457 23051 solver.cpp:245] Train net output #1: FPNLossBBox = 0.0844015 (* 1 = 0.0844015 loss)
I0522 10:25:30.679463 23051 solver.cpp:245] Train net output #2: RcnnLossBBox = 0.0404102 (* 1 = 0.0404102 loss)
I0522 10:25:30.679472 23051 solver.cpp:245] Train net output #3: RcnnLossCls = 0.973891 (* 1 = 0.973891 loss)
I0522 10:25:30.679481 23051 sgd_solver.cpp:107] Iteration 0, lr = 0.001
/mnt/disk1/lin/roialign_FPN/tools/../lib/rpn/proposal_w0p6_layer.py:259: RuntimeWarning: invalid value encountered in greater_equal
keep = np.where((ws >= min_size) & (hs >= min_size))[0]
keep:0
Traceback (most recent call last):
File "./tools/train_net.py", line 112, in
max_iters=args.max_iters)
File "/mnt/disk1/lin/roialign_FPN/tools/../lib/fast_rcnn/train.py", line 146, in train_net
model_paths = sw.train_model(max_iters)
File "/mnt/disk1/lin/roialign_FPN/tools/../lib/fast_rcnn/train.py", line 86, in train_model
self.solver.step(1)
File "/mnt/disk1/lin/roialign_FPN/tools/../lib/rpn/proposal_w0p6_layer.py", line 210, in forward
pad = npr.choice(keep, size=post_nms_topN - len(keep))
File "mtrand.pyx", line 1126, in mtrand.RandomState.choice
ValueError: a must be non-empty
`
where keep is the number that kept in proposal layer and I am trying to debug it.
Last time when I met this error, it is because there are some noisy data in my dataset and I have corrected them.
I dont know how to solve this and I just replacing ROI Align back with ROI Pooling, and there are no error any more. Is there any solution?

@SingL3
Copy link
Author

SingL3 commented May 22, 2018

I didn't set the layer parameter right. I am sorry

@SingL3 SingL3 closed this as completed May 22, 2018
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

1 participant