python-objectness icon indicating copy to clipboard operation
python-objectness copied to clipboard

Runtime Warning

Open swaradgat19 opened this issue 2 years ago • 0 comments

/home/sgat/python-objectness-master 2/computeScores.py:216: RuntimeWarning: invalid value encountered in subtract mySpectralResidual = myLogAmplitude - mySmooth Traceback (most recent call last): File "demo.py", line 37, in boxes = run_objectness(img_example, 10, params) File "/home/sgat/python-objectness-master 2/runObjectness.py", line 33, in run_objectness distribution_boxes = compute_scores(img, 'MS', params) File "/home/sgat/python-objectness-master 2/computeScores.py", line 61, in compute_scores idx_samples = np.random.choice(np.arange(len(score_scale)), samples) File "mtrand.pyx", line 908, in numpy.random.mtrand.RandomState.choice ValueError: 'a' cannot be empty unless no samples are taken

I'm getting this error while running the code on JIGSAWS dataset. Could you tell me why it may happen?

swaradgat19 avatar Dec 08 '22 07:12 swaradgat19