Skip to content

IndexError: list index out of range while training the model train.py #16

@ganeshOnePlus

Description

@ganeshOnePlus

Hi,
I tried to run train.py model directly from h5 dataset. During the model.fit, I get an IndexError: list index out of range. How can we solve this error? The error details is as:

model.fit(X_train_images, Y_train_labels, n_epoch = 1, shuffle=True,
validation_set = (X_val_images, Y_val_labels), show_metric = True,
batch_size = 5, snapshot_epoch = True, run_id = 'nodule3-classifier')
Traceback (most recent call last):

File "", line 1, in
model.fit(X_train_images, Y_train_labels, n_epoch = 1, shuffle=True, validation_set = (X_val_images, Y_val_labels), show_metric = True, batch_size = 5, snapshot_epoch = True, run_id = 'nodule3-classifier')

File "C:\Users\Mahidol\Anaconda3\envs\Thesis\lib\site-packages\tflearn\models\dnn.py", line 184, in fit
self.targets)

File "C:\Users\Mahidol\Anaconda3\envs\Thesis\lib\site-packages\tflearn\utils.py", line 283, in feed_dict_builder
feed_dict[net_inputs[i]] = x

IndexError: list index out of range

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