Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ganeshOnePlus opened this issue Jun 6, 2019 · 1 comment

Comments

@ganeshOnePlus
Copy link

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

@SyedSaba
Copy link

SyedSaba commented Aug 6, 2020

Hello @swethasubramanian can you please suggest how to solve the above error? Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants