-
Notifications
You must be signed in to change notification settings - Fork 6
Description
/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?