Skip to content

TypeError: 'numpy.float64' object cannot be interpreted as an index #10

@CuiYiZe

Description

@CuiYiZe

As i run the train.sh
i met this issue:

File "/home/cui/adversarial-frcnn/tools/../lib/roi_data_layer/minibatch.py", line 343, in _sample_rois
fg_inds, size=fg_rois_per_this_image, replace=False)
File "mtrand.pyx", line 1187, in mtrand.RandomState.choice (numpy/random/mtrand/mtrand.c:18864)
TypeError: 'numpy.float64' object cannot be interpreted as an index

And when i follow some answers to set the numpy to 1.11.0 it solved but appearance another issue.
image

And some answers tell me to upgrade the numpy .
SO, what should i do ?
Thanks very much !!!

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