broadinstitute / keras-rcnn

Keras package for region-based convolutional neural networks (RCNNs)
Other
553 stars 224 forks source link

Error in running tutorial #161

Closed nawashy closed 6 years ago

nawashy commented 6 years ago

Hi there,

I'm trying to run the tutorial in the Getting started but when I issue the command (target_bounding_boxes, target_image, targetscores, ), _ = generator.next() it gives me an error keras_rcnn/preprocessing/_object_detection.py in _get_batches_of_transformed_samples(self, selection) 91 92 while count == 0: ---> 93 path = self.dictionary[image_index]["filename"] 94 image = skimage.io.imread(path) 95

TypeError: only integer scalar arrays can be converted to a scalar index

can anybody help

thanks

K-Mike commented 6 years ago

I have the same. I think that we use different version of Keras.

K-Mike commented 6 years ago

Solved. upgrade to 2.1.3

0x00b1 commented 6 years ago

Yeah! I apologize for this. Keras broke API compatibility with 2.1.3 (by introducing that method). We should probably specify the Keras version in our setup.py.

nawashy commented 6 years ago

thank