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

Transfer learning #5

Open
sanakhamekhem opened this issue Sep 28, 2019 · 1 comment
Open

Transfer learning #5

sanakhamekhem opened this issue Sep 28, 2019 · 1 comment

Comments

@sanakhamekhem
Copy link

Hello Sir,

I would like to ask about the transfer learning task. If I would exlude the first con layer, so, the modified var is this:
train_vars = tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, scope='Layer_Linear') + tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, scope='BLSTM[12]') + tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, scope='conv[12345]')

train_vars = tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, scope='Layer_Linear') + tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, scope='BLSTM[12]') + tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, scope='conv[2345]')

or I would modify the transfered one???
Thank you in advance.

@josarajar
Copy link
Owner

Hello,

If you want to freeze the parameters from the first conv layer, the modification you have write is enough. The transferred one is to set what layers would you like to initialise.

Sorry for the delay.

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