Tiny-Mud6713

Tiny-Mud6713 OP t1_iwcjcrv wrote

In the post I said I unfroze the CNN layers, I meant after the transfer learning part. I run it untill it early stops with all CNN layers frozen, then run it with unfreezing the top 200 layers or so.

I'm obliged to work on Keras K don't know if it has an LR sched method, I'll check the API great advice.

1

Tiny-Mud6713 OP t1_iwcglrg wrote

1- I'm doing a 20% split, so in total they're around 2800, 700 training and validation.

2- batches of 8, Adam with LR=0.001 in the transfer part, LR=0.0001 in the fine tuning, any other combination caused everything to crumble.

3- currently 0.3, 0.5 caused some early stopping problems, since the model was stuck

4- valid_data_gen = ImageDataGenerator(rescale=1/255.)

train_data_gen = ImageDataGenerator(

rescale=1/255.,

rotation_range = 30,

width_shift_range = 0.2,

height_shift_range = 0.2,

horizontal_flip = True,

vertical_flip = True

)

​

and then flow from file to get the preprocessed images

1