Skip to content

Tried to run on colab, having questions. #23

@Ldsrc2008

Description

@Ldsrc2008

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions