supervisely-tutorials icon indicating copy to clipboard operation
supervisely-tutorials copied to clipboard

Tried to run on colab, having questions.

Open Ldsrc2008 opened this issue 6 years ago • 1 comments

I tried it on colab, I added "!pip install cairocffi", but get porblem on last step:

the error shows:

IndexError Traceback (most recent call last) in () 5 net_out = model.get_layer(name='softmax').output 6 ----> 7 for inp_value, _ in tiger_test.next_batch(): 8 bs = inp_value['the_input'].shape[0] 9 X_data = inp_value['the_input']

1 frames in next_batch(self) 86 87 for i in range(self.batch_size): ---> 88 img, text = self.next_sample() 89 img = img.T 90 if K.image_data_format() == 'channels_first':

in next_sample(self) 70 self.cur_index = 0 71 random.shuffle(self.indexes) ---> 72 return self.imgs[self.indexes[self.cur_index]], self.texts[self.indexes[self.cur_index]] 73 74 def next_batch(self):

IndexError: list index out of range

Ldsrc2008 avatar May 27 '19 08:05 Ldsrc2008

I'm too. Is there solutions?

ilay-chen avatar Nov 20 '19 11:11 ilay-chen