Skip to content

Runtime Warning #3

@swaradgat19

Description

@swaradgat19

/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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions