-
Notifications
You must be signed in to change notification settings - Fork 38
list index out of range when using child_first_train_epochs #27
Copy link
Copy link
Open
Description
When setting child_first_train_epochs (I tried with 15 and 20), the following error occurs after training 'child_first_train_epochs' number of epochs:
Traceback (most recent call last):
File "run_deepaugment.py", line 51, in <module>
deepaug = DeepAugment(images=x_train, labels=y_train.reshape(TRAIN_SET_SIZE, 1), config=my_config)
File "/home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/deepaugment/lib/decorators.py", line 106, in wrapper
return func(*args, **kwargs)
File "/home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/deepaugment/deepaugment.py", line 120, in __init__
self._do_initial_training()
File "/home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/deepaugment/deepaugment.py", line 202, in _do_initial_training
-1, ["first", 0.0, "first", 0.0, "first", 0.0, 0.0], 1, None, history
File "/home/ec2-user/anaconda3/envs/tensorflow_p36/lib/python3.6/site-packages/deepaugment/notebook.py", line 38, in record
new_df["B_aug2_magnitude"] = trial_hyperparams[7]
IndexError: list index out of rangeHere is my config used:
my_config = {
'model': 'wrn_16_2',
'train_set_size': int(TRAIN_SET_SIZE*0.75),
'child_epochs': 60,
'child_batch_size': 64,
'child_first_train_epochs': 20,
'opt_samples': 1,
}Where TRAIN_SET_SIZE is a custom dataset of 3000 examples
The code runs fine if I omit the child_first_train_epochs setting
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels