I want to load two checkpoints while using slim.learning.train
. For example,
init_fn = assign_from_checkpoint_fn(model_path, variables_to_restore)
slim.learning.train(train_op, log_dir, init_fn=init_fn)
The problem is that I can input only one checkpoint file in model_path. I want to put two checkpoints. I think there can be two possible solutions:
- Modify the following assign_from_checkpoint_fn function in
tf.contrib.framework.assign_from_checkpoint_fn
so that model_path can be a list of checkpoint files - Merge two checkpoints before. (I didn't find any tool for this)
Is there anyone who help me?